mirror of
https://github.com/qwibitai/nanoclaw.git
synced 2026-07-03 18:45:07 +08:00
665b0dca77
clackPrompter now wraps each prompt's validate with the tested validateWithHelpEscape helper so a lone "?" short-circuits format checks, then intercepts it post-prompt: it calls offerClaudeHandoff with the run's channel + step context and the prompt question, then re-asks the same prompt. Recursion is operator-bounded. Gated on a TTY, so a headless / non-TTY run is a no-op (no interactive child spawned). The channel + step label are plumbed through RunSkillOptions → runSkill → clackPrompter, and run-channel-skill threads the channel it is wiring so the handoff has the right context. An injected prompter is unaffected (the injector owns its I/O). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>