Skip to content

fix(app): focus input on new session - #36077

Merged
Brendonovich merged 1 commit into
devfrom
ctrl-l-focus
Jul 10, 2026
Merged

fix(app): focus input on new session#36077
Brendonovich merged 1 commit into
devfrom
ctrl-l-focus

Conversation

@opencode-agent

@opencode-agentopencode-agentBot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • registers the existing input.focus command on the New Session page
  • keeps Ctrl+L wired through the regular command registry instead of adding a native desktop menu item

Diagnosis

input.focus was registered by the session page commands, so Ctrl+L worked in existing sessions but not on /new-session, where those commands are not mounted.

Tests

  • bun test --preload ./happydom.ts ./src/context/command-keybind.test.ts ./src/desktop-menu.test.ts
  • bun typecheck from packages/app
  • bun typecheck from packages/desktop
  • git diff --check

@opencode-agentopencode-agentBot changed the title fix(app): match control-letter keybindsfix(desktop): focus input with ctrl-lJul 9, 2026
@opencode-agentopencode-agentBot changed the title fix(desktop): focus input with ctrl-lfix(app): match control-letter keybindsJul 10, 2026
@opencode-agentopencode-agentBot changed the title fix(app): match control-letter keybindsfix(app): focus input on new sessionJul 10, 2026
@Brendonovich
Brendonovich marked this pull request as ready for review July 10, 2026 02:41
@Brendonovich
Brendonovich merged commit 01131c7 into devJul 10, 2026
11 checks passed
@Brendonovich
Brendonovich deleted the ctrl-l-focus branch July 10, 2026 02:41
avion23 pushed a commit to avion23/opencode that referenced this pull request Jul 20, 2026
Co-authored-by: Victor Navarro <vn4varro@gmail.com>
3kaiu pushed a commit to 3kaiu/opencode-x that referenced this pull request Jul 31, 2026
Co-authored-by: Victor Navarro <vn4varro@gmail.com>
MarsQiu007 referenced this pull request in MarsQiu007/openNovel Jul 31, 2026
Co-authored-by: Victor Navarro <vn4varro@gmail.com>
banlanzs pushed a commit to banlanzs/opencode that referenced this pull request Aug 6, 2026
Co-authored-by: Victor Navarro <vn4varro@gmail.com>
charlesverge pushed a commit to charlesverge/opencode that referenced this pull request Aug 11, 2026
Co-authored-by: Victor Navarro <vn4varro@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@Brendonovich@vimtor