Skip to content

fix: restore the formatting check for pull requests - #207364

Merged
daniel-lxs merged 2 commits into
mainfrom
openclaw/main-formatting-red-12ac8d
Nov 28, 2026
Merged

daniel-lxs merged 2 commits into
mainfrom
openclaw/main-formatting-red-12ac8d

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Pull requests that pick up the import order introduced in #201891 fail the repository-wide check-docs formatting 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-sessions import before chat-subagent-badge, as the existing formatter requires. No CI rule, formatter configuration or test changed.

Evidence

I ran the full CI=true pnpm format:check on AWS CrabBox, with the pinned oxfmt and Bun formatters:

Revision Result
Main 262f14aa Exit 1. Both formatters listed only ui/src/pages/chat/components/chat-subagent-completion.tsx.
Fix 62ced4a3 Exit 0. Both formatters agreed; no files listed.

git diff --check passed. 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

roboclaw-bot and others added 2 commits November 28, 2026 08:04
Worked on by:
- @daniel-lxs

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: 6302e710-b1dd-490f-8237-d598badb34f9
@clawsweeper

clawsweeper Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@clawsweeper clawsweeper Bot added the P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. label Nov 28, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 28, 2026 08:08
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 28, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This 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.

  • Before: The PR reports exit 1, with both formatters identifying chat-subagent-completion.tsx.
  • After: The PR reports exit 0 after placing chat-handoff-sessions before chat-subagent-badge.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-verified correction with proportional reported validation; exact-head CI remains in progress.
Proof confidence 🐚 platinum hermit (4/6) This mechanical formatting correction has no user-visible runtime change and is exempt from contributor proof requirements; reported formatter results support it, while inspected screenshots belong to the earlier UI change.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Contributors can inherit a repository-wide formatting failure from main even when their changes do not touch chat.
Reason: The maintainer-authored direction restores an existing development contract with a minimal mechanical change.

Regression provenance

Possible 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: f001754357e35c7d8d8fa7a92ca706517196a0a9

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 18136c9 adds ui/src/pages/chat/components/chat-subagent-completion.tsx:1 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 18136c960eaf; files: ui/src/pages/chat/components/chat-subagent-completion.tsx)
  • RoboClaw: Raw commit aa4a68f adds ui/src/pages/chat/components/chat-subagent-completion.tsx:116 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: aa4a68f4cf4b; files: ui/src/pages/chat/components/chat-subagent-completion.tsx)

PR surface

Source 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 1 0

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 28, 2026, 3:11 AM ET / 08:11 UTC.

@daniel-lxs
daniel-lxs merged commit ce0de20 into main Nov 28, 2026
154 checks passed
@daniel-lxs
daniel-lxs deleted the openclaw/main-formatting-red-12ac8d branch November 28, 2026 08:28
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 29, 2026
Worked on by:
- @daniel-lxs

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: 6302e710-b1dd-490f-8237-d598badb34f9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants