Repository navigation
chore(channels): cover conversation ID normalization at the route boundary - #148367
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: needs maintainer review before merge. Reviewed October 5, 2026, 2:37 PM ET / 18:37 UTC (Revision 6). ClawSweeper reviewWhat this changesThe branch replaces duplicated conversation ID conversion with OpenClaw’s shared normalizer and adds tests preserving child and parent target formatting. Merge readiness✅ Ready for maintainer review Keep open: no introduced correctness defect was found, and distinct route-level coverage remains absent from main. The MEMBER author and maintainer label also require maintainer handling rather than automatic closure. Priority: P3 Review scores
Verification
How this fits togetherChannel route projection converts bound conversation references into delivery destinations and thread IDs. Shared normalization prepares those IDs before channel plugins project them or core supplies a fallback. flowchart TD
A[Conversation reference] --> B[Normalize channel and IDs]
B --> C[Channel plugin projection]
C --> D{Plugin supplies target}
D --> E[Delivery destination and thread]
D --> F[Generic target fallback]
F --> E
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -8, Tests +40. Total +32 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep main’s canonical conversion owner and preserve useful route-boundary coverage without reintroducing duplicate conversion logic. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes behavior-preserving cleanup rather than reporting a runtime defect; source inspection supports equivalent conversion semantics. Is this the best way to solve the issue? Yes: reusing the existing canonical helper removes duplicate policy, and route-level assertions protect its integration. Main now already contains the production portion. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a33accd27f3d. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
3ebfd94 to
cdbae6d
Compare
|
@clawsweeper re-review The PR body now records the missing explicit single-worker measurement at unchanged head |
|
🦞👀 Re-review progress:
|
Integrate main after the normalization owner landed in #164269. The remaining contribution is 22 route-level normalization cases; production matches main. Preserve the original PR ancestry and historical proof. Current-head review and hosted CI remain required before landing.
|
Merged via squash.
|
) * refactor(channels): reuse conversation id normalization * chore(channels): retain route normalization coverage on current main Integrate main after the normalization owner landed in openclaw#164269. The remaining contribution is 22 route-level normalization cases; production matches main. Preserve the original PR ancestry and historical proof. Current-head review and hosted CI remain required before landing. Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
The route-projection tests do not exercise numeric, blank, missing, or non-finite conversation IDs at the plugin boundary. The production normalizer from this PR is already on main through #164269; only the missing route tests remain.
User Impact
No production behavior change. The tests protect delivery-target selection for child and parent IDs while preserving the existing plugin, generic-fallback, and thread-only cases.
Why This Change Was Made
Retain 22 table-driven cases through the real route-projection owner: finite numbers truncate before stringification, strings trim without numeric coercion, invalid child IDs produce no target, and invalid parent IDs fall back to the child. The signed main integration preserves the original PR ancestry and removes the already-landed production delta. Against the frozen main baseline, the candidate changes one test file by 40 lines.
Evidence
4daffce47c11f7cfaeddf6b350c2c34a92cb9624, based on mainc5a6724c26556cc6759cb2bec49cc676cb5c9dc0. The test file and production normalizer are byte-identical to the original PR head; the route owner changed only comments, and the canonical ID helper is unchanged.git diff --checkpassed.cdbae6dd74c8d15cbd23a9a1687210cbb2449a3f: 26/26 tests passed, no skips, through the repository test entrypoint on Testbox. Single-worker wall time was 29.18 seconds; Vitest reported 26.78 seconds. Historical CI test-step cost was 27 seconds. These results do not qualify the new published head.src/channels/route-projection.test.ts: 26 passed, zero skipped, including every added child/parent case. Tested merge01c2216884283d2d2293ba1c645f6889b25dfff2contains published head4daffce47c11f7cfaeddf6b350c2c34a92cb9624; its test, route, normalizer and canonical ID-helper blobs match that head exactly. Log SHA256:d35454e411e8fb53ed3fe3b9fcf8c59b2f9ace583749e55d49bc713fab13347a.openclaw/ci-gatewas correctly published: CI run 36143146316 failed after the older successful run 35958615982. Security Review run 36147799731 published that result. No status override or blind rerun was used.