Repository navigation
Conversation
Restores 2026.7.x behavior where ordinary verbosity still shows what the agent executes (exec title or redacted command summary). Verbose "full" still additionally forwards raw outputs; verbose "off" stays fully hidden. Refs openclaw#131457
|
🦞👀 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: blocked before merge. Reviewed September 13, 2026, 10:54 PM ET / September 14, 2026, 02:54 UTC (Revision 4). ClawSweeper reviewWhat this changesShows bounded, redacted execution titles in ordinary verbose tool-summary messages while keeping command-derived details and outputs behind full verbosity. Merge readiness⛔ Blocked before merge - 5 items remain The PR remains useful: current main still suppresses execution titles, and the earlier command-metadata disclosure finding is resolved. No blocking code defect was found; accepting the broader title visibility remains a maintainer policy choice. Priority: P2 Review scores
Verification
How this fits togetherThe embedded agent subscriber converts tool-start events into standalone chat messages. Its verbosity filter determines which execution details reach channel users. flowchart TD
A[Tool starts with arguments] --> B[Embedded agent subscriber]
B --> C[Classify command-bearing call]
B --> D[Sanitize and redact title]
C --> E[Apply verbosity policy]
D --> E
E --> F[Format standalone chat summary]
F --> G[Channel delivery]
Decision needed
Why: The prior merged disclosure policy deliberately made these summaries label-only; sanitization supports the proposed tradeoff but cannot decide whether arbitrary title prose is acceptable on ordinary chat surfaces. Before merge
Findings
Agent review detailsSecurityNeeds attention: The earlier command-derived disclosure defect is resolved; the intentional expansion to title prose still needs policy acceptance. PR surfaceSource +14, Tests +63. Total +77 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt a documented, maintainer-approved title-only exception in the existing subscriber, retaining bare untitled summaries and full-only command details and outputs. Do we have a high-confidence way to reproduce the issue? Yes: a titled execution call at ordinary verbosity reaches the current-main gate that removes its metadata, producing a bare label. This was established from source and the supplied release observation, not a reviewer-run reproduction. Is this the best way to solve the issue? Yes, conditional on accepting the disclosure policy: carrying the existing sanitized title separately is narrower than exposing command-derived summaries or enabling full tool output. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against dce5ea72e8ea. LabelsLabel 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)
|
Follow-up to review feedback: revision 2 exposed all command-derived metadata (compact commands, working directories, node fragments) at ordinary verbosity whenever the title was absent. This narrows the ordinary-verbosity exception to the agent-authored title only. - emitToolSummary now receives the title as a separate bounded field (resolveExecTitle: sanitized, redacted, capped at 120 UTF-16 units) - verbose "on": command-bearing summaries show only the title; when no title is present they fall back to the bare tool header - command-derived metadata stays gated behind verbose "full" exactly as main intends; verbose "off" stays fully hidden - tests: cover title visibility at "on", no-title leak resistance at "on" (compound command), and command visibility at "full" Refs openclaw#131457
CI follow-up to 30578af: the verbose-full coverage asserted the raw command string while the harness kept the default toolProgressDetail ("explain"), which humanizes commands (echo -> "print text"), so the assertion could never hold. Configure toolProgressDetail: "raw" in that harness so the test exercises the raw-detail path where command-derived metadata genuinely carries the command text at verbose full. Also apply the oxfmt import order to handlers.tools.start.ts that CI flagged in check-lint (tool-display-exec.js sorts before tool-display.js). Refs openclaw#131457
|
Still relevant on 2026.9.5 — the gate this PR changes ships unchanged in the new release, and the bare- For what it's worth: we've been running the identical one-line change ( |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Still active — three consecutive releases of local evidence; offering a rebase Real-world data since Revision 4: we've been running the same gate semantics locally (a one-line Zero regressions observed: one-line tool titles render at default verbosity in both channels, and nothing beyond titles is exposed. That's exactly the UX gap this PR addresses — operators avoid To make review easier, happy to do either (or both):
No rush on the review itself — just refreshing the thread with evidence that the behavior has been stable in production-shaped use across three releases now. |
|
Maintainer triage: this needs an explicit product/disclosure-policy decision, rather than a bug-only repair. I checked the ClawSweeper findings on
Open decision: should existing I am handing this off for that decision without changing code or overriding the review. No new Gateway, mock-provider, Telegram, or live-provider run was performed: the documented-contract prerequisite for treating this as a bug is not met. This comment does not claim runtime proof or a landing-ready state. Thanks for the focused title-only narrowing and the production observations already supplied. |
What Problem This Solves
verbose onis the user's supervision channel while the agent operates on their machine. In a typical DM session the agent edits configs, touches files, and debugs the host through exec; the tool-summary bubbles are what let a human follow what is running and interrupt in time when something looks wrong. Since #121600, ordinary verbosity hides all command-bearing metadata, leaving runs like:Four featureless
Execbubbles; the exectitle(a human-written, redacted description — cf. #130422) never surfaces./verbose fullrestores visibility but also forwards all tool outputs, which is unusable as an always-on supervision mode. The balanced default that 2026.7.x shipped currently exists at no setting.This PR restores a bounded slice of it: the agent-authored
titleonly.Design (title-only exception, per review guidance)
Revision 3 narrows the change to exactly the exception the review suggested ("title walks a separate field, command-derived metadata stays full-only gated"):
emitToolSummarynow receives the title as a separatetitleOnlyfield, resolved viaresolveExecTitle(args)— sanitized (sanitizeTerminalText), redacted (redactToolPayloadText), capped at 120 UTF-16 units.on: command-bearing tool summaries show only that title. When no title is present, the summary falls back to the bare tool header — command-derived metadata (compact commands, cwd suffixes, node fragments; theresolveExecDetailexplain-mode fallbacks) can never reach ordinary verbosity, because the gatedmetastring is bypassed entirely for command-bearing tools aton.full: unchanged — fullmeta(command-derived detail included) plus forwarded outputs.off: unchanged — fully hidden.Evidence
Validated by deploying the gate change on a production gateway (in-place upgraded 2026.7.1-2 → 2026.9.4, npm global, systemd --user), before opening this PR:
Before (stock 2026.9.4, verbose on) — live observation from a Feishu DM session (agent turn running several exec calls, each with a human-written
title):Every command-bearing summary collapsed to the bare label; titles never rendered. Reported upstream as #145509 with the reproduction matrix (closed as superseded by #131457, which this PR addresses for the standalone-tool-summary path).
After (gate change applied, gateway restarted, verbose on) — live terminal observation, 2026-09-12:
titleat verboseon; raw command text and tool outputs are not forwarded (that stays gated behind verbosefull).Behavior matrix
Security notes
title, already treated as bounded, redacted display text upstream (resolveExecTitle: sanitize → redact → 120-unit cap); it contains no command-derived content.on) is structurally resolved: themetastring (and therefore everyresolveExecDetailfallback path) is no longer consulted for command-bearing tools at ordinary verbosity.full;shouldEmitToolOutputis untouched.Testing
New/updated unit tests in
embedded-agent-subscribe.subscribe-embedded-agent-session.compaction-and-tool-summaries.test.ts:on(exec), sentinel command text absent;server.execsummary header preserved aton;echo private-sentinel && cat secrets.env) atonrenders the bareExecheader only — no command, no arguments;full(regression guard for the gate).