Skip to content

fix(web): focus the composer from the new thread button - #1487

Merged
nixuuu merged 2 commits into
devfrom
feat/new-thread-composer-focus
Nov 29, 2026
Merged

nixuuu merged 2 commits into
devfrom
feat/new-thread-composer-focus

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Changes

  • The sidebar’s New thread action puts keyboard focus in the message field as soon as it is editable, including when the form is already open.
  • If focus moves elsewhere or the user switches threads while the field is loading, the pending focus request is discarded.
  • The navigation drawer closes before the focus handoff, including when the action interrupts a pending navigation.

Thanks @mikuyeyu for the suggestion.

Verification

  • On Linux, formatting and lint passed for the five changed source and test files at be7d23d24. All four focus regression cases passed through check:tmp.
  • A focused Chromium reproduction used SvelteKit to check the already-open form, a delayed editor after focus moved to search, and the narrow navigation drawer. It reproduced the drawer staying open if the action interrupted a pending navigation and confirmed the drawer closed and focused the editor with this change.
  • GitHub Actions runs repository-wide static checks, tests and builds. The regression exercises navigation completion and focus cancellation through the production focus controller. The full application and native desktop keyboard behavior were not exercised locally.

@nixuuu
nixuuu enabled auto-merge (squash) November 29, 2026 19:44
@nixuuu
nixuuu disabled auto-merge November 29, 2026 19:47
@nixuuu
nixuuu enabled auto-merge (squash) November 29, 2026 19:49
@nixuuu
nixuuu merged commit 1ecd544 into dev Nov 29, 2026
25 checks passed
@nixuuu
nixuuu deleted the feat/new-thread-composer-focus branch November 29, 2026 19:55
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