Repository navigation
Done
Labels
ready-for-agentFully specified, ready for an AFK agent
Description
Parent
What to build
Root cause 2 of #1036: a failure is never drawn as a result, or in transport words.
- Transport. When
fetchitself rejects (plotkeeper is down), the page's one post function throws its existingCommandErrorwith "plotkeeper is not reachable". An HTTP refusal keeps its own reason. - Notice line. The quieting lives in the notice line's
showError, which every error-level log line reaches: while the top bar's connection line shows (retrying, or restarted with Reload), an unreachable error is not drawn. The page's failure reporter is unchanged, still logs the error, and every other error draws as today. - Pre-flight. The start phase's issues are one of loading, the list, or failed with its reason. A failure draws "Couldn't read the open issues: ", where the reason is the server's first line. The text box and Pick parts by hand show and work in every state.
Acceptance criteria
-
ui/tests/transport.test.mjsgains rows:- a stubbed
fetchthat rejects with aTypeErrormakes the call reject withCommandError("plotkeeper is not reachable"); - an HTTP 500 with a reason keeps that reason.
- a stubbed
-
ui/tests/notice.test.mjsgains rows:- an unreachable error while the connection line shows draws nothing;
- the same error with no connection line draws;
- another error draws in both cases.
-
ui/tests/map-pre-flight.test.mjscovers the failed state's words and that its inputs stay. - A new snap fixture beside
mapPreFlightreturnspre_flight_issuesas__throwwith aghreason. It shows the failure line with that reason, not "No open issues.", and the text box and Pick parts by hand are present and enabled. It is a new fixture because a fixture answers each command one way, andmapPreFlight's own render (issues listed) stays. -
npm run checkpasses, and the new fixture passesnpm run snaplocally.
Reading
- Studio: four root causes behind nine QA bugs (press, hints, focus, failures, Esc, top bar, untrusted text) #1036, "Implementation Decisions", root cause 2.
local-evidence/2026-12-01-qa-root-causes/reports/qa-report.md, M1 and L5: the 500 fromghand the raw "select: Failed to fetch". L5's wider scope (everyfailure(…, "error")caller) is from the second opinion.- Pre-flight's doc line is Docs: the Map view describes #1036's fixes #1050's.
Touches
- Files:
ui/transport.ts,ui/notice.ts,ui/map-pre-flight.ts,ui/tests/transport.test.mjs,ui/tests/notice.test.mjs,ui/tests/map-pre-flight.test.mjs,scripts/snap/fixtures-runs.ts,scripts/snap/fixtures.ts - Session: auto mode
- Route: medium · effort medium — settled presentational states (a new message and a failed state over existing mechanisms), with the test shapes stated
Metadata
Metadata
Assignees
Labels
ready-for-agentFully specified, ready for an AFK agent
Activity
Studio: an unreachable plotkeeper says so plainly, and Pre-flight say…
danielrispler commentedon Dec 1, 2026
Implemented on the integration branch, PR #1051.
Route outcome: medium·medium claude/sonnet → pass | 21m
Studio: four root causes behind nine QA bugs (#1036) (#1051)