Skip to content

fix: what the dashboard shows after a stop (failed starts, services, lanes) - #176

Merged
7schmiede merged 2 commits into
mainfrom
fix/stale-start-errors
Oct 21, 2026
Merged

7schmiede merged 2 commits into
mainfrom
fix/stale-start-errors

Conversation

@7schmiede

@7schmiede 7schmiede commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Problems

  1. A lane's failed start on a node (e.g. the stack names no lane image) stayed on its start page for ten minutes, whatever happened: after lane stop, after the main tree stopped, after starting the lane here, and in the dashboard even after the stack's daemon was gone.
  2. After Stop stack the services still showed as running. They did stop (the daemon stops them as it exits; a job object / pdeathsig ends what is left), but the daemon closes its API first, so the dashboard never heard it.
  3. Stopping a lane switched to the main tree; the eyes stay on the button, which then says "Stop stack".
  4. A lane started on a node stayed yellow in the sidebar until the page switched to another tree: nothing announced the lanes when their counts changed, and while a lane is shown the page follows its own stream, which carries no lane list.

Change

  • Daemon: Lanes::forget_failed drops a failed start or move; called by lane stop, a local start, and the main tree's /v1/down.
  • Daemon: the worktree follower (1 s) announces the lanes when what the lists show changes on its own (running/services counts, node_error, a moving that expired).
  • Dashboard: once the hub says the daemon is gone, the lanes' moving is dropped and the services that ran are shown stopped (also in the cached offline view).
  • Dashboard: stopLane keeps the lane shown (a removed worktree still gives way to main).
  • Sidebar: the shown lane's dot and tooltip count its services from its own live stream.

Tests

  • stores.test.ts: failed start forgotten once the stack stops; services shown stopped once the daemon is gone; a stopped lane stays shown (each fails without the change).
  • daemon_lifecycle::a_worktree_runs_as_a_lane: up --on nowhere fails and shows on the lane; gone after lane stop and after up here (fails without the change; passes on Windows).
  • cargo clippy --workspace --all-targets clean, cargo test -p devstack-daemon, npm run typecheck, vitest run (42).
  • Not covered by a test: the lanes announcement on count changes and the sidebar dot (no component tests in ui/); to check by hand with a lane on a node.

🤖 Generated with Claude Code

7schmiede and others added 2 commits October 21, 2026 14:58
…stops

A lane's failed start on a node stayed in its `moving` for ten minutes,
whatever happened: the start page kept showing it after the lane was
stopped, the main tree went down, or the lane started here. Stopping the
lane, the main tree's `down` and a local start now forget it, and the
dashboard drops the lanes' `moving` once the stack's daemon is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Stop stack: the daemon closes its API, then stops its services and
  exits, so the dashboard never heard they stopped. Once the hub says the
  daemon is gone, its services are shown stopped.
- Stopping a lane keeps it shown, with its start, instead of switching to
  the main tree, where the same button says "Stop stack".
- A lane's dot: the daemon announces the lanes when what the lists show
  changes on its own (services starting, a lane on a node read every 5 s,
  a failed start expiring), and the sidebar counts the shown lane from its
  own stream, which the main tree's list lags behind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede 7schmiede changed the title fix(lanes): a failed start on a node goes when the lane or the stack stops fix: what the dashboard shows after a stop (failed starts, services, lanes) Oct 21, 2026
@7schmiede
7schmiede merged commit e672384 into main Oct 21, 2026
@7schmiede 7schmiede mentioned this pull request Oct 21, 2026
@7schmiede
7schmiede deleted the fix/stale-start-errors branch October 23, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant