Skip to content

feat(configure): hide Codex and OpenCode from the install/config TUI - #223

Merged
quickbeard merged 1 commit into
mainfrom
hide-codex-opencode
Jul 30, 2026
Merged

feat(configure): hide Codex and OpenCode from the install/config TUI#223
quickbeard merged 1 commit into
mainfrom
hide-codex-opencode

Conversation

@quickbeard

Copy link
Copy Markdown
Owner

What

Temporarily hides the Codex and OpenCode rows from the interactive agent picker in codevhub install and codevhub 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.tsx is the single selection surface both commands share (both route through SetupAppToolSelect). The two entries are marked hidden: true, and rendering/navigation now run over a derived VISIBLE_TOOLS list:

{ label: "Codex", value: "codex", hidden: true },
{ label: "OpenCode", value: "opencode", hidden: true },
...
const VISIBLE_TOOLS = TOOLS.filter((t) => !t.hidden);

Re-surfacing later is a one-line change: drop the hidden flags.

What stays intact

Nothing downstream changed — the Tool union, configureCodex / configureOpenCode, providers, detectConfiguredTools, restore, codevhub update, and the passthrough launch commands (codevhub codex, codevhub opencode) all continue to work.

  • codevhub model only lists already-configured tools, so hiding at install/config keeps them out naturally.
  • codevhub update only 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 model and still get them updated by codevhub update, which matches the "keep everything in touch" intent.

Tests

  • Fixed the extension-row navigation counts (rows shift up two positions with Codex/OpenCode gone).
  • Added a test asserting Codex/OpenCode no longer render.
  • Parked the two Codex-selection integration tests with 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

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>
@quickbeard
quickbeard merged commit 6626607 into main Jul 30, 2026
2 of 4 checks passed
@quickbeard
quickbeard deleted the hide-codex-opencode branch July 30, 2026 14:07
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