Skip to content

TUI footer shows wrong version instead of the installed package version #241

@nicko-ai

Description

@nicko-ai

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions