Skip to content

zcode-cli 3.8.1-28

Choose a tag to compare

@xhqing xhqing released this 06 Sep 02:18
· 16 commits to main since this release

Remove the persistent two-line model-access warning from the TUI banner

  • Remove the persistent two-line "Model access is not configured. / Run /login, or configure a custom provider in ~/.zcode/cli/config.json." warning from the top of the TUI (packages/zcode-tui/src/index.ts; version bumped to 3.8.1-28 across VERSION, package.json, test/update.test.ts, and the three READMEs' badges and install URLs).
    • Why: the user ruled this hint out. With model access unconfigured, two yellow warning lines sat permanently under the welcome banner — long-standing screen space whose guidance duplicated the /login wizard.
    • What changed: the loginWarning / loginHelp Text components, their layout mounts, and the updateLoginWarning() method are deleted; the loginRequired flag stays untouched (it still drives runtime behaviors such as skipping model loading, Goal / Session usage refresh, and identity refresh timing). The "Model access is not configured yet." status note inside the first-run /login guide dialog is unaffected — that is in-wizard interactive copy, not the persistent banner.
    • Traceability & regression assessment: the warning had shipped in 3.8.1-25 with compensating logic (when loginRequired=true, re-check via readConfiguredModelAccess() and hide the warning when access exists) guarding against the false positive "warning shown although an env slot is configured" — with the warning removed wholesale, that false positive can no longer occur, so this is a superset rather than a regression; the trade-off is that a genuinely unconfigured user no longer gets any guidance hint after startup (the first-run wizard remains, with its in-wizard status note visible) — the user-ruled intended behavior.
    • Verification: tsc --noEmit passes; full bun test 689 pass / 0 fail (78 files); TUI smoke all 5 green (smoke-tui / features / clear / pressure / widths); after build:tui the vendored @zcode/tui copy inside the locked runtime was synced manually (that day sync:locked could not run the full chain due to a CDN download interruption; the runtime itself was unchanged — only the new dist was copied, equivalent to the installLocalTui step).

Install

npm install -g https://github.com/xhqing/zcode-cli/releases/download/v3.8.1-28/zcode-cli-3.8.1-28.tgz