Repository navigation
fix(channels): reset metadata ownership across lifecycle changes - #117005
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 3:13 PM ET / 19:13 UTC. ClawSweeper reviewWhat this changesThe PR makes three channel metadata and inbound-media memo caches clear when the plugin metadata lifecycle is reset, with focused regression tests for refreshed catalogs and media contracts. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 5 items remain Keep this draft open for protected maintainer handling. The added catalog and media-cache hooks follow the existing lifecycle pattern, but the same reset still leaves the derived runtime channel-ID memo stale, so a catalog-only channel can remain unrecognized after install or update until process restart. Priority: P2 Review scores
Verification
How this fits togetherPlugin installation and metadata-change notifications clear shared plugin metadata state before channel setup, routing, and media helpers consult channel metadata. The changed caches turn package manifests and lightweight media artifacts into channel catalogs, IDs, labels, and inbound attachment roots. flowchart LR
A[Plugin install or metadata change] --> B[Plugin metadata lifecycle reset]
B --> C[Channel catalog memo caches]
B --> D[Inbound media-contract memo]
C --> E[Channel setup and catalog lookup]
C --> F[Runtime channel ID and alias memo]
D --> G[Attachment-root resolution]
F --> H[Channel routing and normalization]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +17, Tests +136. Total +153 across 6 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Make every process-local memo that derives runtime channel metadata participate in the same lifecycle reset, including Do we have a high-confidence way to reproduce the issue? Yes, from source: normalize an absent catalog-only channel to populate Is this the best way to solve the issue? No. Registering the three direct cache owners is consistent with the existing design, but it is incomplete while the catalog-derived runtime ID/alias memo survives the same lifecycle change. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 652a47e6449d. 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
|
|
Merged via squash.
|
* origin/main: (22 commits) fix(cron): preserve lazy ownership and bounded notification lifetimes (#117018) fix: live updater no-op restarts healthy gateways (#117038) fix(bedrock): release streaming clients (#117039) fix(google): restore canonical Gemini and Vertex provider invariants (#117042) fix(channels): preserve accepted LINE and Mattermost delivery (#117024) fix(feishu): unify truthful delivery and media ownership (#117023) fix(ui): isolate gateway observer lifecycles (#117017) fix(tui): keep reset transitions isolated from stale input (#116873) fix(gateway): centralize streamed media descriptor ownership (#117000) feat(plugins): externalize OpenCode provider (#117035) fix(onboarding): restore skill dependency consent (#116644) fix(streaming): preserve incomplete bracket tails in final replies (#116983) fix: allow slower gateway readiness after updates (#117032) fix(plugin-state): avoid shared SQLite corruption when CLI starts during gateway runtime (#113204) fix(cli): keep config file output raw under JSON logging (#116968) fix(ai): malformed Anthropic stream frames expose raw event payloads (#116938) fix(qa): authenticate actual scenario execution evidence (#117004) feat(plugins): externalize NovitaAI provider (#117007) fix(text): preserve fenced tool markers in visible-text sanitizer (#116939) (#116971) fix(channels): reset metadata memos with plugin lifecycle (#117005) ...
…17005) Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Plugin installation, update, and explicit metadata lifecycle resets left multiple channel process-local caches stale: newly created official or external channel catalogs stayed invisible, bundled channel labels/generated catalogs kept old values, and a previously unavailable inbound attachment contract remained disabled.
Why This Change Was Made
The repository already owns one explicit plugin metadata lifecycle for installation/index changes and runtime resets. This change wires each of the three existing private memo owners into that same lifecycle, clearing only its own maps while retaining steady-state memoization, channel trust filtering, catalog precedence, and narrow media artifact loading.
User Impact
Evidence
36b80ada3ceae2de21b3d8710b883d778e4c4578; immutable reviewed candidate8286acf7a698d57712095c0b9c91a41f6652e282.tbx_01kywrh2p1gzx1ptykxfajj4xz,tbx_01kywrj6rkz98k6y1s3c67842e) shut down before accepting the command; both were independently status-verifiedcompleted. Repository policy explicitly permits trusted-source local fallback when the remote backend is unavailable, so no hosted remote proof is claimed.gpt-5.6-sol, high, P3) found zero P0/P1/P2/P3, confidence 0.91, TruffleHog clean.