Commit Graph

56 Commits

Author SHA1 Message Date
saltbo 9c8262384c fix(scripts): update smoke test session cleanup check for retained closed sessions
Since a62d739, cleanup_done transitions to 'closed' (not terminal/deleted)
so sessions are retained on disk for history lookup. Update wait_session_cleanup
to accept 'closed' status as cleaned up, and add timeout wait for cancel test.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-14 22:43:28 -04:00
saltbo 4760ad3010 fix(cli): restore codex review resume flow
Persist the Codex thread id as a provider resume token so reject/resume reconnects to the same Codex conversation instead of passing the daemon session id to the SDK.

Also update the daemon smoke test to wait for async review-session cleanup and guard empty task cleanup arrays under set -u.
2026-04-14 17:39:58 -04:00
saltbo e46b72457d fix(scripts): wait for finalize before reject in smoke test
The reject was racing with finalize — task reached in_review on the
server but daemon hadn't finished preserving the session yet. Agent
would then see in_progress (rejected) instead of in_review on getTask,
causing a spurious release + re-dispatch. Add 5s delay to let finalize
complete before rejecting.
2026-04-14 01:34:59 -04:00
saltbo 370398acaa feat(scripts): add daemon-smoke-test covering full task lifecycle
Replaces smoke-test.sh with daemon-smoke-test.sh that covers all four
daemon scheduling scenarios: dispatch, reject/resume, complete, cancel.
2026-04-14 01:30:21 -04:00
saltbo 769986888c fix(scripts): smoke test picks developer agent instead of first agent
The smoke test was blindly selecting the first agent from the list,
which could be a builtin like Quality Goalkeeper. Now filters by
developer role and auto-creates from fullstack-developer template
if none exists.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 10:49:46 -04:00
saltbo 0d46363e93 fix(api): support assigned_to on task creation
createTask was hardcoding assigned_to as NULL, ignoring the --assign-to
CLI flag. Now accepts assigned_to in the input and writes it atomically
with an 'assigned' log entry. Also adds a smoke-test script for e2e
flow verification.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 09:47:43 -04:00