Skip to content

Quick Shell: spawn a fresh scratch op with the default agent#731

Merged
h0x91b merged 2 commits into
mainfrom
refactor/dev3-quick-shell-fresh-scratch
Jun 27, 2026
Merged

Quick Shell: spawn a fresh scratch op with the default agent#731
h0x91b merged 2 commits into
mainfrom
refactor/dev3-quick-shell-fresh-scratch

Conversation

@h0x91b

@h0x91b h0x91b commented Jun 27, 2026

Copy link
Copy Markdown
Owner

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.

  • Fresh op every press — no more singleton reuse. Each invocation creates a brand-new scratch task instead of refocusing one "Quick shell" task.
  • Normal scratch identity — gets the standard Scratch — HH:mm title and a managed work dir (~/.dev3.0/ops/operations/<id>/work), dropping the fixed "Quick shell" customTitle and the homedir() working dir.
  • Default agent, no picker — launches immediately with the user's default agent + config. With factory defaults that's Claude Opus 4.8 / auto (builtin-claudeclaude-auto-opus48), resolved via resolveCommandForProject. Changing the default in Settings is respected.
  • Removes findReusableQuickShell and 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: addVirtualShellPane set the shell pane's title last, and tmux select-pane -t makes 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.

h0x91b added 2 commits June 27, 2026 19:25
⇧⌘` (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.
@h0x91b h0x91b enabled auto-merge (squash) June 27, 2026 16:31
@h0x91b h0x91b merged commit c3e9b5f into main Jun 27, 2026
4 checks passed
@h0x91b h0x91b deleted the refactor/dev3-quick-shell-fresh-scratch branch June 27, 2026 16:33
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