Skip to content

feat(cli): select terminal hosts from command declarations - #740

Merged
wolfy-j merged 3 commits into
mainfrom
fix/command-host-selection-20260912
Sep 18, 2026
Merged

wolfy-j merged 3 commits into
mainfrom
fix/command-host-selection-20260912

Conversation

@wolfy-j

@wolfy-j wolfy-j commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Installing a dependency that contains a second terminal.host currently prevents an application's named command from starting: host auto-detection becomes ambiguous even though the application knows which host it uses.

Allow meta.command.host: namespace:name to declare that host. An explicit --host retains precedence; commands without a declaration retain single-host discovery. Malformed declarations, missing hosts and non-terminal hosts fail before process creation. Selecting a host does not add actor or policy grants.

Validation: focused metadata/security/host tests and the full cmd/wippy/cmd race suite pass; current golangci-lint reports zero issues. Tests cover two installed hosts, undeclared ambiguity, missing/wrong-kind targets and malformed metadata. Bee's actual offline restart reproduction reached this ambiguity after its separately diagnosed artifact-cache failure was removed; final Bee integration acceptance follows the runtime build.

skhaz

This comment was marked as outdated.

@skhaz
skhaz dismissed their stale review September 13, 2026 15:42

Remove automation approval text.

@wolfy-j
wolfy-j requested a review from skhaz September 17, 2026 22:14
The launcher fetched and decoded the command entry twice, once for
security and once for the host, and compared the host kind against a
string literal beside the exported constant. It now loads the metadata
once and hands it to both; the explicit --host flag's precedence lives in
the resolver where a test can prove it, and the test command's help text
matches what the path does.
@wolfy-j
wolfy-j merged commit b2beca7 into main Sep 18, 2026
9 checks passed
@wolfy-j
wolfy-j deleted the fix/command-host-selection-20260912 branch September 18, 2026 16:27
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.

2 participants