Skip to content

fix: in-use guard ignores a Plex app the server reports idle - #26

Merged
bakerboy448 merged 1 commit into
mainfrom
fix/in-use-plex-idle
Dec 1, 2026
Merged

bakerboy448 merged 1 commit into
mainfrom
fix/in-use-plex-idle

Conversation

@bakerboy448

Copy link
Copy Markdown
Contributor

TLDR

  • An idle Plex home screen blocked launch_app with in_use: Plex keeps a stale media session (state 3) after playback, and Plex in front counts as open in an app.
  • Now, with Plex in front, no Plex server session for the device, and no non-Plex app playing, the guard does not refuse.
  • Unreadable Plex server keeps the refusal. A server session (even paused) keeps it. force=true is unchanged.

Tests: new cases in tests/test_tools.py (stale state 3, paused, stopped, no session, server session, lookup error, other app playing). Full suite: 634 passed, 91.55% coverage.

🤖 Generated with Claude Code

Plex keeps a stale media session after playback ends, so an idle Plex home
screen read as playing or open in an app. With Plex in front and no Plex
server session for the device, the guard no longer refuses unless another
app plays. An unreadable server keeps the refusal; force=true is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@bakerboy448
bakerboy448 merged commit 9150e31 into main Dec 1, 2026
7 checks passed
@bakerboy448
bakerboy448 deleted the fix/in-use-plex-idle branch December 1, 2026 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant