Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A manager reply can appear twice while a background tool remains active. The progress tracker treats a clean
message_endas progress solely because another tool is open, then the final projector publishes the same message asassistant_output. These are distinct persisted conversation entries, so this is not a repeated WebSocket delivery or renderer-only issue.Text-only streamed updates can enter the same premature-progress path before their final/progress classification is known.
Change
One production file and two test files; 112 additions and 3 deletions. No new protocol fields, state owner, UI deduplication, provider adapter, or persistence migration. Previously saved duplicate entries are not rewritten.
Regression evidence
Prepared from public main
07d6c2990f21f9c693469492a7ab056a0933abec; only this fix is included.Tests were written before the corresponding production changes. Unmodified public code failed the new clean-final regression cases; additional streaming regressions failed before the provisional-publication correction. The corrected tests verify streamed/non-streamed output, with and without prior progress, through real conversation publication and persistence. They assert live delivery, background completion and settlement, fresh history reload, and preservation of a subsequent identical reply.
Validation
Validated on macOS arm64 with repository-pinned Node 26.5.0 and pnpm 10.30.1:
pnpm install --frozen-lockfilepnpm quality:full: all 8 checks passed; 9,334 tests passed and 33 conditional tests skipped. Includes lint, clean-checkout Knip, rollback-runner provisioning, all workspace tests/typechecks, strict help validation, Docker context safety, and production build.pnpm exec tsc -p tsconfig.build.json --noEmitand UIpnpm exec tsc --noEmit.git diff --check.An initial supported-Node-22 test run encountered a cached native SQLite ABI mismatch, also reproduced on an untouched public baseline. Rebuilding its native dependencies made all 68 baseline WebSocket tests pass. Final full qualification used the exact repository runtime pin and rebuilt native dependencies; no source/config bypass was added.
Boundaries
No account-authenticated production session or headed UI test was performed. Native-process acceptance uses disposable configuration/data and a deterministic local HTTP fixture. The mandatory Linux Secure Sessions PR CI remains required before merge and is not claimed passed by the local gate. Desktop release/platform packaging is not claimed qualified by this backend patch.