Repository navigation
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. What this changesThis PR makes Feishu/Lark registration expiry use elapsed time and adds a wall-clock rewind regression. Example: A registration has a one-second expiry, responses remain pending, and the wall clock rewinds ten seconds.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR repairs a current-main polling defect with the smallest complete change; no actionable findings remain, and exact-head CI is still pending. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Feishu setup wizard passes a device code, polling interval, and expiry to the plugin registration poller, which calls the accounts endpoint and returns credentials or a terminal status. flowchart TD
A[Feishu setup wizard] --> B[Begin device registration]
B --> C[Registration poller]
D[Monotonic expiry budget] --> C
C --> E[Feishu or Lark accounts endpoint]
E --> C
C --> F[Credentials or terminal status]
Technical reviewBest possible solution: Keep the existing registration poller as the sole expiry owner and use performance.now for deadline creation and comparison. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the clock-sensitive polling path, and the supplied base-versus-fix HTTP comparison corroborates it; no target code was executed during this review. Is this the best way to solve the issue? The two substitutions restore the elapsed-time invariant at its existing owner, and the single regression catches the distinct rewind failure without new machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 103129e1ae6e. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +24. Total +24 across 2 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (3 earlier review cycles)
Reviewed October 24, 2026, 6:37 PM ET / 22:37 UTC (Revision 4). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
8c8e9f2 to
1847822
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Integrate current main while retaining the contributor's bounded polling fix and wall-clock rewind regression. Remove the redundant clock explanation. Co-authored-by: mikasa0818 <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
… clock (openclaw#182180) Registration polling expiry now uses elapsed time, so a wall-clock correction cannot extend or shorten the authorization window. The existing HTTP transport and registration result contracts are preserved. The regression reproduces the clock rewind. Focused tests and a real local HTTP probe pass; exact-head PR CI is green. Co-authored-by: mikasa0818 <[email protected]>
… clock (#182180) Registration polling expiry now uses elapsed time, so a wall-clock correction cannot extend or shorten the authorization window. The existing HTTP transport and registration result contracts are preserved. The regression reproduces the clock rewind. Focused tests and a real local HTTP probe pass; exact-head PR CI is green. Co-authored-by: mikasa0818 <[email protected]> (cherry picked from commit e6e0545) Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Fixes: Feishu/Lark QR registration keeps polling beyond device-code expiry, or stops early, when the system wall clock changes during pairing.
User Impact
The registration poll consumes its existing expiry budget using elapsed time, so a clock correction does not extend or shorten the pairing window.
Why This Change Was Made
The poll owner now uses
performance.now()for deadline creation and comparison. Provider interval normalization, cancellation, backoff, and registration outcomes retain their existing behavior. The redundant clock explanation was removed; production changes are two substitutions (+2/-2, net 0), with one 24-line regression. Thanks to @mikasa0818 for the fix and regression.Evidence
8c6ad0edc3c9d87f5a5b5a40fad6f84761066348, the regression remains unsettled after 35 seconds of fake elapsed time when the wall clock rewinds ten minutes. With the fix it returnstimeout; the entire file plus the temporary runtime probe passed (9/9).TMPDIR=/private/tmp/oc-ct-monoA pnpm test extensions/feishu/src/app-registration.test.ts --maxWorkers=1. Targeted syntax-only oxlint, oxfmt, andgit diff --checkpassed. Independent diff review found no actionable P0–P2 findings.openclaw/plugin-sdk/*declaration artifacts. Type-aware extension lint then reached the wrapper’s 300-second SDK declaration-generation timeout. Exact-head PR CI supplies broad validation; neither setup failure is a product verdict.