Skip to content

Run log: a refused command shows its command and its reason while the step runs - #439

Merged
nambok merged 1 commit into
mainfrom
fix/run-log-refused-commands
Nov 16, 2026
Merged

nambok merged 1 commit into
mainfrom
fix/run-log-refused-commands

Conversation

@nambok

@nambok nambok commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

The run log now always shows a refused or failed shell command's text, and shows the refusal reason while the step is still running.

Changes

  • lib/agent-log.ts: a bash step is drawn as "Ran " with the full command. Before, the fallback label dropped any input longer than 80 characters, so long refused commands showed no command at all. A call sent with no command says so.
  • agent-log.tsx: a refused or failed shell step shows its command above its reason.
  • Live steps use the message the worker now puts on refused and failed tool events (platform PR), so "The full message is shown once this part of the run is saved" appears only for older events that have no reason.

Verification

  • New e2e tests failed before the change (2 failed) and pass after it.
  • npx tsc --noEmit, npm run lint, and playwright test e2e/agent-log.spec.ts e2e/run-log-tab.spec.ts: 34 passed.

… step runs

A shell step's sentence names its command however long it is (it used to
drop any input over 80 characters), a refused or failed step shows the
command above its reason, and a live step shows the reason the worker now
sends with the event instead of waiting for the saved log.
@nambok
nambok merged commit c19f42a into main Nov 16, 2026
10 checks passed
@nambok
nambok deleted the fix/run-log-refused-commands branch November 16, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant