Skip to content

feat(codex-fleet): polish claude-spawn.sh for cap-swap inheritance + idempotency#132

Merged
NagyVikt merged 1 commit into
mainfrom
agent/claude/tui-claude-spawn-polish-2026-05-15-23-38
May 15, 2026
Merged

feat(codex-fleet): polish claude-spawn.sh for cap-swap inheritance + idempotency#132
NagyVikt merged 1 commit into
mainfrom
agent/claude/tui-claude-spawn-polish-2026-05-15-23-38

Conversation

@NagyVikt
Copy link
Copy Markdown
Contributor

Automated by gx branch finish (PR flow).

…idempotency

Lane 3 of codex-fleet-tui-improvements-2026-05-15. Adds an explicit
CONTRACT block mirroring cap-swap-daemon.sh (task_id, CODEX_HOME,
ACCOUNT_EMAIL, pane id), makes re-runs idempotent on a pane that already
hosts a live claude worker (capture-pane + @panel heuristic), forwards
CODEX_FLEET_TASK_ID into the spawned worker env so the wake prompt can
re-claim the prior Colony task, and refuses to spawn into panes whose
@panel does not match the worker pattern (codex-/kiro-/claude-/idle-claude-).
Dry-run no longer requires the wrapper/wake files so CI/preflight passes.

Verification: shellcheck rc=0, bash -n ok, dry-run -n 1 ok.
@NagyVikt NagyVikt merged commit 0a76112 into main May 15, 2026
@NagyVikt NagyVikt deleted the agent/claude/tui-claude-spawn-polish-2026-05-15-23-38 branch May 15, 2026 21:45
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