bug(cli): TUI displays hardcoded version "0.0.0" instead of actual semver #199
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
The TUI top bar displays
v0.0.0as the version. This is hardcoded inapp.tsxrather than read from the package version.Location
packages/cli/src/tui/app.tsx:314— passesversion="0.0.0"as a literal string to<TopBar>packages/cli/src/tui/components/top-bar.tsx:85— rendersv{version}packages/cli/package.json— also has"version": "0.0.0"Fix
Two things need to happen:
package.jsonversion — set to the actual release version (or managed by a release tool like changesets/release-please)app.tsx— read the version dynamically instead of hardcoding:Then pass the resolved value to
<TopBar version={version} />.