Repository navigation
fix: prevent configured models from stalling startup - #116553
fuller-stack-dev merged 1 commit into
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 30, 2026, 5:14 PM ET / 21:14 UTC. ClawSweeper reviewWhat this changesThe PR compiles one manifest-aware static model-ID matcher from the prepared plugin-metadata snapshot and reuses it during configured-model and static-catalog lookups to prevent repeated metadata discovery at gateway startup. Merge readinessKeep this PR open for maintainer review. The proposed cache is aligned with the prepared-runtime ownership model and its alias snapshot test covers the key semantic risk; the linked bug remains open until this fix is reviewed and merged. The PR is member-authored and carries the protected Priority: P1 Review scores
Verification
How this fits togetherPrepared model publication builds each workspace’s available model catalog before the gateway reports readiness. Configuration supplies model references, plugin metadata supplies manifest normalization rules, and the resulting catalog determines which configured models the gateway can expose. flowchart LR
A[Gateway startup] --> B[Workspace configuration]
B --> C[Prepared plugin metadata snapshot]
C --> D[Static model-ID matcher]
D --> E[Configured and static catalog lookup]
E --> F[Prepared model catalog]
F --> G[Gateway readiness]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +70, Tests +22. Total +92 across 7 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. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase or refresh against current Do we have a high-confidence way to reproduce the issue? No independent high-confidence reproduction was run in this read-only review. The linked report provides a concrete current-main benchmark shape—12 agents and 312 configured references—and the branch includes focused regression coverage for the resolved metadata path. Is this the best way to solve the issue? Yes, provisionally. Capturing manifest normalization once from the lifecycle-owned plugin snapshot follows the repository’s prepared-facts rule and avoids a competing cache, while preserving the snapshot alias behavior in tests. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against b7bfe21348c2. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Maintainer landing review for
No ClawSweeper finding remains. I am proceeding through the repository-native prepare and deterministic merge gates. |
|
Final landing evidence for
Proceeding with a maintainer-pinned squash of the reviewed head rather than rerunning the same hosted-runner failure. |
|
Merged via pinned maintainer squash.
|
…-supported-paths * origin/main: (168 commits) fix(plugins): keep registry sqlite root consistent (#116427) fix(cli): keep Gateway auth failures parseable in JSON (#116597) fix(trajectory): preserve prompts in oversized events (#116220) test(buzz): add live QA Lab channel lane (#116298) chore(i18n): refresh native locales (#116567) feat: add OpenClaw TUI prototype skill (#116583) fix(update): accept concrete versions selected by ranges (#116585) fix(agents): preserve locked session model routes test(qa-lab): preserve Matrix fault proxy identity fix(ci): extend OpenAI live profile setup budget (#116580) fix: prevent configured models from stalling startup (#116553) fix(cli): close MCP listener after one-shot commands fix(auto-reply): keep explicit NO_REPLY silent (#116548) test(discord): cover deferred backpressure terminals fix(discord): cancel backpressured realtime playback test(discord): cover realtime output backpressure fix(codex): add remote WebSocket heartbeat and reconnect (#116135) fix(macos): wait for the current reconnect snapshot (#116550) fix(outbound): recognize current-source message-tool sends (#116560) fix(voice-call): type cancelled consult outcomes ... # Conflicts: # extensions/google/setup-api.test.ts # ui/src/e2e/model-setup.e2e.test.ts
…-supported-paths * origin/main: (168 commits) fix(plugins): keep registry sqlite root consistent (openclaw#116427) fix(cli): keep Gateway auth failures parseable in JSON (openclaw#116597) fix(trajectory): preserve prompts in oversized events (openclaw#116220) test(buzz): add live QA Lab channel lane (openclaw#116298) chore(i18n): refresh native locales (openclaw#116567) feat: add OpenClaw TUI prototype skill (openclaw#116583) fix(update): accept concrete versions selected by ranges (openclaw#116585) fix(agents): preserve locked session model routes test(qa-lab): preserve Matrix fault proxy identity fix(ci): extend OpenAI live profile setup budget (openclaw#116580) fix: prevent configured models from stalling startup (openclaw#116553) fix(cli): close MCP listener after one-shot commands fix(auto-reply): keep explicit NO_REPLY silent (openclaw#116548) test(discord): cover deferred backpressure terminals fix(discord): cancel backpressured realtime playback test(discord): cover realtime output backpressure fix(codex): add remote WebSocket heartbeat and reconnect (openclaw#116135) fix(macos): wait for the current reconnect snapshot (openclaw#116550) fix(outbound): recognize current-source message-tool sends (openclaw#116560) fix(voice-call): type cancelled consult outcomes ... # Conflicts: # extensions/google/setup-api.test.ts # ui/src/e2e/model-setup.e2e.test.ts
Closes #116552
What Problem This Solves
Fixes an issue where gateways with multiple agents and many configured model references could spend tens of seconds in prepared model publication during cold startup, delaying readiness and causing early health probes to time out.
Why This Change Was Made
Prepared workspace facts now compile one static model-ID matcher from the lifecycle-owned plugin metadata snapshot and carry it through configured-model and bundled static-catalog lookups. This preserves manifest normalization semantics while preventing model comparison loops from rediscovering plugin metadata.
User Impact
Gateway startup no longer grows by repeatedly scanning plugin metadata for each agent/model comparison. On the reproduced 12-agent, 312-model configuration, configured projection dropped from 49.1 seconds to 17.9 milliseconds while all 312 configured models remained available.
Evidence
configuredProjectionMs.configuredProjectionMs=17.88,agentCount=12,configuredRuntimeModelCount=312.prepared-model-runtime.startup-static,model.static-catalog.snapshot-cache, andmodel-ref-shared.AI-assisted: Codex was used for investigation, implementation, testing, and review. The change and evidence were inspected before submission.