Skip to content

fix(ui): unblock chat pane lint - #149733

Closed
steipete wants to merge 1 commit into
mainfrom
codex/chat-pane-queued-edit-controls
Closed

steipete wants to merge 1 commit into
mainfrom
codex/chat-pane-queued-edit-controls

Conversation

@steipete

@steipete steipete commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Related: #149712

What Problem This Solves

The chat pane renderer exceeds the existing 700-line lint limit, blocking UI lint checks.

User Impact

There is no user-visible change. This restores lint compliance while preserving queued-message editing behavior.

Why This Change Was Made

Move queued-edit props assembly into the existing session-controls owner. The renderer falls from 702 to 693 counted lines without changing the limit. Returned values, callback identities, participation gates, lookup order, and the unconditional cancel callback remain unchanged.

Evidence

  • All 69 existing composer and queued-message-edit tests passed.
  • Canonical UI typecheck, focused lint, formatting, and diff checks passed.
  • A structural comparison confirms all eight props expressions moved intact.
  • Fresh independent review found no actionable P0–P2 findings.

Exact-head CI passed both core lint jobs, the aggregate lint check, and all three UI test shards. Required CI remains blocked by failures in unchanged Node test files: planner fixture tails 48/49 and a Gateway post-ready close timeout. Native preparation is held until required CI is green.

@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
@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: blocked before merge. Reviewed September 16, 2026, 2:09 AM ET / 06:09 UTC (Revision 2).

ClawSweeper review

What this changes

Moves queued-message editing properties into the existing chat session-controls module to bring the renderer below its lint limit without changing behavior.

Merge readiness

⛔ Blocked before merge - 2 items remain

No actionable patch defects found. Current main already resolves the lint failure through #149697; this protected maintainer PR remains open for a decision about retaining the optional extraction.

Priority: P3
Reviewed head: e2a4b5c1c4b72c01ebd6c15a698d4202abe1ab6e
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, behavior-preserving patch with supporting lint and test evidence; current-main overlap affects necessity rather than patch quality.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored internal extraction preserves the queued-edit assembly and introduces no visible UI or material authority change; contributor runtime and screenshot gates do not apply.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored internal extraction preserves the queued-edit assembly and introduces no visible UI or material authority change; contributor runtime and screenshot gates do not apply.
Evidence reviewed 9 items Pinned extraction preserves behavior: The introduced diff moves all eight property expressions intact, preserving lookup order, callback references, participation guards, and unconditional cancellation. No configuration, storage, dependency, or authority policy changes are introduced.
Existing composer and edit owners remain connected: The composer forwards the same eight properties to the queue renderer. Existing page callbacks still own begin, update, submit, and cancel operations; the extraction neither duplicates those operations nor changes their ownership checks.
Main already satisfies the renderer limit: The unchanged lint rule allows 700 nonblank, noncomment lines. Read-only counting of the renderer gives 702 at the merge base, 693 at the PR head, and 700 at fetched main. Main achieves this by simplifying two unrelated callbacks; it does not contain this extraction.
Findings None None.
Security None None.

How this fits together

The Control UI chat renderer combines session state and callbacks into properties consumed by the composer. The extracted assembly supplies the queued-message editor’s draft, source message, and editing actions.

flowchart LR
  A[Chat session state] --> C[Session controls]
  B[Participation access] --> C
  C --> D[Queued edit properties]
  D --> E[Chat composer]
  E --> F[Existing edit callbacks]
Loading

Decision needed

Question Recommendation
Should this extraction be retained now that current main already meets the renderer’s 700-line limit? Close the redundant repair: Keep the landed callback simplification and close this PR because its stated lint blocker is already resolved.

Why: The original blocker is resolved, but the maintainer-authored, protected PR cannot be automatically closed; retaining extra renderer headroom is a maintainer choice.

Before merge

  • Complete next step (P2) - Decide whether to retain this extraction or close it now that the merged main-side repair resolves the lint failure.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
Agent review details

Security

None.

PR surface

Source +8. Total +8 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 2 19 11 +8
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 2 19 11 +8

Review metrics

Metric Value Why it matters
Renderer lint budget Limit 700; original 702; PR head 693; fetched main 700 The extraction creates headroom, but the original lint failure is already resolved on main.

