Repository navigation
Run log: a refused command shows its command and its reason while the step runs - #439
Merged
Merged
Conversation
… 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: abashstep 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.messagethe 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
npx tsc --noEmit,npm run lint, andplaywright test e2e/agent-log.spec.ts e2e/run-log-tab.spec.ts: 34 passed.