Repository navigation
fix: hide raw background command notices from chat - #168236
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesHide raw background-command completion notices from Gateway chat displays while preserving transcripts and assistant replies. Example: A background command finishes with code 0 and captured output.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it repairs a concrete display defect still present on current main, with sufficient visual proof and no actionable findings; the earlier draft blocker is resolved. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Gateway transforms transcript messages into history pages and live session.message payloads consumed by chat clients. flowchart TD
A[Background command completion] --> B[Agent transcript]
B --> C[Agent continuation]
B --> D[Shared display projection]
C --> E[Assistant reply]
E --> D
D --> F[History and live chat]
Technical reviewBest possible solution: Keep the narrow provenance filter in the shared Gateway display owner so history and live chat agree without changing model context. Do we have a high-confidence way to reproduce the issue? Current main permits provenance-tagged exec inputs through its display predicate, and the supplied Control UI replay demonstrates the visible symptom without requiring a new run. Is this the best way to solve the issue? The existing shared projection is the appropriate owner, and structured provenance avoids suppressing genuine user messages containing the same text. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 96c8ba5fe649. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +8, Tests +24, Docs +1. Total +33 across 3 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 10, 2026, 2:00 AM ET / 06:00 UTC (Revision 2). |
What Problem This Solves
Background
execcompletion inputs were displayed as opaque SYSTEM chat rows, including internal run identifiers and truncated command output.User Impact
Raw exec notices no longer appear in Control UI history or live message updates. Background commands still wake the agent, and its user-facing results remain visible. Genuine user messages, restart notices, and assistant replies are preserved. No configuration or migration changes.
Why This Change Was Made
Filter user-role
internal_system/execinputs at the existing shared Gateway chat-display projection. This keeps history and live delivery under one visibility owner, without text matching, a separate UI filter, or changes to the raw model transcript.Evidence
pnpm test src/gateway/chat-display-projection.visibility.test.ts --maxWorkers=1: 15 passed, 183.43 s wall time, approximately 0.44 s assertions (30 ms combined for the two new cases). Compiler/admission work dominated this run. CI seconds not yet measured.check-changedgate passed for all three changed files: core and 27 core-test typecheck graphs, formatting, lint, ratchets, export scans, and runtime/storage/import guards.git diff --checkpassed.Before
After