Replay an open run from its first event #54

Merged
weichen merged 2 commits from fix/live-run-visibility into main 2026-10-03 15:25:37 +00:00
2 Commits
Author SHA1 Message Date
weichen cf44bd56b0 Merge origin/main into fix/live-run-visibility
ci / vet-and-test (pull_request) Successful in 41s
Why: The pull request cannot merge while the head is behind main.
Evidence: origin/main is 5d59ee9, one commit ahead of this branch.
Impact: Keeps the resume cursor and the interrupted-run recovery together.
Refs: Backend #54
2026-10-03 15:25:12 +00:00
weichenandCursor 51b1ff6923 Replay an open run from its first event
ci / vet-and-test (pull_request) Successful in 42s
Why: Refreshing or switching back only knew the latest event cursor, so process that had already happened was missing until the run finished.
Evidence: GOWORK=off go test -count=1 -run TestConversationResumeSeq ./internal/server passed. While a hitl run waits, resumeSeq is the run's first seq minus one and is less than lastSeq; after the run completes the two cursors match.
Impact: Conversation detail gains resumeSeq beside lastSeq. No core contract change. Clients that ignore the field keep the old cursor.
Refs: Dev fix/live-run-visibility
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-03 15:21:29 +00:00