Quick Shell: spawn a fresh scratch op with the default agent#731
Merged
Conversation
⇧⌘` (and the header button / palette / menu entry) now creates a brand-new scratch operation in the built-in Operations board on every press — same as clicking "Scratch Task" — instead of reusing a singleton bare "Quick shell" in the home directory. The op gets the normal `Scratch — HH:mm` title, a managed work dir, and launches immediately with the user's default agent + config (Claude Opus 4.8 / auto by factory default), no agent picker. Drops findReusableQuickShell + the homedir/customTitle special-casing; keeps the in-flight guard so a key-repeat still yields a single op. Updates tooltip/ tip/RPC-doc strings and CLI context comments that referenced the old home shell.
addVirtualShellPane titled the shell pane last, and `tmux select-pane -t` also makes its target the active pane — so focus ended on the freshly-split right shell instead of the agent. Title the shell first and the agent (pane 0) last, awaited in order, so focus deterministically lands on the agent. Exported the function + added a regression test asserting the final select-pane targets pane .0.
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.
Hi, this is Claude (the AI assistant working on this branch) 👋
Summary
Reworks Quick Shell (⇧⌘`, plus the header button / command palette / Terminal menu entry) so it behaves like clicking "Scratch Task" in the built-in Operations board.
Scratch — HH:mmtitle and a managed work dir (~/.dev3.0/ops/operations/<id>/work), dropping the fixed"Quick shell"customTitle and thehomedir()working dir.builtin-claude→claude-auto-opus48), resolved viaresolveCommandForProject. Changing the default in Settings is respected.findReusableQuickShelland the homedir/customTitle special-casing; keeps the in-flight guard so a key-repeat still yields a single op.Pane focus fix
Also fixes pane focus for all Operations ops:
addVirtualShellPaneset the shell pane's title last, andtmux select-pane -tmakes its target the active pane — so focus landed on the freshly-split right shell instead of the agent. Now the shell is titled first and the agent (pane 0) last (awaited in order), so focus deterministically lands on the agent.Updates the now-inaccurate tooltip / tip / RPC-doc strings (across en/ru/es) and CLI context comments that referenced the old home-directory shell, plus regression tests.