Bug
The TUI footer displays a version string that does not match the installed package version (e.g. the installed version is 1.0.1-rc.7 but the TUI shows a different value).
Root cause
resolveBuildVersion(process.env, Script.version) in packages/opencode/script/build.ts falls back to Script.version when neither AGENTSWARM_PRODUCT_VERSION nor OPENCODE_VERSION is set. Script.version either fetches and increments the upstream opencode-ai npm version or generates a 0.0.0-dev-… timestamp string — neither reflects the fork's actual package version. Whatever value it produces gets baked into the binary as OPENCODE_VERSION, and the TUI footer reads that constant directly via Installation.VERSION.
Expected
TUI version matches the fork's released package version.
Actual
TUI shows a version string unrelated to the installed fork package.
Bug
The TUI footer displays a version string that does not match the installed package version (e.g. the installed version is
1.0.1-rc.7but the TUI shows a different value).Root cause
resolveBuildVersion(process.env, Script.version)inpackages/opencode/script/build.tsfalls back toScript.versionwhen neitherAGENTSWARM_PRODUCT_VERSIONnorOPENCODE_VERSIONis set.Script.versioneither fetches and increments the upstreamopencode-ainpm version or generates a0.0.0-dev-…timestamp string — neither reflects the fork's actual package version. Whatever value it produces gets baked into the binary asOPENCODE_VERSION, and the TUI footer reads that constant directly viaInstallation.VERSION.Expected
TUI version matches the fork's released package version.
Actual
TUI shows a version string unrelated to the installed fork package.