Repository navigation
refactor(stream): share auxiliary queue overflow handling - #149282
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check could not safely complete for this revision. ClawSweeper will not retry this unchanged revision. Next step: No contributor action is requested. Maintainers should inspect the linked workflow run. |
…pr-149282-proof-20260919 * commit '534100dfb1eda19b0793c14fd0fba67eaf729ee0': (1800 commits) perf(gateway): avoid roster scans in catalog delivery (#151938) fix(telegram): preserve dispatcher composition under Bun (#152055) test(gateway): seed fixture auth without native plugin imports (#152058) test: restore document focus after shared cleanup (#152065) fix(ui): preserve attachment reader focus during link refresh (#151858) perf(tests): isolate metadata heap checks (#152063) fix(ui): make RTL side panel resizing follow input direction (#151989) fix(doctor): move Workshop diagnostic reads off the caller thread (#149905) fix(google): prevent Gemini errors from optional schema metadata (#151327) test: retain safe quota recovery failure evidence (#152003) test(qa-lab): stabilize self-yield follow-up release proof (#152048) perf(codex): reduce residual app-server framing overhead (#152035) improve(cron): batch automation names in chat history (#152054) fix(ui): preserve transparent chat widget backgrounds (#151972) fix(ui): HTML attachment previews leave most of the side panel unused (#152031) perf(gateway): coalesce person presence activity broadcasts (#152042) fix(ui): keep session Actions clickable beside attachments (#151975) refactor(qa): reuse Matrix CLI JSON parser (#152087) feat(ui): navigate message images in the lightbox (#152027) fix(codex): avoid fallback replies after intentional silence (#151951) ...
…pr-149282-proof-20260918 * refs/remotes/origin/main: fix(clickclack): finish SQLite cleanup between persistence tests (#152061) fix(workboard): isolate board deletion from unrelated subscriptions (#152102) refactor(agents): unify tool availability and plugin work ownership (#152073) fix: session group moves lag while requests are pending (#151689) fix(agents): preserve active cleanup during requester settlement (#151907) perf(sessions): keep deletion responsive under disk pressure (#152092) fix: preserve successful direct replies without serializing bookkeeping keys (#151870) fix(gateway): keep the previous plugin generation serving when a replacement stalls on admitted work (#151273) fix(agents): resume parent tasks after provider retries (#151879) perf(skills): silence identical collisions across workspaces (#152062) fix: reduce Doctor preparation time for large fleets (#151366) perf(ui): reuse session snapshots for roster updates (#152067) perf(tasks): skip SQLite admission for transient agent events (#152088) fix: await initial task persistence before Gateway activation (#151634) test: keep Vitest prototype ownership on execFile mocks (#152064) fix(pr): recover interrupted checkouts and isolate allocation state (#152069) fix(test): keep quota observer armed during Codex prewarm (#152090) fix(cron): keep scheduled jobs alive after their creating request ends (#152051) refactor(shared): reduce immutable graph traversal allocations (#152077)
…pr-149282-proof-20260918 * commit 'dfa48c256f0853268c6b42cbe09fc1338d7d24ea': test(qa-lab): stabilize timeout recovery delivery proof (#152100) fix: probe SQLite when Node denies worker threads (#152075) perf(gateway): keep GitHub co-author trailer scans linear (#152115) fix(media): report CLI models with missing command or args (#151969) refactor: remove retired runtime code and duplicate helpers (#151973) perf(plugins): combine runtime and tool call scopes (#152101) test(memory): seed restart fixtures with the Gateway stopped (#152038) perf(gateway): avoid session list stalls on broad updates (#152074) fix: preserve model failure causes and worker fallback runtime (#152028) perf(logging): reduce Gateway hot-path info log volume (#152080) improve(gateway): reduce duplicate worker data fetched from SQLite (#151878) improve: format messages with many links faster (#152112) perf(cron): avoid unused SQL binding in config projections (#152029) fix: explain cloud worker startup failures (#152043) refactor(discord): share Markdown edit projection (#149214) refactor(media): remove unreachable geometry metadata backfills (#149272) chore(autoreview): sync mirror to agent-skills a7e91e1 (#152039) fix(ui): restore sidebar and chat test collection (#152099)
|
Codex review: blocked before merge. Reviewed September 18, 2026, 5:36 PM ET / 21:36 UTC (Revision 2). ClawSweeper reviewWhat this changesShares overflow handling for buffered non-text stream events, expands ordering and suppression coverage, and splits the stream-normalizer tests into focused files. Merge readiness⛔ Blocked before merge - 1 item remains No actionable introduced defects found. The consolidation remains absent from current main, and this MEMBER-authored PR is protected from automatic closure. Priority: P3 Review scores
Verification
How this fits togetherTool-call repair processes provider response streams before the agent consumes them. It buffers possible serialized tool calls, preserves ordinary text and code examples, and forwards other events in order. flowchart TD
A[Provider response events] --> B[Tool-call repair]
B --> C[Candidate or suppressed text]
C --> D[Bounded auxiliary event queue]
D --> E{Queue over limit}
E -->|Yes| F[Replay ordinary text or drain scrubbed events]
E -->|No| G[Wait for more events or final message]
F --> H[Agent stream consumer]
G --> H
Before merge
Agent review detailsSecurityNone. PR surfaceSource -18, Tests +81, Other -1. Total +62 across 5 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep one bounded auxiliary-event drain path with explicit candidate-only decisions and preserved ordering, suppression, and fence-protection contracts. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR removes duplicated handling rather than reporting a user-facing defect; source inspection confirms the duplication on main. Is this the best way to solve the issue? Yes. Consolidating the existing branch preserves its state-specific decisions without adding another abstraction or changing public contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fc8168070b17. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
ClawSweeper disposition for exact head This PR changes no runtime configuration, persisted state, database schema, migration, backfill, repair, or upgrade behavior. Blacksmith Testbox changed-check and diff-check both passed with exit 0. The production patch ID remains unchanged at |
|
Merged via squash.
|
…pr-149099-main-20260918 * commit '795e460278d4f8f41545dc8b4a66da1d12defd90': (1902 commits) refactor(slack): share Markdown preparation (#149129) fix(tooling): release completed PR operations with exited loaders (#152209) fix(release): allow stable npm bootstrap under an operator soak waiver (#152206) fix(daemon): avoid false restart timeouts during slow startup (#151387) feat: read agent documents from a host-owned workspace (#150584) improve(startup): skip redundant single-agent directory checks (#152192) test(ui): await board widget readiness before size reports (#152198) perf(browser): move dashboard event discovery to SQLite worker (#151952) improve(auth): reduce pauses during concurrent credential reads (#152140) improve(ui): load older chat history in smaller pages (#152093) fix(release): reject incomplete legacy npm install trees (#152186) refactor: share current-conversation binding row serialization (#152134) test(tooling): preserve Node and terminal fixture ownership under Bun (#152187) fix(sqlite): service worker admission through retained path aliases (#152190) improve: reduce CPU work for long CLI reasoning streams (#152191) chore(ui): refresh control ui locales (#152196) test(subagents): align lifecycle retries with durable completion owners (#152184) perf(gateway): defer participant maps for owned sessions (#152097) refactor(stream): share auxiliary queue overflow handling (#149282) fix(test): execute CLI fixture preloads on Node and Bun (#152076) ...
…49282) * refactor(stream): share auxiliary queue overflow handling * test(tool-call-repair): split stream normalizer coverage
What Problem This Solves
Streaming tool-call repair maintains the same auxiliary-event queue overflow policy twice, once for candidate text and once for text already being suppressed.
User Impact
No intended user-visible change. Auxiliary events keep their order, buffered tool-call text stays suppressed, and replayed false positives retain code-fence protection.
Why This Change Was Made
Use one bounded queue and drain path while keeping candidate-only classification and scrubbing explicit. The large stream-normalizer test file is split into focused primary, protection, and shared-support modules without changing production behavior or weakening coverage. No public API, limit, dependency, or performance claim changes.
Evidence
abe92197df90771248a96991ebf1f18a37f4185apreserves the original signed PR headb49186330bfd5717bb5f258f6110e00a831555d4in its ancestry.c690896ce50699ce150e1aecff2d14eb482318d1; its stable patch ID remainsa7132e9e7ee5bc97f72327fd9cbd70b222010b69across the test split and current-main refresh.tbx_01m2v4rqqc7tg2d9w8gkhjbt8z. Full five-pathcheck-changedand scopedgit diff --checkpassed with exit 0. Actions run: https://github.com/openclaw/openclaw/actions/runs/35393951147