mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-10 01:09:43 +02:00
fix: add step confirmation to respawn controller
- Add step confirmation timer for waiting_update, waiting_init, waiting_kickstart states - After detecting completion in waiting states, wait for completionConfirmMs silence - Prevents sending next command before Claude finishes processing current one - Cancel step confirmation when working patterns detected - Update CLAUDE.md with step confirmation documentation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -285,6 +285,8 @@ curl -X POST localhost:3000/api/sessions/:id/input \
|
||||
|
||||
Uses `confirming_idle` state to prevent false positives. Fallback: `noOutputTimeoutMs` (30s) if no output at all.
|
||||
|
||||
**Step Confirmation**: After sending each respawn step (update, init, kickstart), the controller waits for the same `completionConfirmMs` silence before proceeding. This ensures Claude finishes processing each prompt before the next command is sent.
|
||||
|
||||
**Session**: emits `idle`/`working` events on prompt detection + 2s activity timeout.
|
||||
|
||||
### Token Tracking
|
||||
|
||||
Reference in New Issue
Block a user