{{ message }}
fix(app): restore composer focus on session tab changes - #47529
Open
opencode-agent[bot] wants to merge 1 commit into
Open
fix(app): restore composer focus on session tab changes#47529opencode-agent[bot] wants to merge 1 commit into
opencode-agent[bot] wants to merge 1 commit into
Conversation
opencode-agent
Bot
requested review from
Brendonovich and
Hona
as code owners
September 5, 2026 18:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Issue for this PR
Closes #47514
Type of change
What does this PR do?
The active-session composer is recreated when selecting a session tab, but unlike the new-session composer it never restored focus. Restore focus once the destination draft is ready, using the existing saved-caret behavior. Skip blocked/read-only composers and active dialogs; request dismissal and cursor edits do not retrigger autofocus.
How did you verify your code works?
git diff --checkpass.command-registration.spec.tsfile-opening test also fails on the unchanged base (4/10 serial runs, including the same missing file-tab assertion), so that failure is outside this patch.Base:
7a4ad68af6577c5448a8395b0b95e24ceb623faf; tested head:71ff13133df3a0fa348972f17cbaace79b966a47.Screenshots / recordings
Real-app narrow-window screenshot (team Slack). Playwright also attaches
refocused-composerscreenshots to each regression result. Native GitHub attachment upload was unavailable because Browser Control timed out before creating a page.Checklist
Requested by: @R44VC0RP (vogel via Slack)