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
Owner

Summary

  • Conversation detail returns resumeSeq beside lastSeq.
  • While a run is open, resumeSeq is that run's first event seq minus one, so a client can replay the process already produced.
  • After the run ends, resumeSeq equals lastSeq.

Test plan

  • TestConversationResumeSeq: hitl wait has resumeSeq = first-1 and less than lastSeq; after resolve the two cursors match
  • GOWORK=off go test ./...
  • owner merges

Refs: Dev fix/live-run-visibility

## Summary - Conversation detail returns resumeSeq beside lastSeq. - While a run is open, resumeSeq is that run's first event seq minus one, so a client can replay the process already produced. - After the run ends, resumeSeq equals lastSeq. ## Test plan - [x] TestConversationResumeSeq: hitl wait has resumeSeq = first-1 and less than lastSeq; after resolve the two cursors match - [x] GOWORK=off go test ./... - [ ] owner merges Refs: Dev fix/live-run-visibility
weichen added 1 commit 2026-10-03 15:22:59 +00:00
Replay an open run from its first event
ci / vet-and-test (pull_request) Successful in 42s
51b1ff6923
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>
weichen added 1 commit 2026-10-03 15:25:26 +00:00
Merge origin/main into fix/live-run-visibility
ci / vet-and-test (pull_request) Successful in 41s
cf44bd56b0
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
weichen merged commit 28ccb741e4 into main 2026-10-03 15:25:37 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Backend#54