Repository navigation
fix: what the dashboard shows after a stop (failed starts, services, lanes) - #176
Merged
Merged
Conversation
…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>
Merged
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.
Problems
lane stop, after the main tree stopped, after starting the lane here, and in the dashboard even after the stack's daemon was gone.Change
Lanes::forget_faileddrops a failed start or move; called bylane stop, a local start, and the main tree's/v1/down.node_error, amovingthat expired).movingis dropped and the services that ran are shownstopped(also in the cached offline view).stopLanekeeps the lane shown (a removed worktree still gives way to main).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 nowherefails and shows on the lane; gone afterlane stopand afteruphere (fails without the change; passes on Windows).cargo clippy --workspace --all-targetsclean,cargo test -p devstack-daemon,npm run typecheck,vitest run(42).ui/); to check by hand with a lane on a node.🤖 Generated with Claude Code