Skip to content

Dead session hides New session and tells the operator to Send again #43

Closed

Description

@Code4me2

Observed 2026-09-01 on the stair-kit operator (heph-demo, 1280×800, #40+#41 chrome).

What happens

  1. STREAM empty state correctly offers New session / Ask about kerf_card (§7A.2).
  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.
  3. The fault card's next-step copy (copy.ts runtimeFaultNext) is: "The composer below still works. Send again when you are ready."
  4. 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.

Related

  • INTERFACE.md §7A.2, §7A.5
  • web/src/copy.ts createOrchestrator, runtimeFaultNext

Activity

  1. Code4me2 commented on Sep 1, 2026

    @Code4me2
    MemberAuthor

    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 #42
    Dead session hides New session / Ask about kerf_card; fault copy says Send again this issue
    Send click often no-op; Enter started the turn #44
    Cancel stayed unavailable mid-turn (copy.composer.cancelIdle) #45
    ask_user after death is a dead end #50
    HTTP 500 note under the composer duplicates the fault card #52
    Native-disabled Send/Cancel hide the §4.7 reason from the keyboard #63

    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:

    1. NewSessionAction only paints buttons from GET /sessions profiles. Composer.tsx NewSessionAction 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.
    2. 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.tsx submit() 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions