Repository navigation
fix: restore the formatting check for pull requests - #207364
Conversation
Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 6302e710-b1dd-490f-8237-d598badb34f9
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: passed. What this changesThis PR sorts two existing imports in the chat completion component to satisfy the repository formatter. Example: A contributor runs CI=true pnpm format:check after incorporating the affected main revision.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review This PR makes the minimal correction to an import-order failure still present on current main; no actionable defects were found. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe repository formatting command checks source files with pinned oxfmt and Bun implementations, compares their results in CI, and returns a failing status for formatting differences. flowchart TD
A[Pull request source] --> B[Formatting command]
B --> C[Pinned oxfmt]
B --> D[Pinned Bun formatter]
C --> E[Compare results]
D --> E
E --> F[CI formatting status]
Technical reviewBest possible solution: Merge the existing import reorder after the normal CI gates pass. Do we have a high-confidence way to reproduce the issue? Current-main source and import-sorting configuration establish the reported path, supported by the PR's before/after formatter results; no target code was executed during this read-only review. Is this the best way to solve the issue? Reordering the imports fixes the source violation through the existing formatter contract without changing CI rules, configuration, tests, or rendering logic. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bf5c52994298. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0. Total 0 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel 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 Reviewed November 28, 2026, 3:11 AM ET / 08:11 UTC. |
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 6302e710-b1dd-490f-8237-d598badb34f9
What Problem This Solves
Pull requests that pick up the import order introduced in #201891 fail the repository-wide
check-docsformatting step, even if they do not touch chat.User Impact
Contributors no longer inherit this formatting failure. There is no change to the chat UI and no action required from users.
Why This Change Was Made
Move the
chat-handoff-sessionsimport beforechat-subagent-badge, as the existing formatter requires. No CI rule, formatter configuration or test changed.Evidence
I ran the full
CI=true pnpm format:checkon AWS CrabBox, with the pinned oxfmt and Bun formatters:262f14aaui/src/pages/chat/components/chat-subagent-completion.tsx.62ced4a3git diff --checkpassed. I did not run the rest of the CI suite or exercise the UI.Worked on by:
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by
🦞 Made with OpenClaw