Root-cause cluster

Relationship: superseded
Canonical: #149697
Summary: The merged canonical change resolves the same renderer lint overage through a different simplification.

Members:

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

Technical review

Best possible solution:

Keep the existing lint limit and unchanged queued-edit behavior; the landed callback simplification already supplies the required lint repair.

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

Not applicable to a user-facing bug: source counting confirms the historical lint overage, while fetched main now meets the limit. No tests or lint processes were executed in this read-only review.

Is this the best way to solve the issue?

The extraction is a sound, narrow refactor, but it is no longer necessary to solve the stated problem because a merged alternative already restores compliance.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is behavior-preserving internal cleanup whose original lint blocker is already resolved on main.
  • 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: This maintainer-authored internal extraction preserves the queued-edit assembly and introduces no visible UI or material authority change; contributor runtime and screenshot gates do not apply.

Evidence

What I checked:

  • Pinned extraction preserves behavior: The introduced diff moves all eight property expressions intact, preserving lookup order, callback references, participation guards, and unconditional cancellation. No configuration, storage, dependency, or authority policy changes are introduced. (ui/src/pages/chat/chat-pane-session-controls.ts:48, e2a4b5c1c4b7)
  • Existing composer and edit owners remain connected: The composer forwards the same eight properties to the queue renderer. Existing page callbacks still own begin, update, submit, and cancel operations; the extraction neither duplicates those operations nor changes their ownership checks. (ui/src/pages/chat/components/chat-composer-view.ts:322, e2a4b5c1c4b7)
  • Main already satisfies the renderer limit: The unchanged lint rule allows 700 nonblank, noncomment lines. Read-only counting of the renderer gives 702 at the merge base, 693 at the PR head, and 700 at fetched main. Main achieves this by simplifying two unrelated callbacks; it does not contain this extraction. (.oxlintrc.json:320, 9b73eb1e90be)
  • Merged alternative has explicit lint-fix provenance: GitHub verifies fix(cron): suppress control tokens and retain retry usage #149697 merged at 2026-09-16T05:49:17Z. Its body explicitly identifies the equivalent callback simplifications as restoring the renderer’s existing file-length limit. (08584b3d34c5)
  • Main implementation and release check: The commit patch confirms the two callback simplifications. The change is present in fetched main; git tag --contains returned no containing release tag, so release inclusion is not established. (ui/src/pages/chat/chat-pane-render.ts:174, 08584b3d34c5)
  • Release containment inspection: No local release tag contains the main-side renderer repair. (08584b3d34c5)

Likely related people:

  • steipete: 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-16T05:28:34.888Z sha e2a4b5c :: needs maintainer review before merge. :: none

@steipete

Copy link
Copy Markdown
Contributor Author

Independent review of the full diff: scoped-clean at P1 — the eight queued-edit expressions move unchanged into the session-controls owner with evaluation order, callback references and participation guards preserved, no suppression or baseline touch, and the core lint jobs are green on this head. This is the fix for the red check-lint-core gate every PR is hitting. Its aggregate CI is red only because of the separate goals-operations.test.ts read-budget breakage on main (#149722 / our landing of the two-read fix, in progress) plus two unrelated jobs; once that lands, a rebase gives this PR a fresh merge-ref and it can go straight through. If nobody has landed it by then I will rebase and land it from here so main is green again.

@steipete

Copy link
Copy Markdown
Contributor Author

Superseded by #149697, merged as 08584b3. Current main 932846b retains that repair: the chat pane renderer is exactly at the unchanged 700-line lint limit. The landed callback simplifications preserve their gates, side effects, and undefined return values, so this separate props extraction is no longer needed.

The Gateway startup timeout observed in this PR's CI remains a separate, unproven issue; this superseded closure does not claim to fix it.

@steipete steipete closed this Sep 16, 2026
steipete added a commit that referenced this pull request Sep 16, 2026
steipete added a commit that referenced this pull request Sep 16, 2026
steipete added a commit that referenced this pull request Sep 16, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 17, 2026
@RomneyDa
RomneyDa deleted the codex/chat-pane-queued-edit-controls branch October 22, 2026 00:12
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.

1 participant