You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dead session hides New session and tells the operator to Send again #43
Observed 2026-09-01 on the stair-kit operator (heph-demo, 1280×800, #40+#41 chrome).
What happens
STREAM empty state correctly offers New session / Ask about kerf_card (§7A.2).
After a session exists and the runtime dies (runtime unreachable, HTTP 500), those two affordances disappear. The well shows the fault card, a UUID tab, Send, and Cancel.
The fault card's next-step copy (copy.tsruntimeFaultNext) is: "The composer below still works. Send again when you are ready."
Send posts into the dead session and 500s (unknown session). Clicking the session pill does nothing. There is no +, no session switcher, no way to POST /sessions from this state.
Dropping ?s= from the URL attached a different recorded session (0474343c-…) that rendered unavailable / "The recorded transcript could not be read." Still no live New session.
Expected
§7A.2: POST /sessions is reachable from exactly two explicit affordances. When the current tab's session cannot take a prompt (runtime fault, unknown session, unavailable), the empty-state pair must come back — or the fault card's primary action must be New session ({profile: "orchestrator"}), not Send-again.
§7A.5 already forbids auto-retry. Telling the operator to Send again into a session the sidecar no longer knows is a second turn that cannot start.
Repro
Drive any live session until data-runtime-fault is set. Confirm New session is gone and Send 500s.
Composer / send-cancel / runtime-fault slice (2026-09-01 stair-kit heph-demo, 1280×800, #40+#41 chrome). No new distinct bug — this issue is the recovery dead-end the drive actually ends on. Confirming the rest of the slice is already filed, plus two mechanisms that belong here rather than as new issues.
Drive vs already-open
Observed
Issue
Sidecar -32004 → HTTP 500, no §2.4 envelope → chrome can only say runtime unreachable
Do not reopen #14 / #32. CAM / viewport drop are out of this slice.
Mechanisms that keep New session from coming back
StreamPanel.tsx (PR #40) mounts NewSessionAction only on rows.length === 0. A selected (now-dead) session keeps SessionTabs + the pinned composer and never re-enters the §7A.2 empty state. That is the bug as filed.
Two extra reasons the create pair still would not appear even if that condition were widened:
NewSessionAction only paints buttons from GET /sessionsprofiles.Composer.tsxNewSessionAction looks up profile === "orchestrator" / "part" and renders nothing when that array is empty. A 500 on the same document that raised data-runtime-fault leaves profiles = [] (or stale). POST /sessions does not need that list — only the chrome does — so the one §7A.2 affordance dies with the read that reported the fault.
runtimeFaultNext (copy.ts) is a lie in this state:“The composer below still works. Send again when you are ready.” Send posts into the dead session and 500s again (Composer.tsxsubmit() catch treats WorkspaceError / transport_error as phase: "refused", so data-send-state stays ok and the §7A.5 unknown / “turn may have started” recovery never appears). That is how HTTP 500 under the composer duplicates the runtime-fault card #52’s HTTP 500 footer and this issue’s Send-again sentence are the same mis-classification.
Expected (unchanged)
INTERFACE.md §7A.2 (exactly two explicit POST /sessions affordances), §7A.5 (no auto-retry; a failed POST is data-send-state="unknown", not Send-again into a session the sidecar forgot), §7A.8 (a disabled composer names why). Primary action on data-runtime-fault must be New session, not Send.
Activity
Code4me2 commentedon Sep 1, 2026
Composer / send-cancel / runtime-fault slice (2026-09-01 stair-kit
heph-demo, 1280×800, #40+#41 chrome). No new distinct bug — this issue is the recovery dead-end the drive actually ends on. Confirming the rest of the slice is already filed, plus two mechanisms that belong here rather than as new issues.Drive vs already-open
-32004→ HTTP 500, no §2.4 envelope → chrome can only sayruntime unreachableunavailablemid-turn (copy.composer.cancelIdle)ask_userafter death is a dead enddisabledSend/Cancel hide the §4.7 reason from the keyboardDo not reopen #14 / #32. CAM / viewport drop are out of this slice.
Mechanisms that keep New session from coming back
StreamPanel.tsx(PR #40) mountsNewSessionActiononly onrows.length === 0. A selected (now-dead) session keepsSessionTabs+ the pinned composer and never re-enters the §7A.2 empty state. That is the bug as filed.Two extra reasons the create pair still would not appear even if that condition were widened:
NewSessionActiononly paints buttons fromGET /sessionsprofiles.Composer.tsxNewSessionActionlooks upprofile === "orchestrator"/"part"and renders nothing when that array is empty. A 500 on the same document that raiseddata-runtime-faultleavesprofiles = [](or stale).POST /sessionsdoes not need that list — only the chrome does — so the one §7A.2 affordance dies with the read that reported the fault.runtimeFaultNext(copy.ts) is a lie in this state: “The composer below still works. Send again when you are ready.” Send posts into the dead session and 500s again (Composer.tsxsubmit()catch treatsWorkspaceError/transport_errorasphase: "refused", sodata-send-statestaysokand the §7A.5unknown/ “turn may have started” recovery never appears). That is how HTTP 500 under the composer duplicates the runtime-fault card #52’s HTTP 500 footer and this issue’s Send-again sentence are the same mis-classification.Expected (unchanged)
INTERFACE.md §7A.2 (exactly two explicit
POST /sessionsaffordances), §7A.5 (no auto-retry; a failed POST isdata-send-state="unknown", not Send-again into a session the sidecar forgot), §7A.8 (a disabled composer names why). Primary action ondata-runtime-faultmust be New session, not Send.