fix: improve UX for stale manifest cache, list rerun hints, and version info (#805)

- Show warning when manifest is loaded from stale cache (offline fallback)
  so users know the data may be outdated
- Fix list footer rerun command: reuse buildRetryCommand instead of
  truncating prompts with "..." which produced broken copy-paste commands
- Show manifest cache age in "spawn version" output for troubleshooting
- Bump CLI version to 0.2.67

Agent: ux-engineer

Co-authored-by: A <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
A 2026-02-13 06:09:56 -08:00 committed by GitHub
parent 4c1a344a7a
commit 75d7be29a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 102 additions and 21 deletions

View file

@ -8,6 +8,7 @@ import {
cloudKeys,
matrixStatus,
countImplemented,
isStaleCache,
RAW_BASE,
REPO,
type Manifest,
@ -45,7 +46,11 @@ async function withSpinner<T>(msg: string, fn: () => Promise<T>, doneMsg?: strin
}
export async function loadManifestWithSpinner(): Promise<Manifest> {
return withSpinner("Loading manifest...", loadManifest);
const manifest = await withSpinner("Loading manifest...", loadManifest);
if (isStaleCache()) {
p.log.warn("Using cached manifest (offline). Data may be outdated.");
}
return manifest;
}
function validateNonEmptyString(value: string, fieldName: string, helpCommand: string): void {