Skip to content
This repository was archived by the owner on Feb 14, 2026. It is now read-only.
This repository was archived by the owner on Feb 14, 2026. It is now read-only.

Sessions not properly marked as inactive when CLI exits #10

Closed

Description

@tools-bra1ndump

Problem

Sessions stay active: true when CLI dies unexpectedly. Users see "session revival" messages for dead sessions.

Current Modeling Issue

We only track active: true/false but this doesn't distinguish between:

  • Offline - CLI not responding (laptop closed, network down) but may reconnect
  • Terminated - CLI process exited, won't come back

The active flag should represent whether the process literally exited, not just connectivity.

UX Impact

  • Dead sessions appear alive for up to 10 minutes
  • "Session revival" messages when there's nothing to revive
  • Can't tell if session is temporarily offline or permanently dead

Code Pointers

  • CLI cleanup: happy-cli/src/start.ts:274, 330 (doesn't run on crash)
  • Server session-end: happy-server/sources/app/api.ts:667-714
  • Server timeout: happy-server/sources/app/timeout.ts:15 (10 min delay)

Activity

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