Repository navigation
fix(workbench): show run request failures - #26
Conversation
|
🦞👀 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: needs real behavior proof before merge. What this changesCatch rejected Workbench runs, display an accessible failure alert, and clear it on retry or reset. Example: The SDK rejects a Run request for agent main and session workbench.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains This PR addresses a real error-handling gap still present on main; the focused patch has no definite correctness findings. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe React Workbench submits form settings to the workspace SDK, streams run events, displays results, and closes the client. flowchart TD
A[Run controls] --> B[Submit handler]
B --> C[SDK run lifecycle]
C --> D[Events and result panels]
C --> E[Client cleanup]
E --> B
B --> F[Failure alert and ready controls]
Technical reviewBest possible solution: Keep the focused submission-level rejection handler and accessible alert while preserving the existing run lifecycle. Do we have a high-confidence way to reproduce the issue? Main demonstrably leaves a rejected startRun promise uncaught and renders no failure alert; the contributor reports reproducing this with an injected SDK rejection, but no reproduction was executed during this review. Is this the best way to solve the issue? The existing form handler is the appropriate owner for catching submission failures, and the patch adds only local UI state without changing SDK APIs or persisted settings. AGENTS.md: not found in the target repository. Codex review notes: model internal, reasoning medium; reviewed against 46c98a311e2e. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 15, 2026, 1:08 PM ET / 18:08 UTC. |
Add reader-first problem, impact, rationale, and evidence guidance grounded in cookbook tasks. Preserve existing contribution checks without introducing new gates. Co-authored-by: hannesrudolph <[email protected]>
Show a safe accessible alert for rejected run requests, restore controls after client cleanup, and clear errors on retry or reset. Add component regression tests covering all request phases and recovery, plus the required JSX test types. Refresh eligible icon, lint, and test dependencies while retaining the dependency maturity policy and security overrides. Co-authored-by: embrace897 <[email protected]>
What changed
Agent Workbench silently returned to idle when a run request failed and left the rejected promise unhandled. It now shows a safe accessible alert, restores the controls after client cleanup, and clears the alert when the user retries or resets. Raw provider errors are not rendered.
Add component coverage for failures during client construction, run creation, streaming, waiting, and cleanup, plus successful retry and reset. Refresh eligible Lucide, lint, and test dependencies while preserving the two-day maturity policy and existing security overrides.
Validation
pnpm check: 34 tests, type checking, formatting, lint, docs, all starter builds, and both CLI smoke tests pass.The screenshots contain only the local synthetic app and an explicitly labelled test-fixture indicator. No live Gateway or credentials were used.
Before:
After:
Thanks @embrace897 for the original fix.