You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add repo picker to spawn dialog and auto-worktree on project collision (#119)
* Add repo picker to spawn dialog and auto-worktree on project collision
- SpawnAgentDialog: show root selector dropdown when project has multiple roots,
passing the chosen root as cwd to spawnProjectAgent/spawnProjectPersona
- spawn-agent: accept rootOverride parameter to spawn into any root, not just
the active one
- project:add-root IPC: detect when selected path already belongs to another
project and return a conflict descriptor instead of silently reusing it
- project:create-worktree-root IPC: given a repo path, discovers the git root,
creates a new worktree at ~/.pear/worktrees/{projectId}/{repo} on a fresh
pear/{project-slug} branch, and registers it as a root
- ProjectSettings: render an inline conflict banner with "Create worktree" and
"Go to existing project" buttons when a collision is detected
- project-store: expose pendingRootConflict state, clearRootConflict, and
createWorktreeRoot actions
- git: add getGitRoot and createWorktree helpers
https://claude.ai/code/session_01MhKe5JsErX12X8Wbjv9aU2
* Auto-HOLD terminal when typing with multiple agents active
When a user starts typing in any terminal and more than one agent is running
in the project, the terminal automatically switches to drive (hold) mode so
keystrokes are queued rather than immediately injected into the agent. This
prevents accidental input interference across agents.
- useTerminal: accept autoHold flag plus onAutoHoldStart/onAutoHoldRelease
callbacks; on first keypress in passthrough mode fires onAutoHoldStart; on
Enter fires onAutoHoldRelease(flush:true); on container blur fires
onAutoHoldRelease(flush:false) to release hold without flushing
- TerminalInstance: threads autoHold + callback props through to useTerminal
- TerminalProject + SplitTerminalTile: thread autoHold props
- SplitTerminalPage: passes makeAutoHoldHandlers factory through to tiles
- TerminalPane: computes autoHold = runningAgents > 1; makeAutoHoldHandlers
creates per-agent callbacks that call handleDeliveryModeChange and
flushPending on Enter release
https://claude.ai/code/session_01MhKe5JsErX12X8Wbjv9aU2
* chore: apply pr-reviewer fixes for #119
* chore: apply pr-reviewer fixes for #119
* chore: apply pr-reviewer fixes for #119
* chore: apply pr-reviewer fixes for #119
* Fix spawn dialog cloud detach and auto-hold release
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: agent-relay-code[bot] <agent-relay-code[bot]@users.noreply.github.com>
Co-authored-by: kjgbot <kjgbot@agentrelay.dev>
0 commit comments