Show a run as active as soon as the send returns #38

Merged
weichen merged 2 commits from fix/live-run-visibility into main 2026-10-03 15:25:37 +00:00
Owner

Summary

  • A user message that carries the run id no longer hides the live bubble.
  • The composer shows 停止/排队 as soon as the send returns, without waiting for the next reconcile.
  • Reopening a conversation replays from resumeSeq when the server sends it, using the event timestamp for elapsed time.

Test plan

  • npx tsc -b
  • vitest 75, including hasSettledReply and mergeStartedRun
  • mock server: button changes within 250ms and the reply grows before it settles
  • owner merges

Refs: Dev fix/live-run-visibility

## Summary - A user message that carries the run id no longer hides the live bubble. - The composer shows 停止/排队 as soon as the send returns, without waiting for the next reconcile. - Reopening a conversation replays from resumeSeq when the server sends it, using the event timestamp for elapsed time. ## Test plan - [x] npx tsc -b - [x] vitest 75, including hasSettledReply and mergeStartedRun - [x] mock server: button changes within 250ms and the reply grows before it settles - [ ] owner merges Refs: Dev fix/live-run-visibility
weichen added 1 commit 2026-10-03 15:22:59 +00:00
Why: Stamping the user message with the run id made the live bubble look settled, and the composer stayed on 发送 until the next reconcile.
Evidence: npx tsc -b passed. vitest 75, including hasSettledReply and mergeStartedRun. On a mock server the button became 停止/排队 within 250ms and the reply grew while the run was open.
Impact: Composer, live bubble, and agent tracker only. A stored user message no longer hides the stream. Reopening replays from resumeSeq when the server sends it.
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
Why: The pull request cannot merge while the head is behind main.
Evidence: origin/main is 539aae6, one commit ahead of this branch.
Impact: Keeps the live-run fix and the retried request-id fix together.
Refs: Frontend #38
weichen merged commit 8be98b4cbe 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-Frontend#38