Repository navigation
web: recover a dead session — New session, abandoned ask_user, no duplicate 500 - #105
Merged
Merged
Conversation
When the runtime dies the well now names New session on the fault band, abandons pending ask_user widgets, refreshes workspace reads on process_down/unreachable without moving a held pin, and keeps the HTTP 500 out of the composer footer. data-stream-state stays the socket. Co-authored-by: Vel <Code4me2@users.noreply.github.com>
…ontract Co-authored-by: Vel <Code4me2@users.noreply.github.com>
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.
Chrome polish PR 2 after #104 (place-to-type). Web-only. This is what the well does when the run is dead.
Closes
#46, #43, #50, #59, #52.
Tracked as the second slice of #103.
Locked decisions (do not reopen)
POST /sessions {profile: "orchestrator"}), never “Send again”.ask_userafter death isabandonedwithout a click. No sixth §7.4 / §7A.7 state.process_down/unreachabledoes not advance a held pin (sticky §4.5).data-runtime-faultis the fact that a run died;data-stream-statestays the socket’s own answer. No sixth stream state. No reconnect wizard — no route backs one.What changed (verified against
main, not the issue hunches)#46 — well does not stay “running” through sidecar death. §7.4 is still a socket claim; the badge already showed the fault once a session request failed. Pending
ask_userwidgets no longer stayanswerable/ “Waiting for an answer” besideruntime unreachable. Whendata-runtime-faultis set, every widget whose run has not produced aterminalrendersdata-ask-state="abandoned".#43 — New session is reachable, and the copy stops lying.
runtimeFaultNextno longer says “Send again”. The fault band’s primary action is the §7A.2 create pair.NewSessionActionstill paints New session / Ask about <part> whenGET /sessionsleftprofiles = [](the 500 that raised the fault). The pair also renders when the current tab cannot take a prompt (runtime fault,unknown_session, unread history), not only when there are zero rows.#50 —
ask_userafter death is not a dead end. Abandoned copy names the restart. Controls are off with that reason. An answer accepted before death stays recorded, with a note that the run did not resume — not relabelled “already answered”.#59 — §7A.11 refresh runs if the sidecar dies.
process_downandunreachableinvalidate the same keys as aterminal/ prompt response (parts,git,builds, …).timeoutdoes not (the process may still be there). The pin is not written;observeCurrentremains a no-op while held.#52 — no duplicate HTTP 500 under the composer. Unnamed 5xx is
data-send-state="unknown"(the turn may have started) and does not paint a refused/unknown footer that restates the band. Named liveness (process_down,timeout) settles idle so the band is the only statement. A real lost POST still shows §7A.5’s unknown recovery.Out of this PR
part) from JSON payload #69 — ingenium. Chrome still names a runtime fault from the 5xx it actually gets (unreachablevsprocess_down). No Python changes.TreeRowderives the roving tabindex fromaria-selected, so a tree with nothing selected cannot be entered from the keyboard #102/Rail is two trees; arrows cannot reach Analyses from Parts #65/Part rows report selection asaria-expanded: the chevron cannot collapse a part, and ArrowRight is a navigation #91), canvas skip (Viewport canvas is not keyboard-reachable; no skip link past the rail #64), well scroll (The well never follows the newest output: no scroll-to-bottom anywhere, and the only live scroller also holds the session tabs #98), chip headlines (Running tool chips hide operands behind collapsed disclosure #71/Tool-chip headlines omit the part name #48), tabs (Session tabs are truncated UUIDs #51/Session tabs are a fake tablist and say “no parent” on roots #62).Left for PR 3 (pin honesty + #100)
Honest split copy (#78/#96/#83), chip reads (#57/#88), Follow current when the selected part has no build (#90), sticky pin after
create_part(#58/#54/#49). #100 gates Download — do not ship header Export produce-and-give (#77/#85) until the idempotency key is per-part. Held pin does not freeze the inspector.Tests
pnpm typecheck,pnpm lint, andpnpm testinweb/all pass on this revision (36 files, 586 tests). Unit coverage added/retargeted for fault grade, create-pair visibility when the current tab cannot prompt,ask_userabandoned, refresh onprocess_down/unreachablewithout moving a held pin, and no duplicate 500 footer. Existing e2e selectors are unweakened.