mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-02 22:00:19 +00:00
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:
parent
4c1a344a7a
commit
75d7be29a4
6 changed files with 102 additions and 21 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue