Repository navigation
fix(plugins): preserve metadata reloads during models status - #119183
Conversation
|
@clawsweeper review Exact head
|
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper re-review Exact head The prior exact-head CI type failures were test-fixture defects and are repaired without production changes:
Exact-head GitHub CI is running and remains a hard merge gate. Please publish or refresh the durable review, including every |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 7:18 AM ET / 11:18 UTC. ClawSweeper reviewWhat this changesThe PR replaces unconditional temporary plugin-metadata restoration during Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessNo blocking correctness or security finding: this is a coherent lifecycle-owner repair for a current-main stale-state race. Keep it open for the required human landing decision because it is MEMBER-authored and carries the protected Priority: P2 Review scores
Verification
How this fits togetherPlugin metadata is process-wide control-plane state used by model-status and gateway paths to resolve plugin-backed model behavior. A command may temporarily publish metadata while catalog work runs, while gateway startup, reload, Doctor, or lifecycle clearing can authoritatively replace that state. flowchart LR
A[Models status command] --> B[Temporary metadata lease]
C[Gateway reload or lifecycle clear] --> D[Authoritative publication]
B --> E[Revision-aware release]
D --> E
E --> F[Current plugin metadata]
F --> G[Model and gateway lookups]
Decision needed
Why: The PR is authored by a repository MEMBER and has the protected Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +78, Tests +143. Total +221 across 9 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Adopt the revision-aware lease as the canonical process-local metadata lifecycle rule so authoritative clear and republish operations always win over temporary command cleanup. Do we have a high-confidence way to reproduce the issue? Yes—current main’s unconditional cleanup is directly traceable, and the PR’s deferred catalog test reproduces the clear, republish, then cleanup ordering that exposes it. Is this the best way to solve the issue? Yes—the revision belongs with the process-wide metadata lifecycle owner, which protects command cleanup and every future temporary publisher without consumer-specific guards. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b5d41f90053b. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
@clawsweeper re-review Exact-head maintainer review is complete for
This resolves all three current |
|
Merged via squash.
|
…checkpoint * origin/main: (46 commits) fix(agents): recover from invalid compaction summaries (#119137) fix(gateway): expose OAuth-backed tools to CLI agents (#119166) fix(plugins): preserve metadata reloads during models status (#119183) fix(test): bound direct gateway server runs (#119184) test(tui): prove command surfaces through PTY (#119165) fix(testbox): restore claims across path aliases (#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (#119164) fix(testbox): remove changed-gate sync residue (#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (#118998) fix(auto-reply): suppress false no-reply fallback during continuations (#119154) fix(scripts): prevent gateway benchmarks from stalling on probes (#119063) test(channels): verify built sanitizer semantics (#119151) fix: prevent live updater from leaving Gateway offline indefinitely (#119116) test(qa): restore memory tools primary ownership (#119142) fix(agents): settle yielded fanout at harness boundary (#118703) fix(codex): cap compaction override warning cache via createDedupeCache (#101745) fix(daemon): skip unlabeled launchd plists (#119091) test(qa): repair QA catalog integrity (#119140) ...
* origin/main: (208 commits) fix(telegram): route reactions to their originating forum topics test(gateway): isolate scheduled service timers (#119218) test(qa): cover Canvas agent and node controls (#119047) fix(cli): avoid repeated migration scans during local agent turns (#119051) fix(gateway): keep agents list on prepared model facts (#119208) fix(telegram): retry update offset persistence fix(ci): accept profiled partial Kova gates (#119121) fix(qqbot): keep channel API calls on the active account [AI] (#118575) fix(agents): recover from invalid compaction summaries (#119137) fix(gateway): expose OAuth-backed tools to CLI agents (#119166) fix(plugins): preserve metadata reloads during models status (#119183) fix(test): bound direct gateway server runs (#119184) test(tui): prove command surfaces through PTY (#119165) fix(testbox): restore claims across path aliases (#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (#119164) fix(testbox): remove changed-gate sync residue (#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (#118998) fix(auto-reply): suppress false no-reply fallback during continuations (#119154) ...
* origin/main: (23 commits) chore(tui): add Gateway boundary PTY coverage (#119191) fix(telegram): route reactions to their originating forum topics test(gateway): isolate scheduled service timers (#119218) test(qa): cover Canvas agent and node controls (#119047) fix(cli): avoid repeated migration scans during local agent turns (#119051) fix(gateway): keep agents list on prepared model facts (#119208) fix(telegram): retry update offset persistence fix(ci): accept profiled partial Kova gates (#119121) fix(qqbot): keep channel API calls on the active account [AI] (#118575) fix(agents): recover from invalid compaction summaries (#119137) fix(gateway): expose OAuth-backed tools to CLI agents (#119166) fix(plugins): preserve metadata reloads during models status (#119183) fix(test): bound direct gateway server runs (#119184) test(tui): prove command surfaces through PTY (#119165) fix(testbox): restore claims across path aliases (#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (#119164) fix(testbox): remove changed-gate sync residue (#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (#118998) ...
…time * origin/main: (177 commits) fix(telegram): route reactions to their originating forum topics test(gateway): isolate scheduled service timers (#119218) test(qa): cover Canvas agent and node controls (#119047) fix(cli): avoid repeated migration scans during local agent turns (#119051) fix(gateway): keep agents list on prepared model facts (#119208) fix(telegram): retry update offset persistence fix(ci): accept profiled partial Kova gates (#119121) fix(qqbot): keep channel API calls on the active account [AI] (#118575) fix(agents): recover from invalid compaction summaries (#119137) fix(gateway): expose OAuth-backed tools to CLI agents (#119166) fix(plugins): preserve metadata reloads during models status (#119183) fix(test): bound direct gateway server runs (#119184) test(tui): prove command surfaces through PTY (#119165) fix(testbox): restore claims across path aliases (#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (#119164) fix(testbox): remove changed-gate sync residue (#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (#118998) fix(auto-reply): suppress false no-reply fallback during continuations (#119154) ...
…w#119183) * fix(plugins): preserve newer metadata publications * test(plugins): type metadata snapshot fixture
* origin/main: (23 commits) chore(tui): add Gateway boundary PTY coverage (openclaw#119191) fix(telegram): route reactions to their originating forum topics test(gateway): isolate scheduled service timers (openclaw#119218) test(qa): cover Canvas agent and node controls (openclaw#119047) fix(cli): avoid repeated migration scans during local agent turns (openclaw#119051) fix(gateway): keep agents list on prepared model facts (openclaw#119208) fix(telegram): retry update offset persistence fix(ci): accept profiled partial Kova gates (openclaw#119121) fix(qqbot): keep channel API calls on the active account [AI] (openclaw#118575) fix(agents): recover from invalid compaction summaries (openclaw#119137) fix(gateway): expose OAuth-backed tools to CLI agents (openclaw#119166) fix(plugins): preserve metadata reloads during models status (openclaw#119183) fix(test): bound direct gateway server runs (openclaw#119184) test(tui): prove command surfaces through PTY (openclaw#119165) fix(testbox): restore claims across path aliases (openclaw#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (openclaw#119164) fix(testbox): remove changed-gate sync residue (openclaw#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (openclaw#118998) ...
What Problem This Solves
Fixes an issue where operators running
openclaw models statuscould lose a newer plugin metadata publication when a config reload, plugin install, Doctor repair, or lifecycle clear completed while the command was awaiting catalog work.The command previously captured process-global metadata and unconditionally restored that stale state during cleanup.
Why This Change Was Made
The plugin metadata lifecycle owner now exposes a temporary publication lease. Each publication rotates an opaque revision token; cleanup restores the full prior composite state only while its own publication is still current. Authoritative set/clear operations win, nested leases unwind safely, and exact manifest model-normalization records are restored without re-deriving them from changed environment state.
The old raw capture/restore exports and their test-only borrowers are removed. There are no config, storage, SQLite schema, protocol, or plugin SDK changes.
User Impact
Plugin metadata refreshed during
models statusremains authoritative instead of being silently replaced by stale command state. Ordinary serial command behavior is unchanged.Evidence
121c6c10423827ce8a65118600f3498e20b8f6e0.d28d2bd6a7acf0cfeeb0f11017434bb33f9dab5e(signed).PluginManifestRecordand keeps the manifest registry's plugin list mutable; its focused file passes 27/27.oxfmt, scopedoxlint, andgit diff --check: passed.packages/terminal-core/src/ansi.ts:194:38and a missing generated UI package surface; exact-head CI is the authoritative type gate.AI-assisted implementation; the exact diff, tests, lifecycle behavior, and commit were reviewed by the maintainer.