Repository navigation
refactor(clickclack): reuse canonical session URL contract - #120810
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 8, 2026, 9:50 PM ET / August 9, 2026, 01:50 UTC. ClawSweeper reviewWhat this changesThe PR replaces ClickClack’s copied Control UI session-path formatter with the host’s canonical formatter exposed through the existing session-discussion plugin SDK subpath. Merge readinessKeep this maintainer-owned PR open for normal review: it is a clean, behavior-preserving removal of duplicate URL logic, with no correctness finding; the additive public SDK contract and exact-head CI remain the merge checks. Priority: P3 Review scores
Verification
How this fits togetherClickClack creates Control UI links for session discussions. The public plugin SDK lets independently published plugins use the host-owned session URL grammar without importing private workspace code. flowchart LR
A[Session discussion] --> B[ClickClack plugin]
B --> C[Public plugin SDK]
C --> D[Canonical session URL contract]
D --> E[Control UI session link]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -138, Tests -1, Docs +1, Generated 0, Other 0. Total -138 across 6 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the single canonical URL grammar through the existing session-discussion SDK seam after accepting the narrow public contract and completing exact-head checks. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a behavior-preserving refactor, and source comparison plus shared URL-contract vectors establish the relevant equivalence. Is this the best way to solve the issue? Yes: exposing the existing generic formatter through the already-public session-discussion seam removes drift without creating another SDK subpath or exposing private package internals. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 62b418d551b0. 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 review complete for I accept the intentionally additive The mechanical rebase conflict was resolved by retaining main's three new SDK exports plus this PR's one export, moving the public export budget from 4843 to 4844 and the callable export budget from 2919 to 2920. Proof on the reviewed head:
ClawSweeper's rank-up move is addressed: exact-head CI completed and the permanent SDK contract is explicitly accepted for landing. No re-review is needed because the post-review change was a mechanical rebase only. |
b09bfd7 to
db12373
Compare
|
Merged via squash.
|
What Problem This Solves
ClickClack's independently published plugin carried a manual copy of the Control UI session URL grammar. That duplicate could drift from the canonical host contract and generate different session links after future fixes.
Why This Change Was Made
Expose the canonical
buildControlUiSessionPathhelper through the existing publicopenclaw/plugin-sdk/session-discussionseam, then reduce ClickClack's local implementation to its URL-object wrapper. This keeps the private workspace package an implementation detail and avoids adding a plugin runtime dependency.User Impact
No intended user-visible behavior change. ClickClack session links now stay aligned with the host's canonical Control UI URL rules instead of relying on a forked copy.
Evidence
node scripts/run-vitest.mjs extensions/clickclack/src/discussions/service.test.ts— 36 tests passed.pnpm plugin-sdk:api:checkpnpm plugin-sdk:check-exportspnpm plugin-sdk:surface:checktbx_01kzj20q3mwc52wz0y7w79rdx6:pnpm buildplus changed-surface validation passed: https://github.com/openclaw/openclaw/actions/runs/31288249455AI-assisted: yes. The implementation and generated contract changes were manually reviewed and validated.