Skip to content

fix(ci): restore chat renderer lint checks - #149735

Closed
steipete wants to merge 1 commit into
mainfrom
codex/qa-chat-pane-render-line-limit
Closed

steipete wants to merge 1 commit into
mainfrom
codex/qa-chat-pane-render-line-limit

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: Control UI lint fails on the merged mainline after the progress-card update in #149384 pushes the chat pane renderer above its 700-line limit.

User Impact

There is no user-visible change; selecting and canceling a reply keep the same behavior.

Why This Change Was Made

Both actions now use the existing reply setter, removing duplicate state assignment and render notification while preserving the progress-card changes and the line-limit guard.

Evidence

Exact-file static lint reproduces the original 702-line failure and passes after this three-line reduction with the unchanged repository config. On Node 24.20.0 with private frozen dependencies, production UI types and the repository typed-lint wrapper pass. The existing message-actions browser file passes all nine cases, including repeated Reply/Cancel interactions (33.91 seconds). Formatting, git diff --check, and independent P2 source review also pass. Hosted CI is pending.

@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review September 16, 2026 05:22
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Sep 16, 2026
@vincentkoc

vincentkoc commented Sep 16, 2026 •

Copy link
Copy Markdown
Member

Coordination resolved: #149726 landed the planner fixture, and #149697 landed the Goal read-budget and renderer line-limit repairs with verified required CI. The resulting frozen main is 08584b3d34c526ad438b39b32931a64a6c61a992.

Our blocker-repair PR #149722 is closed as superseded. This PR’s separate reply-setter deduplication remains unlanded and author-owned; we are not requesting takeover, branch changes, or closure. The alternative UI PRs remain with their own lanes. The diagnostics work proceeds from the repaired main.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Sep 16, 2026
@clawsweeper

clawsweeper Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 16, 2026, 1:31 AM ET / 05:31 UTC.

ClawSweeper review

What this changes

The chat pane renderer reuses its reply setter when canceling a reply, reducing duplicate code while preserving existing behavior.

Merge readiness

✅ Ready for maintainer review

This remains a useful, narrowly scoped repair for the lint failure on pinned main. No actionable defect was found, and the maintainer discussion favors this approach over the broader alternatives.

Priority: P3
Reviewed head: 12162db2ba57ae3932bdc8c31400a76ee4c9b609

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, behavior-preserving cleanup with no actionable findings and relevant reported validation.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored cleanup preserves reply behavior and is exempt from the external-contributor proof gate; reported browser and lint checks remain supplemental evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored cleanup preserves reply behavior and is exempt from the external-contributor proof gate; reported browser and lint checks remain supplemental evidence.
Evidence reviewed 7 items Introduced change and preserved behavior: The complete renderer retains the same state assignment and optional render notification. Cancellation calls the setter with null unconditionally; selecting a reply retains its existing disabled-banner gate.
Existing reply contract: The composer reply target already accepts null, and the thread callback accepts a message reply target. The local setter accepts both without changing either public prop contract.
Lint budget: The existing source rule limits this file to 700 lines excluding blanks and comments. A read-only count gives 702 on pinned main and 699 on the PR head; the patch does not change lint configuration.
Findings None None.
Security None None.

How this fits together

The Control UI chat pane converts session and presentation state into transcript and composer controls. Reply selection and cancellation update pane-local state and request a render.

flowchart LR
  A[Select reply] --> B[Existing selection gate]
  B --> C[Shared reply setter]
  D[Cancel reply] --> C
  C --> E[Pane reply state]
  E --> F[Refresh composer preview]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -3. Total -3 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 1 2 5 -3
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 2 5 -3

Review metrics

Metric Value Why it matters
Renderer lint budget 702 → 699 counted lines; limit remains 700 The cleanup restores compliance without weakening the existing guard.

Root-cause cluster

