Repository navigation
fix(models): avoid waiting on promotions before listing models - #117322
Conversation
fdb7d9d to
7cedcc0
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 12:07 PM ET / 16:07 UTC. ClawSweeper reviewWhat this changesThe PR overlaps the optional promotions-feed refresh with human-readable model-row construction so Merge readinessKeep this PR open for normal maintainer merge review. The patch is a focused, source-backed latency repair: it starts only the optional human-readable promotions refresh after required registry setup, overlaps it with row construction, prints the core table first, and preserves fail-silent behavior. The author is a repository member and the PR has the protected Likely related people: Vincent Koc is the recent model-list contributor (high confidence); Jason (Json) introduced the promotions feature (high confidence). Priority: P2 Review scores
Verification
How this fits together
flowchart TD
A[Model-list CLI request] --> B[Config and auth indexing]
B --> C[Required model registry]
C --> D{Human-readable output?}
D -->|Yes| E[Start optional promotions refresh]
D -->|No| F[Build model rows]
E --> F
F --> G[Print core model table]
G --> H[Render optional promotions section]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +26, Tests +130. Total +156 across 4 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Merge the focused overlap after the exact-head merge result and required CI gates are green; keep promotions discovery optional, table-first, and fail-silent rather than adding a separate fallback or configuration surface. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main waits for the optional promotions work after rows are built, while the PR's focused tests establish the intended concurrent ordering. This read-only review did not execute the CLI itself. Is this the best way to solve the issue? Yes: moving the existing optional refresh to immediately after required setup is the narrow owner-boundary fix; it keeps machine output, required failures, table ordering, cadence, and cached-feed semantics intact. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against faaeebe20847. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
7cedcc0 to
ed9c67f
Compare
|
ClawSweeper exact-head resolution for
All exact-head ClawSweeper items are resolved. The native review/prepare gate remains authoritative; if it changes the reviewed head, merge will stop for renewed exact-head proof. |
|
Merged via squash.
|
* origin/main: (44 commits) fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486) fix(doctor): reject contradictory lint check selectors (openclaw#117495) fix(anthropic): honor configured model pricing (openclaw#117275) refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373) refactor(test): derive changed tooling routes (openclaw#117407) fix(kova): clarify extension memory attribution (openclaw#117500) fix(imessage): sanitize private context on every outbound path (openclaw#117501) fix(ci): align release validation fixtures (openclaw#117494) fix(talk): preserve owner authorization in realtime consults (openclaw#114163) fix(ui): surface aborted-run diagnostics (openclaw#117497) perf(models): skip Ollama row runtime loading (openclaw#117465) fix(cli): report user profile command outcomes (openclaw#117466) fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419) fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412) fix(models): avoid waiting on promotions before listing models (openclaw#117322) refactor(plugins): inherit shared package boundary settings (openclaw#117474) fix(systemd): parse all inline environment assignments (openclaw#117484) feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545) fix(qa): Slack progress lane misses successful delivery (openclaw#117391) refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476) ...
* origin/main: (41 commits) fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486) fix(doctor): reject contradictory lint check selectors (openclaw#117495) fix(anthropic): honor configured model pricing (openclaw#117275) refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373) refactor(test): derive changed tooling routes (openclaw#117407) fix(kova): clarify extension memory attribution (openclaw#117500) fix(imessage): sanitize private context on every outbound path (openclaw#117501) fix(ci): align release validation fixtures (openclaw#117494) fix(talk): preserve owner authorization in realtime consults (openclaw#114163) fix(ui): surface aborted-run diagnostics (openclaw#117497) perf(models): skip Ollama row runtime loading (openclaw#117465) fix(cli): report user profile command outcomes (openclaw#117466) fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419) fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412) fix(models): avoid waiting on promotions before listing models (openclaw#117322) refactor(plugins): inherit shared package boundary settings (openclaw#117474) fix(systemd): parse all inline environment assignments (openclaw#117484) feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545) fix(qa): Slack progress lane misses successful delivery (openclaw#117391) refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476) ...
…law#117322) * fix(models): overlap promotions refresh with model listing * fix(models): require prefetched promotions refresh
* origin/main: (44 commits) fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486) fix(doctor): reject contradictory lint check selectors (openclaw#117495) fix(anthropic): honor configured model pricing (openclaw#117275) refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373) refactor(test): derive changed tooling routes (openclaw#117407) fix(kova): clarify extension memory attribution (openclaw#117500) fix(imessage): sanitize private context on every outbound path (openclaw#117501) fix(ci): align release validation fixtures (openclaw#117494) fix(talk): preserve owner authorization in realtime consults (openclaw#114163) fix(ui): surface aborted-run diagnostics (openclaw#117497) perf(models): skip Ollama row runtime loading (openclaw#117465) fix(cli): report user profile command outcomes (openclaw#117466) fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419) fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412) fix(models): avoid waiting on promotions before listing models (openclaw#117322) refactor(plugins): inherit shared package boundary settings (openclaw#117474) fix(systemd): parse all inline environment assignments (openclaw#117484) feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545) fix(qa): Slack progress lane misses successful delivery (openclaw#117391) refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476) ...
* origin/main: (27 commits) fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486) fix(doctor): reject contradictory lint check selectors (openclaw#117495) fix(anthropic): honor configured model pricing (openclaw#117275) refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373) refactor(test): derive changed tooling routes (openclaw#117407) fix(kova): clarify extension memory attribution (openclaw#117500) fix(imessage): sanitize private context on every outbound path (openclaw#117501) fix(ci): align release validation fixtures (openclaw#117494) fix(talk): preserve owner authorization in realtime consults (openclaw#114163) fix(ui): surface aborted-run diagnostics (openclaw#117497) perf(models): skip Ollama row runtime loading (openclaw#117465) fix(cli): report user profile command outcomes (openclaw#117466) fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419) fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412) fix(models): avoid waiting on promotions before listing models (openclaw#117322) refactor(plugins): inherit shared package boundary settings (openclaw#117474) fix(systemd): parse all inline environment assignments (openclaw#117484) feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545) fix(qa): Slack progress lane misses successful delivery (openclaw#117391) refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476) ...
* origin/main: (41 commits) fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486) fix(doctor): reject contradictory lint check selectors (openclaw#117495) fix(anthropic): honor configured model pricing (openclaw#117275) refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373) refactor(test): derive changed tooling routes (openclaw#117407) fix(kova): clarify extension memory attribution (openclaw#117500) fix(imessage): sanitize private context on every outbound path (openclaw#117501) fix(ci): align release validation fixtures (openclaw#117494) fix(talk): preserve owner authorization in realtime consults (openclaw#114163) fix(ui): surface aborted-run diagnostics (openclaw#117497) perf(models): skip Ollama row runtime loading (openclaw#117465) fix(cli): report user profile command outcomes (openclaw#117466) fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419) fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412) fix(models): avoid waiting on promotions before listing models (openclaw#117322) refactor(plugins): inherit shared package boundary settings (openclaw#117474) fix(systemd): parse all inline environment assignments (openclaw#117484) feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545) fix(qa): Slack progress lane misses successful delivery (openclaw#117391) refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476) ...
Related: #116920
Depends on: #117323
What Problem This Solves
Human-readable
openclaw models listcould wait for the optional promotions feed refresh after model rows were already prepared, adding the feed timeout directly to command latency.Why This Change Was Made
The command now starts the best-effort promotions refresh after configuration, authentication indexing, and required registry loading succeed, then overlaps it with model row construction.
The refresh is represented by an explicit token containing the captured time and fail-silent state promise. The table still prints before the optional promotions section. JSON and plain output do not import or refresh promotions, and config or registry failures do not start the optional work.
Refresh cadence, timeout, cache, and notification behavior remain unchanged. Rejected refresh promises are now contained at the refresh boundary, so passive discovery cannot create an unhandled rejection or fail the listing.
User Impact
Human-readable model listing returns its core table sooner when the optional promotions feed is slow, without changing machine-readable output or the rendered promotions section.
Evidence
ed9c67f1b7f14bb35bf49ae35f4ae7d55cc8db76.5ae401d9084f76ef4908b584bfff44962fa271f4.2.16s; an isolated promotions fetch on the same path consumed about1.8s, identifying this latency issue separately from the catalog RSS regression: https://github.com/openclaw/openclaw/actions/runs/30692963688.list.list-command.forward-compat.test.tsandlist.promotions.test.ts.oxfmt, direct touched-fileoxlint, andgit diff --checkpassed.packages/terminal-core/src/ansi.ts; exact GitHub CI is the authoritative broad gate.30707263927completed successfully: 57 jobs passed andopenclaw/ci-gateis green.30707279461completed successfully: all six jobs passed, including five mock release scenarios and the live OpenAI candidate scenario.origin/mainae1ab269eb364faf4bba995c93aadabb4950c0c1:6e14055ba4400288c008dad43e2d10a726661e01.Merge Gate
Do not merge until exact-head GitHub CI and Kova proof are green and every exact-head ClawSweeper
Before merge, finding, security, owner-decision, merge-risk, and blocking rank-up item is resolved.