mirror of
https://github.com/qwibitai/nanoclaw.git
synced 2026-06-12 18:11:51 +08:00
67ccd9e74c
Interactive setup handoffs (mid-flow `?` escape and on-failure) spawned claude with all context in --append-system-prompt and no user message, so Claude sat at an empty REPL until the user re-explained themselves. Move the context into a positional prompt that auto-submits as the first user message: Claude starts orienting immediately, the context stays visible in the transcript, and it survives --resume. Also: - Share one session across all handoffs in a setup run: pin a generated UUID via --session-id on the first spawn, --resume it on later ones (stdio is inherited, so Claude's own id is never visible). - Switch --permission-mode from acceptEdits to auto. - Dedupe the two spawn blocks into spawnInteractiveClaude(). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>