Repository navigation
feat(pool): a setup dialog before the share switch goes on (ADR-0113) - #590
Merged
Merged
Conversation
Switched on, the share switch opens a dialog: what sharing does, the WSL distribution, the caps and what the node agent needs, checked before the switch goes on (POST /hub/pool/share/check), then the start; an admin can grant the machine in the same step. The switch and the sidebar tile are green only while the agent runs and the machine is granted, amber with a link into the dialog while something is missing. A check's `fix` is the command alone; `fix_note` says where it runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 19, 2026
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.
Switched on, the share switch went green at once and then said "Not ready yet"; what was missing stood only on the page "This machine", and the admin's grant ("Runs the pool's lanes") was a second switch elsewhere. Now the switch opens a setup dialog, and the hub checks before anything is switched.
Review card
Approved by the owner in the conversation on 2026-11-19: all four points, with the preflight endpoint.
POST /hub/pool/share/check), so the dialog shows them before the switch goes on.runningwith the admin's grant;blocked/failedis amber ("Setup incomplete: finish it", a click opens the dialog); waiting for an admin stays neutral.Decided on my own: the page keeps its caps form for later changes; an admin's grant in the dialog is a checkbox, on by default (calls the existing
setNode); turning the switch off needs no dialog; the texts stay English.Also from the owner: a check's command is now copied without the words about where it runs.
Check.fixis the command alone, the newfix_notesays where ("InUbuntuas root"); the coding-agent prompt carries both.Verified
cargo test -p devstack-hub --lib nodehost,cargo clippy -p devstack-hub --all-targets(Windows),cargo fmt --checkvue-tsc,vitest run: 294 tests, among them the dialog's (checked before the switch, Next locked while a required check fails, PUT only after "Start sharing") and the colours🤖 Generated with Claude Code