You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
✨ [feat] host: detect OpenCode and read a config host key #39
super-board cannot tell it is running inside OpenCode, and there is nowhere to record which host a project uses, so a shell with no host sign has to ask every time. Part of #30, decisions 2 and 6.
b. The board config has worker_backend (workflow / claude-p) and no host setting.
c. OpenCode is believed to export OPENCODE=1 to the shells it runs; confirm on a real OpenCode shell and record the version and variables in the script header, the way the Codex signal is recorded.
Who: the run orchestrator, onboard, and anyone using super-board from OpenCode.
Fix
Detect OpenCode from its env sign. Add a host config key (claude|codex|opencode), separate from worker_backend. super-board-host.sh --config <file> uses that key when no override and no env sign is present. Order: SUPER_BOARD_HOST, then Codex ids, then the OpenCode sign, then CLAUDECODE, then config host, else exit 65. Setup's check rejects any other host value.
Acceptance Criteria
tests/test-host.sh: the OpenCode sign alone prints opencode; SUPER_BOARD_HOST=claude with the OpenCode sign prints claude; a Codex id with the OpenCode sign prints codex.
tests/test-host.sh: an empty env with --config pointing at {"host":"codex"} prints codex; an empty env with no host key still exits 65.
config-schema.json documents host next to worker_backend, and a tests/test-setup.sh case shows setup's check flags "host": "gemini" and accepts each of the three values.
bash tests/run-safety.sh passes.
Risk
🟢 Low · additive detection; existing Claude and Codex signals keep their answers.
Did: recorded a real OpenCode shell and built against it.
✅ Evidence: opencode v2.0.22run shell exports OPENCODE=1, OPENCODE_SESSION_ID, OPENCODE_TERMINAL=1, AGENT=1. Detection uses OPENCODE=1, checked before CLAUDECODE (leaks from a parent Claude session); AGENT=1 ignored as too generic.
Activity
EricTechPro commentedon Oct 19, 2026
[builder] [feature] 🔨 scope update · PR #73
Did: recorded a real OpenCode shell and built against it.
opencode v2.0.22runshell exportsOPENCODE=1,OPENCODE_SESSION_ID,OPENCODE_TERMINAL=1,AGENT=1. Detection usesOPENCODE=1, checked beforeCLAUDECODE(leaks from a parent Claude session);AGENT=1ignored as too generic.fixalways write the top-levelhostkey; fix fills a missing one from--hostand never replaces a set one.hostis top-level, matching what ♻️ [refactor] install: shared .agents/ folder with per-host links #71's install.sh reads.Next: review on ✨ [feat] host: unknown host halts, OpenCode detection, config host, hosts doc #73.