Relationship: canonical
Canonical: #149735
Summary: The supplied coordination discussion favors this repair for the shared renderer line-limit failure.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep reply state updates in the existing setter and retain the unchanged lint limit and interaction gates.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: pinned main exceeds the configured 700-line limit at 702 counted lines. Lint execution was not repeated in this read-only review.

Is this the best way to solve the issue?

Yes. Reusing the existing setter removes duplication while preserving nullable reply state, unconditional cancellation, and gated selection.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against db1d5d2dccbc.

Labels

Label changes:

  • add P3: This is a small internal cleanup with no user-visible behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer-authored cleanup preserves reply behavior and is exempt from the external-contributor proof gate; reported browser and lint checks remain supplemental evidence.

Label justifications:

  • P3: This is a small internal cleanup with no user-visible behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer-authored cleanup preserves reply behavior and is exempt from the external-contributor proof gate; reported browser and lint checks remain supplemental evidence.

Evidence

What I checked:

  • Introduced change and preserved behavior: The complete renderer retains the same state assignment and optional render notification. Cancellation calls the setter with null unconditionally; selecting a reply retains its existing disabled-banner gate. (ui/src/pages/chat/chat-pane-render.ts:258, 12162db2ba57)
  • Existing reply contract: The composer reply target already accepts null, and the thread callback accepts a message reply target. The local setter accepts both without changing either public prop contract. (ui/src/pages/chat/components/chat-composer-types.ts:126, 12162db2ba57)
  • Lint budget: The existing source rule limits this file to 700 lines excluding blanks and comments. A read-only count gives 702 on pinned main and 699 on the PR head; the patch does not change lint configuration. (.oxlintrc.json:320, 12162db2ba57)
  • Verified merge scope: Raw test-merge parents match pinned main followed by the exact PR head. Comparing that merge against main produces only the two reviewed reply-setter hunks; base-only changes are not removed. (ui/src/pages/chat/chat-pane-render.ts:651, 531077d620bb)
  • Maintainer coordination: The supplied comment explicitly favors this patch as the canonical lint repair and identifies fix(ui): extract realtime chat pane props #149731 and fix(ui): unblock chat pane lint #149733 as broader alternatives. It distinguishes verified source equivalence from the author's reported browser/type/lint results. (12162db2ba57)
  • Feature-history routing: Recent renderer history includes work by Vyctor H. Brzezowski and Peter Steinberger. Deeper pickaxe/blame inspection could not finish because historical blobs were unavailable, so no source-line introduction attribution is claimed. (ui/src/pages/chat/chat-pane-render.ts, db1d5d2dccbc)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vyctorbrzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@vincentkoc

vincentkoc commented Sep 16, 2026 •

Copy link
Copy Markdown
Member

The circular blocker is resolved on main by #149697, landed as 08584b3d34c526ad438b39b32931a64a6c61a992. Its exact reviewed Goal/UI source matches the landed blobs and required CI passed.

Our alternative union #149722 is now closed as superseded; the reviewed commits and additional Matrix sibling-identity regression are retained. We will use the canonical main implementation for the diagnostics work. Your reply-setter cleanup in this PR has not landed and remains an optional author-owned cleanup; your branch was not changed. No handoff or independent-green wait is needed from this coordination thread.

@vincentkoc

vincentkoc commented Sep 16, 2026 •

Copy link
Copy Markdown
Member

Superseded by #149697, landed as 08584b3. The renderer is back at 700 counted lines under the unchanged 700-line limit.

Source CI passed 132 jobs with 12 skipped: https://github.com/openclaw/openclaw/actions/runs/35059526202. The landed renderer and relevant lint inputs match that source head. Post-merge CI was cancelled before any jobs ran: https://github.com/openclaw/openclaw/actions/runs/35061054370. Closing this alternative as already fixed.

@vincentkoc vincentkoc closed this Sep 16, 2026
@RomneyDa
RomneyDa deleted the codex/qa-chat-pane-render-line-limit branch October 22, 2026 00:17
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 maintainer Maintainer-authored PR 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