Repository navigation
Conversation
|
CI follow-up: this backend-only change passes the complete Backend Tests, Backend Build, Frontend Docker Build, and rmqctl jobs in run 39286616653. The only failing job is the unchanged frontend suite: 1,830 tests pass and The local final backend selection passed 415 tests in nine classes, including 42 AiRunService cases. The combined local tree with #7143 and #7153 also passed all 423 selected tests and Checkstyle. I have left the independent Consumer test fix to the existing PR rather than adding unrelated frontend changes here. |
|
This pull request has been automatically closed because there has been no activity for 7 days. If you would like to continue working on this, please reopen the PR with updated changes. |
Which Issue(s) This PR Fixes
Brief Description
The run-stream endpoint reads conversation-wide event pages and currently projects every row as the requested run. Other turns' answers and statuses enter its replay; a previous COMPLETED event can suppress the correct synthetic FAILED terminal for a reaped run.
Start replay at the later of the caller's cursor and the requested run's positive startSeq minus one. Continue advancing the scan cursor across every row, but only matching runId rows enter decoding, projection, terminal detection, and the live deduplication watermark.
Do not cap replay at endSeq: a reaped run may retain its admission-time endSeq while already having persisted text. Null/zero legacy startSeq values retain the zero-floor fallback; those rows cannot receive the old-history skip optimization without trustworthy metadata. SQL, pagination limits, observer registration, and external API shapes are unchanged.
This is same-owner content/status correctness. Normal short-history UI attachment usually supplies a later timeline cursor; the large-history auto-attach path was verified in source, not with a browser deployment. Nearby paging, timing, duration, frontend-continuation, and terminal-publication fixes were checked for overlap. AI assistance was used.
How Did You Test This Change?
Base: rocketmq-studio@127c47b06a268cc74224d5f34c56ec7c36ac0d55.
JDK 21.0.12.1 / Maven 3.9.12, from server/:
MAVEN_REPO denotes the configured local repository. The explicit Mockito startup agent avoids unsupported dynamic self-attachment in this container; no project build configuration changed. The final focused run took 8.21 seconds, with approximately 512 MiB sampled combined RSS. Full backend/MySQL integration and frontend suites were not run.
Checklist