Repository navigation
fix: surface automation Run now failures on the row (#85) - #197
Merged
currentbits merged 1 commit intoAug 16, 2026
Merged
Conversation
`void onRunNow(id)` swallowed a rejected run into an unhandled rejection, and useCoder's await threw before refreshAutomations(), so even the lastError the main process had already written stayed invisible until a full reload. - useCoder: refresh in a finally so the throwing path resyncs too. - AutomationsView: run the three row actions (toggle/run/delete) through one helper that parks the failure on that row's error line. - App: setArchived now reports success, so a mid-loop failure in handleClearSettled no longer offers undo for threads that never archived (its message already lands in the run-error banner). Co-Authored-By: Claude Opus 5 <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Closes #85.
void onRunNow(auto.id)turned a failed automation run into an unhandled rejection, anduseCoder.runAutomationNowthrew beforerefreshAutomations()— so thelastErrorthe main process had already written stayed invisible until a full reload. The user got no feedback at all.What changed
src/useCoder.ts—runAutomationNowrefreshes in afinally, so the throwing path resyncs the store too and the row picks uplastError.src/components/AutomationsView.tsx— toggle / Run now / delete all route through onerunRowActionhelper that catches and parks the message on that row's existing error line. That also covers transport-level failures which never reachlastError.src/App.tsx—setArchivednow reports whether it worked, so a mid-loop failure inhandleClearSettledno longer offers undo for threads that never archived. It already swallows its own error into the run-error banner, so nothing was going to reject there — the real defect was the lying undo toast.Verification
test/automationsView.test.tsx: a rejectingonRunNowrenders on the row.npm run typecheckclean;npm run test:renderer704/704.Not done:
Sidebar.runBatchArchivereports "N archived" with the same optimism; its prop type returns void, so widening it is a separate change.🤖 Generated with Claude Code