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-agent opencode-agent Bot 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-agent opencode-agent Bot changed the title fix(app): match control-letter keybinds fix(desktop): focus input with ctrl-l Jul 9, 2026
@opencode-agent opencode-agent Bot changed the title fix(desktop): focus input with ctrl-l fix(app): match control-letter keybinds Jul 10, 2026
@opencode-agent opencode-agent Bot changed the title fix(app): match control-letter keybinds fix(app): focus input on new session Jul 10, 2026
@Brendonovich
Brendonovich marked this pull request as ready for review July 10, 2026 02:41
@Brendonovich
Brendonovich merged commit 01131c7 into dev Jul 10, 2026
11 checks passed
@Brendonovich
Brendonovich deleted the ctrl-l-focus branch July 10, 2026 02:41
zz99mz-212 pushed a commit to zz99mz-212/opencode-New-Horizons that referenced this pull request Jul 16, 2026
Co-authored-by: Victor Navarro <vn4varro@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants