mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-08-29 19:42:37 +00:00
* fix(daemon): reduce subagent live replay journal * fix(acp-bridge): let summary loads share an in-flight full restore The restore-coalesce fence compared liveReplayMode strictly, so a WebUI summary load racing any full-mode load of the same session (keepalive revive, acp-http clients, older WebUI tabs) threw restore_in_progress instead of coalescing. The summary journal is a strict subset of the full journal, so a summary waiter can safely share an in-flight full restore and project the superset down. Only the reverse — a full request joining a summary restore — would return a missing-detail projection, so that direction stays fenced. * test(acp-bridge): add regression fences for live-replay review findings (#9057) * fix(acp-bridge): guard coalesced waiter recompute against channel death (#9057) Review feedback addressed: - Critical R3-7: the coalesced waiter's replay-field recompute awaited refreshedReplayFieldsFor after registerClient/recordAttachRef with no post-await re-assert or rollback. refreshedReplayFieldsFor swallows every fetch error into the in-memory fallback, so a channel death during the transcript-page await attached the waiter to a session the daemon had already torn down. Move the recompute ahead of registration — the existing-entry attach path's shape — and re-assert after the await, rolling back the pre-folded coalesce reservation on rejection. Add a regression test that parks the waiter on the transcript fetch, crashes the channel, and expects SessionNotFoundError (flip-checked: without the fix the waiter resolves attached:true). - R3-2: drop the false "summary journal is a strict subset of the full journal" rationale from the coalesce fence comment, the summary-onto-full coalesce test comment, and the design doc. Under cap pressure the two journals evict independently and can diverge, so coalescing is safe solely because the waiter recomputes its own mode's replay fields from the registered entry. --------- Co-authored-by: 钉萁 <dingqi.jww@alibaba-inc.com> Co-authored-by: qwen-code-autofix[bot] <qwen-code-autofix[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| assets | ||
| design | ||
| developers | ||
| e2e-tests | ||
| images | ||
| plans | ||
| superpowers | ||
| users | ||
| verification/abort-controller-refactor | ||
| _meta.ts | ||
| index.md | ||