Skip to content

fix: TV audio already on, sticks stuck off-centre and cut captions - #180

Merged
lippdev merged 2 commits into
mainfrom
fix/session-audio-and-stuck-input
Oct 29, 2026
Merged

lippdev merged 2 commits into
mainfrom
fix/session-audio-and-stuck-input

Conversation

@lippdev

@lippdev lippdev commented Oct 29, 2026

Copy link
Copy Markdown
Owner

What

Three everyday bugs, two of them from the user report in #149, added to 1.7 in the PRD (REL-025):

  1. TV audio already on (BUG-002). "The one that shows up when connecting" only switches to outputs that appear after the session starts. When the TV was already on and its HDMI audio was already active, nothing "appeared" and the audio stayed on the desk. Now, if no new output shows up within 10 s of the launch, the session uses the active output that belongs to the game screen. Windows names it after the monitor, e.g. LG TV SSCR2 (NVIDIA High Definition Audio) for the screen LG TV SSCR2. Generic monitor names and short names never match, and a soundbar or receiver that appears in those 10 s still wins.
  2. Menu "keeps going up" (BUG-001). The HID path maps a stick Y below 0.25 to Up. An axis that isn't really a stick, or a misread report, resting at 0 held Up forever and auto-repeated. Now a HID stick only counts once it has been seen centred. Until then it's ignored (logged once), and the D-pad and buttons keep working. The shared sets are locked, since several watchers read controllers.
  3. Cut captions (BUG-003). The Session tab's quick setting captions were cut with an ellipsis in es/fr/ru ("Resolución y frecuencia…"). They now wrap onto two lines; the tiles had the room.

Tests

  • dotnet test: 596 passing. New SessionFixesTests: matching the screen's output by name (real names from this PC), generic and short names, the 10 s window, and the centred-stick rule.
  • Debug x64 build: 0 errors.
  • On Windows: the Session tab in Spanish and Russian before and after. The captions were cut, now they show whole on two lines.
  • Not tested on hardware: the audio and stick fixes need the TV's audio active and the reporter's controller, and this PC has neither connected right now. Checklist in docs/TESTING.md → "Correções da issue [Feedback] #149".

Changelog (Fixes) in both files, PRD (BUG-001/002/003, REL-025).

🤖 Generated with Claude Code

Issue #149. The connect-time audio switch falls back to the game screen's own output that was already on when no new output shows up within 10 s. A HID stick only counts once it has been seen centred, so an axis resting at 0 no longer holds Up. The Session tab's quick setting captions wrap onto two lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

The HID stick trust state can leak between controllers, leaving the reported stuck-navigation behavior possible when identical controllers are connected.

Reviewed changes This review covers the audio auto-switch fallback, HID stick centering gate, Session-tab caption wrapping, and related tests and documentation.

  • Audio fallback: after waiting for newly active outputs, the engine can select an already-active output named for the game-screen monitor.
  • HID stick gate: stick directions are ignored until an HID reading has been observed in the center dead zone; button and D-pad input remains active.
  • Session captions: quick-setting labels can wrap onto a second line.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6-luna | 𝕏

…t leaves

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lippdev

lippdev commented Oct 29, 2026

Copy link
Copy Markdown
Owner Author

Fixed: the centred-stick state is now keyed by the device's NonRoamableId (falling back to the name), so two identical pads don't share it, and on every poll the state of pads no longer listed is dropped, so a pad that is unplugged or goes to sleep has to be seen centred again when it comes back.

🤖 Generated with Claude Code

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes This incremental review covers the controller-state identity and cleanup changes added after the prior review.

  • Scoped stick trust to devices: Replaced the shared model-name key with NonRoamableId where available, and pruned centering state when a controller is no longer enumerated.

Pullfrog  | View workflow run | Using gpt-6-luna | 𝕏

@lippdev
lippdev merged commit 61c2105 into main Oct 29, 2026
5 checks passed
@lippdev lippdev mentioned this pull request Oct 29, 2026
@lippdev lippdev mentioned this pull request Nov 9, 2026
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