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

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 SetupApp → ToolSelect). 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
quickbeard added a commit that referenced this pull request Sep 10, 2026
…config` (#263)

Revert the temporary hide from #223. The Codex and OpenCode rows return to
ToolSelect, the single picker shared by `codevhub install` and
`codevhub config`, so new users can select and configure them again.

Nothing downstream changes: the Tool union, configureCodex /
configureOpenCode, detection, restore, update and the launch commands
were never touched by the hide. This removes the `hidden` flag and the
derived VISIBLE_TOOLS list, since TOOLS is once again the rendered set.

Why now: `codevhub readiness` (#197) offers Claude Code, Codex and
OpenCode, but gates each on the agent being CoDev-configured and tells
the user to "run `codevhub install`, select this agent". With the rows
hidden, that instruction was impossible to follow for anyone who
installed after #223 — the OpenCode readiness path and its `--agent
opencode` flag were unreachable.

Tests: restore the extension-row navigation counts (rows shift down two
positions), replace the "hides Codex and OpenCode" assertion with the
positive render check, and un-skip the two Codex-selection integration
tests in InstallApp.test.tsx — they pass unchanged.


Claude-Session: https://claude.ai/code/session_0178nPaQqSGVe7Y1fR2ovDTK

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
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