feat(configure): hide Codex and OpenCode from the install/config TUI - #223
Merged
Conversation
Withhold the Codex and OpenCode rows from ToolSelect (the single selection surface shared by `codevhub install` and `codevhub config`) via a `hidden` flag and a derived VISIBLE_TOOLS list. This hides them from users only — the Tool union, configureCodex/configureOpenCode, providers, detection, restore, update, and the passthrough launch commands are all untouched. Re-surfacing is a one-line change: drop the `hidden` flags. Tests: fix the extension-row navigation counts (the rows shift up two positions), assert Codex/OpenCode no longer render, and park the two Codex-selection integration tests with test.skip so their coverage returns intact when the rows are surfaced again. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
What
Temporarily hides the Codex and OpenCode rows from the interactive agent picker in
codevhub installandcodevhub config. This is a user-facing hide only — all the underlying logic stays fully wired so the two can be surfaced again later.How
src/components/ToolSelect.tsxis the single selection surface both commands share (both route throughSetupApp→ToolSelect). The two entries are markedhidden: true, and rendering/navigation now run over a derivedVISIBLE_TOOLSlist:Re-surfacing later is a one-line change: drop the
hiddenflags.What stays intact
Nothing downstream changed — the
Toolunion,configureCodex/configureOpenCode, providers,detectConfiguredTools, restore,codevhub update, and the passthrough launch commands (codevhub codex,codevhub opencode) all continue to work.codevhub modelonly lists already-configured tools, so hiding at install/config keeps them out naturally.codevhub updateonly refreshes packages already on disk (no user-facing menu).Note: users who already configured Codex/OpenCode in a prior run will still see them in
codevhub modeland still get them updated bycodevhub update, which matches the "keep everything in touch" intent.Tests
test.skip(+ comment) since they drive a now-unreachable UI path — un-skip when the rows return.All checks pass:
pnpm fix,pnpm typecheck,pnpm test(1254 passed, 2 skipped),pnpm build && node dist/index.js --version.🤖 Generated with Claude Code