-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: exec tool failure message format makes framework labels indistinguishable from agent-typed commands #97319
Copy link
Copy link
Closed
Labels
P3Low-priority cleanup, docs, polish, ergonomics, or speculative work.Low-priority cleanup, docs, polish, ergonomics, or speculative work.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.no-staleExclude from stale automationExclude from stale automation
Description
Metadata
Metadata
Assignees
Labels
P3Low-priority cleanup, docs, polish, ergonomics, or speculative work.Low-priority cleanup, docs, polish, ergonomics, or speculative work.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.no-staleExclude from stale automationExclude from stale automation
Type
Fields
Priority
None yet
Summary
When an
exectool call fails, the cron run history and chat surface render the failure as:The leading verb
runis inside the backticks adjacent to the actual command. This looks indistinguishable from an agent that literally typedrun python3 /path/to/script.py(i.e., prepended the wordrunto a Python invocation).It is in fact a framework display label for the
exectool call, not part of the command.Environment
2026.6.10cron action=runs→lastError), and the chat tool-failure cardReal debugging cost
Debugging a
daily-cost-auditcron failure today, this misled diagnosis for ~45 minutes:⚠️ 🛠️ \run python3 /path/to/daily-cost-audit.py` failed`runto its command and rewrote the cron prompt twice with explicit "do not prependrun" forbiddensexectool was raising on the script's exit code1Only re-running the actual command in a shell exposed the false signal.
Suggested fix
Change the display format so the framework verb is clearly outside the literal command, e.g.:
⚠️ 🛠️ `run python3 /path/to/script.py` failed⚠️ exec failed: `python3 /path/to/script.py` (exit 1)⚠️ tool exec call failed: `python3 /path/to/script.py`⚠️ exec call `python3 /path/to/script.py` failedIncluding the exit code in the message, when available, would also help.
Severity
Low — debugging quality-of-life, no functional impact. Pairs with the
execnonzero-exit issue being filed separately; together they made a real failure hard to diagnose.