Repository navigation
fix(clickclack): await durable discussion identity - #149574
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 15, 2026, 9:47 PM ET / September 16, 2026, 01:47 UTC. ClawSweeper reviewWhat this changesClickClack discussion opening now awaits its durable installation identity through the existing asynchronous store and rejects missing persistence before creating a channel. Merge readiness⛔ Blocked before merge - 1 item remains This remains a useful, focused fix: pinned main and the latest release retain the synchronous initializer and generated-ID fallback. No actionable introduced defect was found. Priority: P2 Review scores
Verification
How this fits togetherThe ClickClack plugin connects OpenClaw sessions to managed discussion channels. Its persisted installation identity contributes to remote ownership references used to create or recover the correct channel. flowchart TD
A[Open discussion request] --> B[Read persisted installation identity]
B --> C{Identity exists?}
C -->|Yes| E[Resolve session and account]
C -->|No| D[Insert candidate and read stored winner]
D -->|Persisted| E
D -->|Unavailable| F[Return retry error]
E --> G[Create or recover discussion channel]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +9, Tests +63. Total +72 across 4 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep one durable installation identity through the existing worker-backed store, preserving stored ownership references and refusing remote creation without a persisted identity. Do we have a high-confidence way to reproduce the issue? Yes, from source: the current initializer performs synchronous storage operations and returns an unpersisted candidate when its final lookup is empty. Runtime reproduction was not executed in this read-only review. Is this the best way to solve the issue? Yes. The patch uses the existing asynchronous store and preserves the persisted contract, with focused failure and concurrency coverage at the discussion service boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fc1cadae3286. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* perf(clickclack): initialize discussion identity asynchronously * fix(clickclack): require persisted discussion installation identity
What Problem This Solves
ClickClack discussion registration currently initializes its durable installation identity with synchronous SQLite calls on the host thread.
User Impact
Discussion ownership references retain the same installation identity. If the persisted identity disappears during initialization, opening fails with retry guidance before any channel is created. Existing data needs no migration or operator action.
Why This Change Was Made
Initialize the identity when a discussion is opened, using the existing worker-backed keyed store. Atomic insert-if-absent and a read of the stored winner preserve a single identity across concurrent initializers. Return only that persisted winner; a generated candidate cannot substitute for a missing row. Keep the namespace, key, capacity, and overflow policy unchanged.
Evidence