desktop: toggle-terminal shortcut opens the terminal but leaves focus in the prompt box
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- desktop
Research direction
Start at the desktop app’s toggle-terminal shortcut handling and trace how opening the terminal affects focus; the issue does not name specific files or tests. Reproduce the steps with the cursor in the prompt box, then verify that typing after one shortcut press goes to the terminal shell.
Written by the indexing model from the issue text.
Description
Summary
In the desktop app, the toggle-terminal shortcut opens the terminal but leaves keyboard focus in the prompt box, so whatever you type next lands in the prompt instead of the terminal.
Environment
- opencode version: Desktop 2.1.1 (
ai.opencode.desktop) - OS: macOS, Darwin 27.0.0 arm64
- Terminal: Built-in desktop terminal panel
- Shell: /bin/zsh
- Install/channel: latest
- Active plugins: None (no plugins or keybind overrides in
~/.config/opencode/opencode.jsonc)
Reproduction
- Open a session in the desktop app with the cursor in the prompt box.
- Press the toggle-terminal shortcut once.
- Start typing.
Expected Behavior
Opening the terminal moves focus into it, so keystrokes go to the shell.
Actual Behavior
The terminal opens, but focus stays in the prompt box and keystrokes are typed into the prompt.
Additional Context
- Happens every time, on a single press of the shortcut.
- Related but different: #55992 loses terminal focus only when the shortcut is toggled rapidly in the web UI. This happens on one press, in the desktop app.
- Workaround: click into the terminal after opening it.
- Dominant language
- TypeScript
- Stars
- 215k
- Forks
- 28.9k
- Avg merge
- 8h 11m
- Merged PRs (30d)
- 365
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from anomalyco/opencode
-
reproduced
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
anomalyco/opencode#57711 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
anomalyco/opencode#57698 · 3 comments ·
Maintainers usually reply within 1 day
-
pending close triaging
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
anomalyco/opencode#57664 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
anomalyco/opencode#57579 · 1 comment ·
Maintainers usually reply within 1 day
-
fs: /cd and file pickers fail on FreeBSD/ZFS — `stat` throws "dev exceeds the safe integer range" (fixed in @effect/platform-node-shared 4.0.5)Possibly taken @argszero claimed this 1 day ago. Openreproduced
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
anomalyco/opencode#57518 · 3 comments · 1 reaction ·
Maintainers usually reply within 1 day
All issues in anomalyco/opencode
Similar issues
-
bug P3 UI/UX
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
StellarState/SS-backend#712 ·
Maintainers usually reply within 1 day
-
area: backend bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
snapotter-hq/SnapOtter#3473 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
gitroomhq/postiz-app#2304 ·
Maintainers usually reply within 1 day
-
harlan-agent-ready-to-implement routine:ci-review
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
harlan-zw/unlighthouse#454 · 2 comments ·
Maintainers usually reply within 1 day