GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — docs: eleven more OPENCODE_* variables in the cli.mdx env table are read nowhere — DISABLE_PRUNE, DISABLE_AUTOCOMPACT, PERMISSION, TUI_CONFIG and seven others · Issue #114 · developing-today-forks/opencode Closed Labels documentationImprovements or additions to documentationkind/docsDocumentation improvement or addition DescriptionProblemThe Environment variables table in This is the same docs-vs-v2 drift as #103 ( Evidence (verified this run, main
|
| Variable | Docs promise | Readers in code |
|---|---|---|
OPENCODE_TUI_CONFIG |
cli.mdx:680 "Path to TUI config file" | none — v2 resolves TUI config from the main config (resolve(yield* config.get(), …) in packages/cli/src/commands/handlers/mini.ts); there is no separate TUI file path |
OPENCODE_DISABLE_PRUNE |
cli.mdx:685 "Disable pruning of old data" | none |
OPENCODE_DISABLE_TERMINAL_TITLE |
cli.mdx:686 "Disable automatic terminal title updates" | none — v2 equivalent is the TUI config key terminal.title (packages/tui/src/config/index.tsx, "Update the terminal window title") |
OPENCODE_PERMISSION |
cli.mdx:687 "Inlined json permissions config" | none in code — the only occurrences are setters in .github/workflows/review.yml:61, .github/workflows/opencode.yml:43, .github/workflows/duplicate-issues.yml:59,194 |
OPENCODE_DISABLE_DEFAULT_PLUGINS |
cli.mdx:688 "Disable default plugins" | none |
OPENCODE_DISABLE_LSP_DOWNLOAD |
cli.mdx:689 and lsp.mdx:54 "disable automatic LSP server downloads by setting … to true" |
none — v2 LSP config (packages/schema/src/config/lsp.ts) is per-server disabled, with no global download toggle |
OPENCODE_ENABLE_EXPERIMENTAL_MODELS |
cli.mdx:690 "Enable experimental models" | none |
OPENCODE_DISABLE_AUTOCOMPACT |
cli.mdx:691 "Disable automatic context compaction" | none — v2 equivalent is the config key compaction.auto (packages/schema/src/config/compaction.ts:11, handled in packages/core/src/config/normalize.ts) |
OPENCODE_DISABLE_CLAUDE_CODE_PROMPT |
cli.mdx:693 "Disable reading ~/.claude/CLAUDE.md" |
none — packages/cli/src/server-process.ts gates .claude roots only on OPENCODE_DISABLE_CLAUDE_CODE / OPENCODE_DISABLE_CLAUDE_CODE_SKILLS, with the comment ".claude is only read for skills, so both flags gate the same roots" |
OPENCODE_DISABLE_MOUSE |
cli.mdx:696 "Disable mouse capture in the TUI" | none — v2 equivalent is the TUI config key mouse (packages/tui/src/config/index.tsx, "Enable terminal mouse capture") |
OPENCODE_FAKE_VCS |
cli.mdx:697 "Fake VCS provider for testing purposes" | none |
Method: grep -rn <VAR> over the full tree (all file types, excluding node_modules), filtering out packages/web/src/content/docs/** and services/www docs. Every variable above returns only its docs rows (and, for OPENCODE_PERMISSION, the workflow setters listed).
OPENCODE_DISABLE_AUTOCOMPACT, OPENCODE_DISABLE_PRUNE or OPENCODE_PERMISSION believes they have changed behaviour — in the permission case, restricted it — and nothing tells them otherwise.compaction.auto, TUI mouse, TUI terminal.title), the docs either point to it or the env var is wired to it — not left as a silent no-op.lsp.mdx:54 is corrected together with the cli.mdx row for OPENCODE_DISABLE_LSP_DOWNLOAD.OPENCODE_PERMISSION workflow setters are reconciled with the decision (kept only if something in the delivery path actually reads the variable).Filed-only: the implement-vs-remove choice is per-variable and needs a maintainer decision (as with #105), so no fix is attempted here.
Decision (recorded per the acceptance criteria): direction 2 — align the docs with v2 — for all eleven variables.
This follows the merged precedents for the identical evidence shape: #103 (PR #313), #115 (PR #321), #117 (PR #336) and #105 (PR #349) each verified zero readers outside docs and removed the dead promise rather than wiring a v1 variable into v2. Re-verified fresh on current main fe5d6c8e94: a repo-wide git grep excluding docs returns zero hits for ten of the eleven, and only workflow setters for OPENCODE_PERMISSION.
Per variable:
OPENCODE_TUI_CONFIG — remove. v2 resolves the TUI config from the main config / the dedicated tui.json in the config directory; there is no env-var path. The same dead promise also sits in English config.mdx and tui.mdx — both are corrected in the same PR.OPENCODE_DISABLE_PRUNE — remove. No pruning toggle is read; pruning is the compaction.prune config key (documented in config.mdx).OPENCODE_DISABLE_TERMINAL_TITLE — remove. The v2 equivalent is the TUI config key terminal.title (packages/tui/src/config/index.tsx).OPENCODE_PERMISSION — remove the docs row. Permissions are the permission config key (documented in config.mdx / permissions docs); inline JSON config in general is OPENCODE_CONFIG_CONTENT (already a documented, read variable). Workflow setters are kept, deliberately: .github/workflows/{opencode,review,duplicate-issues}.yml do not run this repo's v2 code — they run the released opencode (the anomalyco/opencode/github action / the opencode.ai/install binary), and there the variable is the delivery path for a bash-deny security control. Removing the setters would silently drop that restriction from review/duplicate automation, so they stay until those workflows run a build that reads the permission config key instead.OPENCODE_DISABLE_DEFAULT_PLUGINS — remove. The v2 equivalent for a run without external plugins is the --pure flag (already documented in cli.mdx).OPENCODE_DISABLE_LSP_DOWNLOAD — remove the row and correct lsp.mdx: in v2 a server is disabled per-server with disabled: true, or all servers with lsp: false (both already documented in lsp.mdx's Configure section) — a disabled server never starts, so it never downloads.OPENCODE_ENABLE_EXPERIMENTAL_MODELS — remove. No reader and no v2 experimental-models gate.OPENCODE_DISABLE_AUTOCOMPACT — remove. The v2 equivalent is the compaction.auto config key, already documented in config.mdx.OPENCODE_DISABLE_CLAUDE_CODE_PROMPT — remove the row and the rules.mdx example line. Verified on main: packages/cli/src/server-process.ts:136-137 gates .claude roots only on OPENCODE_DISABLE_CLAUDE_CODE / OPENCODE_DISABLE_CLAUDE_CODE_SKILLS (".claude is only read for skills, so both flags gate the same roots") — there is no prompt-only flag; the broader OPENCODE_DISABLE_CLAUDE_CODE row stays.OPENCODE_DISABLE_MOUSE — remove. The v2 equivalent is the TUI config key mouse, already documented in tui.mdx and config.mdx.OPENCODE_FAKE_VCS — remove. No reader, no v2 test hook.The guard idea from the acceptance criteria is not in this PR: it spans both env tables (#114 + #116) and deserves its own change once both tables are clean; #116 remains open and is the natural place to land it after its rows are decided the same way.
Cross-repo: OPENCODE_ENABLE_EXPERIMENTAL_MODELS = "1" is set in developing-today/code home/common/default.nix:1234 (Drew's personal home-manager config). Per the #115 precedent it is not auto-edited — it is a silent no-op today; flagged here and in the code backlog for Drew's call.
English source only; translations follow the usual docs-locale-sync flow (as in #105/#349).