Repository navigation
fix: keep runtime details out of chat notifications - #121600
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
14f0838 to
aa9d577
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 10, 2026, 11:51 AM ET / 15:51 UTC. ClawSweeper reviewWhat this changesThis PR makes ordinary chat progress and automation notifications hide runtime commands, paths, and raw errors by default while retaining explicit diagnostic modes. Merge readinessKeep open. The PR targets the related disclosure report with a sensible producer-to-renderer boundary, but it needs an explicit maintainer decision on the intentional default change and exact-head security verification before merge. Priority: P1 Review scores
Verification
How this fits togetherAgent and provider events flow through the shared reply handler into channel progress drafts and standalone notifications. Cron failures follow a separate normalized-reason path through Gateway delivery, while raw diagnostics remain in history and webhooks. flowchart LR
A[Agent and provider events] --> B[Reply event bridge]
B --> C[Shared progress policy]
C --> D[Channel progress drafts]
E[Automation failures] --> F[Normalized failure reason]
F --> G[Gateway notifications]
G --> D
Decision needed
Why: The change improves chat privacy but deliberately changes established output for existing configurations that do not declare this setting; that security-versus-diagnostics tradeoff needs maintainer intent. Before merge
Findings
Agent review detailsSecurityNeeds attention: The change hardens a sensitive disclosure boundary, but its Codex item classification could not be verified against the required sibling source checkout. Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Mantis proof suggestionA short Telegram Desktop capture can directly show the user-visible disclosure policy before merge. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt the secure default only after explicitly accepting its upgrade behavior, then land one canonical producer-to-renderer policy with exact-head Codex and Telegram evidence. Do we have a high-confidence way to reproduce the issue? No live high-confidence reproduction was run; the available source proves omitted configuration resolves to raw command text, making the reported disclosure path source-reproducible. Is this the best way to solve the issue? Unclear. Recording command sensitivity at producers is preferable to consumer scrubbers, but the exact Codex contract and the intentional upgrade policy remain unverified. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5e5cf673141b. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
aa9d577 to
2b94c6e
Compare
2b94c6e to
cf71f05
Compare
cf71f05 to
5f49c06
Compare
42dfd7b to
62a83f6
Compare
Three breakages landed on main that push CI's changed-scope never runs: a caught-error cause missing in the release-validation script and two type errors in the package-acceptance test (direct commit 1f591bb), and a memory-host regression where fs-safe 0.5.4 (#121508) started throwing FsSafeError("not-file") for extra-path reads whose parent chain hits a regular file, breaking the missing-file empty-text contract that #121209 had preserved. Repaired per the land-onto-red rule; symlink rejection unchanged. Item 4 repairs managed-image action E2E narrowing from bad30d5 (#77017). Item 5 repairs chat-message mock typing and download-name capture from that commit. Item 6 restores #121258's cursor token contract after #77017 hard-coded pointer. Item 7 aligns managed-image cache and E2E expectations with #77017's thumbnail variant. Item 8 records #121600's explicit command-bearing lifecycle classification. Item 9 aligns cron assertions with #121600's redacted chat-alert contract. Item 10 forwards fs-safe 0.5.4 bigint lstat options through the snapshot mock. Item 11 refreshes release-matrix test ownership after 1f591bb. Item 12 awaits f3e1efe's setup-admission settlement in direct session tests. Item 13 keeps media FileStore keys POSIX-relative on Windows for #121226. Item 14 regenerates Swift approval reviewer fields added by 9935ca3.
Three breakages landed on main that push CI's changed-scope never runs: a caught-error cause missing in the release-validation script and two type errors in the package-acceptance test (direct commit 1f591bb), and a memory-host regression where fs-safe 0.5.4 (#121508) started throwing FsSafeError("not-file") for extra-path reads whose parent chain hits a regular file, breaking the missing-file empty-text contract that rejection unchanged. Item 4 repairs managed-image action E2E narrowing from bad30d5 (#77017). Item 5's chat-message mock repair was superseded upstream by 750d0dc, whose broader fetch typing and explicit download capture preserve the same contract. Item 6 restores #121258's cursor token contract after #77017 hard-coded pointer. Item 7's managed-image thumbnail-path repair was superseded upstream by 750d0dc, which preserves the same contract in main's reorganized URL structure. Item 8 records #121600's explicit command-bearing lifecycle classification. Item 9's cron assertion repair was superseded upstream by 3cd034f, whose exact diagnostic rewrite includes the same redacted alert contract. Item 10 forwards fs-safe 0.5.4 bigint lstat options through the snapshot mock. Item 11 refreshes release-matrix test ownership after 1f591bb. Item 12 awaits f3e1efe's setup-admission settlement in direct session tests. Item 13's media FileStore-key repair was superseded upstream by cf432ec, which fixes the same Windows root cause at the owner boundary. Item 14 regenerates Swift approval reviewer fields added by 9935ca3.
Three breakages landed on main that push CI's changed-scope never runs: a caught-error cause missing in the release-validation script and two type errors in the package-acceptance test (direct commit 1f591bb), and a memory-host regression where fs-safe 0.5.4 (#121508) started throwing FsSafeError("not-file") for extra-path reads whose parent chain hits a regular file, breaking the missing-file empty-text contract that rejection unchanged. Item 4 repairs managed-image action E2E narrowing from bad30d5 (#77017). Item 5's chat-message mock repair was superseded upstream by 750d0dc, whose broader fetch typing and explicit download capture preserve the same contract. Item 6 restores #121258's cursor token contract after #77017 hard-coded pointer. Item 7's managed-image thumbnail-path repair was superseded upstream by 750d0dc, which preserves the same contract in main's reorganized URL structure. Item 8 records #121600's explicit command-bearing lifecycle classification. Item 9's cron assertion repair was superseded upstream by 3cd034f, whose exact diagnostic rewrite includes the same redacted alert contract. Item 10 forwards fs-safe 0.5.4 bigint lstat options through the snapshot mock. Item 11 refreshes release-matrix test ownership after 1f591bb. Item 12 awaits f3e1efe's setup-admission settlement in direct session tests. Item 13's media FileStore-key repair was superseded upstream by cf432ec, which fixes the same Windows root cause at the owner boundary. Item 14 regenerates Swift approval reviewer fields added by 9935ca3.
Keep raw commands, paths, and provider errors out of ordinary chat while preserving explicit raw diagnostics and structured admin history. Default command progress is status-only; `/verbose full` and `commandText: "raw"` retain diagnostic detail. Co-authored-by: Ayaan Zaidi <[email protected]>
Three breakages landed on main that push CI's changed-scope never runs: a caught-error cause missing in the release-validation script and two type errors in the package-acceptance test (direct commit 1f591bb), and a memory-host regression where fs-safe 0.5.4 (#121508) started throwing FsSafeError("not-file") for extra-path reads whose parent chain hits a regular file, breaking the missing-file empty-text contract that rejection unchanged. Item 4 repairs managed-image action E2E narrowing from bad30d5 (#77017). Item 5's chat-message mock repair was superseded upstream by 750d0dc, whose broader fetch typing and explicit download capture preserve the same contract. Item 6 restores #121258's cursor token contract after #77017 hard-coded pointer. Item 7's managed-image thumbnail-path repair was superseded upstream by 750d0dc, which preserves the same contract in main's reorganized URL structure. Item 8 records #121600's explicit command-bearing lifecycle classification. Item 9's cron assertion repair was superseded upstream by 3cd034f, whose exact diagnostic rewrite includes the same redacted alert contract. Item 10 forwards fs-safe 0.5.4 bigint lstat options through the snapshot mock. Item 11 refreshes release-matrix test ownership after 1f591bb. Item 12 awaits f3e1efe's setup-admission settlement in direct session tests. Item 13's media FileStore-key repair was superseded upstream by cf432ec, which fixes the same Windows root cause at the owner boundary. Item 14 regenerates Swift approval reviewer fields added by 9935ca3.
Related: #93251
What Problem This Solves
Default chat surfaces could expose raw commands, working directories, paths, or provider errors through tool progress, no-reply failures, ACP/Codex summaries, and automation notifications.
Why This Change Was Made
Command sensitivity is now recorded at tool producers and carried through shared renderers. Default command progress is status-only. The shipped explicit
streaming.*.commandText: "raw"opt-in remains unchanged; standalone command detail requires/verbose full. Embedded, CLI, Codex, ACP, ClickClack, and channel progress consume the same policy. Namespaced command tools retain terminal completed/failed status without exposing their command.Automation threshold alerts, failure-destination announcements, direct-delivery awareness, and auto-disable notices now use the persisted normalized failure reason or a generic automation-history action. Raw errors remain in run history, logs, and structured webhooks. The duplicate event-level cron classifier and unreachable inline tool-result renderer were deleted.
No new config, state, scrubber, or channel-specific fallback.
User Impact
Operators receive visible, actionable outcomes without internal runtime detail in ordinary chat. Existing explicit raw command-progress configurations keep their behavior.
/verbose fullremains the deliberate diagnostic path.Evidence
/verbose on, namespaced CLI terminal fact loss, and raw transport errors in cron delivery awareness.git diff --checkclean.codex-rs/protocol/src/items.rs,codex-rs/core/src/tools/events.rs, andcodex-rs/app-server-protocol/src/protocol/v2/item.rs: command, cwd, and output are distinct facts, so OpenClaw can gate raw detail without parsing display text.CronEvent.errorClassificationassertion was deleted after the owner cutover: normalized failure state is persisted once asjob.state.lastErrorReasonand consumed there, not duplicated on events.1c51972a4e7), two serial deterministic progress drives with no code/body change between them:commandText: Telegram progress showedExec failedonly; no shell command or arguments; final delivered; 2 provider requests, 2 SUT messages, 2 edits, 2 typing events, 0 deletes.commandText: "raw": Telegram progress exposed the deterministic fixture shell command; final delivered; 2 provider requests, 2 SUT messages, 2 edits, 2 typing events, 0 deletes.