Skip to content

fix: preserve steering across reconnects and show queued input - #157135

Merged
steipete merged 5 commits into
mainfrom
codex/steering-reconnect-queue
Sep 24, 2026
Merged

steipete merged 5 commits into
mainfrom
codex/steering-reconnect-queue

Conversation

@steipete

@steipete steipete commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes steering that silently becomes a follow-up after the chat client reconnects, and queued input appearing as an ordinary sent message.

User Impact

Reconnecting with the same authenticated user and unchanged permissions preserves steering into the active turn. Messages waiting for another turn appear in the existing queue above the composer until consumed or canceled, including after reconnect and while browsing older history. Attachment-only queue entries show their filenames.

Why This Change Was Made

Steering compares current user permissions and model access instead of connection-object identity. Both authorities remain validated, access-grant identity is preserved, and the active turn keeps its original tool, browser, and approval bindings. Unclassified grants retain their original source boundary. Collected follow-ups retain their original source-identity boundary; logical model admission remains with the existing runtime owners.

The UI reads the Gateway's existing queued-turn state and exact input receipts. Server-owned input is displayed without another send; removing it requests cancellation of that exact queued message. Receipt checks rotate fairly across server, transcript, and browser custody within the existing request limit. The current live queue count drives bounded discovery of older pending pages without moving the displayed history page. No new queue store or database migration is introduced.

Evidence

  • The reconnect regression fails on the original code with tool_authority_mismatch and passes for unrestricted and model-restricted operators. Controls cover revocation, changed permissions, model access, and tool bindings.
  • 548 initial focused tests passed. Final queue corrections passed 37 Gateway and 418 UI tests; 55 pending-input/pagination tests cover the receipt limit and off-page queue state. Follow-up CI repairs passed 28 auto-reply, 5 CLI, and 30 history-tool tests, plus the moved receipt suite and model-policy ordering regression.
  • Browser E2E passed reconnect without resend, queue/history navigation, attachment labels, consumption, and exact-message cancellation. Negative runs demonstrated the original missing shelf, blank attachment label, off-page receipt, and receipt-priority defects.
  • Authenticated Gateway entry-point proof: the real authenticated dispatcher, chat.send handler, authority capture, reply registry, runtime steering queue, and persisted transcript run against controlled synthetic provider streams. Same-grant reconnect reaches the original runtime and records steerTargetRunId. Changed grants never enter that queue and remain accepted follow-ups; revocation before message write prevents injection. All three cases pass (11.96 s test bodies / 63.22 s wrapper). Removing only the grant comparison reproduces changed-grant injection into the actual runtime queue. No sockets, live Gateway, credentials, or production test seam are involved.
  • Final integration proof: 498 UI tests, 32 authority/follow-up tests, and 35 Gateway/history-tool tests pass. Cold queue discovery and fair receipt rotation have corrected-fixture negative proof; six grant-authority negatives fail before the fix and pass afterward, including denial before backend message injection. The final composer E2E passes (19.05 s wall). The main merge preserves fix(ui): show one outcome for interrupted restart recovery #157210 restart-recovery behavior.
  • Independent Codex reviews found no remaining actionable P0–P2 findings. Diff-scoped deslop is complete. Core/UI and affected test types, changed-file formatting/lint, import cycles, storage/auth guards, i18n, 14,553 documentation links, protocol generation, UI production build, and generated plugin assets passed. Protocol generation required no native-client changes.
  • The previous CI run exposed stale steering/output-hint expectations, an incorrect logical-model check against CLI transport identifiers, an import cycle, and generated Workboard asset drift. All five causes are corrected. The completed CI run for 2720db6 passed every test shard except one stale exact pending-input response expectation. The two affected expectations now include queuedCount: 0; the full 12-test read-scope file passes (120.53 s wrapper). Final exact-head CI run 36008122120 passed, including openclaw/ci-gate. ClawSweeper revision 5 accepted the authenticated production-path proof and reported no findings or security concerns.

Test costs: initial steering authority file 42.62 s wall (new scenarios 0.93 s and 0.47 s); final browser E2E 29.73 s wall / 6.93 s scenario; pending-input history file 69.83 s wall, about 13 s in existing SQLite/history tests; relocated receipt suite 41.02 s wall; model-policy ordering test 50.94 s wall / 15 ms body. Cold transform and worker preparation dominate these file-level times. Final authority/follow-up wrapper: 33.85 s (about 1.3 s test bodies); Gateway/history-tool wrapper: 64.87 s; final UI group: 9.38 s. Prior CI Gateway-methods shard: 297.49 s for 1,813 tests (the stale expectation was its only failure); corresponding job wall 301.15 s. Final Gateway read-scope shard: 538 s test step / 590 s job wall, successful; CI run 36008122120 completed successfully across its 174 jobs (including skipped jobs).

An earlier local strict UI performance check reported startup gzip 371,561 B against a 371,332 B limit, and Mermaid gzip 1,593,188 B against 960 KiB. CI records these as warnings under its existing policy. The Mermaid excess predates this branch (the Mermaid 12 upgrade in #156363); no budget, baseline, or dependency was changed. This fix has boundary and synthetic browser proof; it has not been deployed to a live Gateway.

The screenshots use synthetic data. Additional before/after attachment and history-navigation screenshots.

Before: server-queued input appears as a sent message

After: queued input appears above the composer

@clawsweeper

clawsweeper Bot commented Sep 24, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime size: M labels Sep 24, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 24, 2026, 10:06 AM ET / 14:06 UTC (Revision 5).

ClawSweeper review

What this changes

The branch preserves steering after an authenticated chat reconnect and displays Gateway-held queued input above the Control UI composer, with receipt-based recovery, exact cancellation, protocol fields, tests, and documentation.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

✅ Ready for maintainer review

Keep this PR open for the normal merge gates. Current main and the latest release retain the reported behavior. The prior authority-proof blocker is addressed by a production-path steering test, and the inspected screenshots support the queue presentation change; this review found no actionable patch defect.

Priority: P1
Reviewed head: 3f5f70b5a47c2e1da01feb2499624aef67357eab

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Direct UI images and final-effect authority coverage support a substantial, coherent fix, with normal exact-head merge gates remaining.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The new production-path harness drives authenticated-client chat.send dispatch through authority capture to the real session steering queue, observing same-grant injection and changed/revoked-grant denial before that effect. Inspected Chromium before/after images show the queue presentation; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The new production-path harness drives authenticated-client chat.send dispatch through authority capture to the real session steering queue, observing same-grant injection and changed/revoked-grant denial before that effect. Inspected Chromium before/after images show the queue presentation; no stored-data contract changes.
Evidence reviewed 7 items Current main still uses connection-bound steering identity: The fetched main revision fingerprints the operator authority key and the browser command target; it lacks the branch's grant-aware reconnect comparison.
Latest release does not contain the change: The latest release still fingerprints the prior authority key and browser target.
Introduced authority comparison: The branch checks live authority, preserves bound grant identity, compares model-policy membership, and retains the active turn's browser binding.
Findings None None.
Security None None.

How this fits together

Browser chat input enters the authenticated Gateway, which either steers the active agent turn or holds the input for a later turn. The Gateway exposes pending-input receipts to the Control UI, which reconciles them into the visible queue.

flowchart LR
A[Browser chat input] --> B[Authenticated Gateway]
B --> C{Steering allowed?}
C -->|Yes| D[Active agent turn]
C -->|No| E[Queued input]
E --> F[History receipts]
F --> G[Control UI queue]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +273, Tests +880, Docs +9. Total +1162 across 33 files.

View PR surface stats
Area Files Added Removed Net
Source 16 310 37 +273
Tests 13 1029 149 +880
Docs 4 11 2 +9
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 33 1350 188 +1162

Review metrics

Metric Value Why it matters
Production and test growth production +273 net lines, tests +880 net lines The production growth supports queue reconciliation and steering authority; the larger test change covers their distinct UI and authorization boundaries.
Gateway response additions 3 optional schema fields Queue custody and count are exposed without requiring existing readers to accept new mandatory fields.

Technical review

Best possible solution:

Land the Gateway-owned authority comparison and receipt-driven queue view together once the exact head passes the repository’s merge gates.

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

Yes. Current main still compares connection-bound steering identity, and the PR supplies a focused baseline-failing reconnect regression; this read-only review did not execute it.

Is this the best way to solve the issue?

Yes. The branch changes the existing authority and pending-input owners, keeps the active turn’s bindings, and reads the existing Gateway queue without adding another store.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 619405d49ddd.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The new production-path harness drives authenticated-client chat.send dispatch through authority capture to the real session steering queue, observing same-grant injection and changed/revoked-grant denial before that effect. Inspected Chromium before/after images show the queue presentation; no stored-data contract changes.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The new production-path harness drives authenticated-client chat.send dispatch through authority capture to the real session steering queue, observing same-grant injection and changed/revoked-grant denial before that effect. Inspected Chromium before/after images show the queue presentation; no stored-data contract changes.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The new production-path harness drives authenticated-client chat.send dispatch through authority capture to the real session steering queue, observing same-grant injection and changed/revoked-grant denial before that effect. Inspected Chromium before/after images show the queue presentation; no stored-data contract changes.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P1: Reconnects can silently turn an intended steer into a follow-up, disrupting an active chat workflow.
  • merge-risk: 🚨 security-boundary: The PR changes which reconnecting callers may steer an active turn; same-grant, changed-grant, and revoked-grant final effects are covered by the new harness.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The new production-path harness drives authenticated-client chat.send dispatch through authority capture to the real session steering queue, observing same-grant injection and changed/revoked-grant denial before that effect. Inspected Chromium before/after images show the queue presentation; no stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The new production-path harness drives authenticated-client chat.send dispatch through authority capture to the real session steering queue, observing same-grant injection and changed/revoked-grant denial before that effect. Inspected Chromium before/after images show the queue presentation; no stored-data contract changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The new production-path harness drives authenticated-client chat.send dispatch through authority capture to the real session steering queue, observing same-grant injection and changed/revoked-grant denial before that effect. Inspected Chromium before/after images show the queue presentation; no stored-data contract changes.

Evidence

What I checked:

  • Current main still uses connection-bound steering identity: The fetched main revision fingerprints the operator authority key and the browser command target; it lacks the branch's grant-aware reconnect comparison. (src/auto-reply/reply/reply-tool-authority.ts:342, 619405d49ddd)
  • Latest release does not contain the change: The latest release still fingerprints the prior authority key and browser target. (src/auto-reply/reply/reply-tool-authority.ts:342, eb377ac59e6c)
  • Introduced authority comparison: The branch checks live authority, preserves bound grant identity, compares model-policy membership, and retains the active turn's browser binding. (src/auto-reply/reply/reply-tool-authority.ts:348, 3f5f70b5a47c)
  • Authenticated dispatch and final-effect proof: The new test dispatches chat.send through the registered handler and checks the real session steering queue: same-grant input enters it, while changed and revoked grants do not. The PR body reports the three cases passing and a changed-grant negative run failing when the comparison is removed. (src/gateway/server-methods/chat-send-steering-custody.test.ts:180, 3f5f70b5a47c)
  • Queue recovery and receipt reconciliation: The UI retains queued inputs independently of the displayed pending-history page and rotates exact receipt checks across server, transcript, and browser custody. (ui/src/pages/chat/chat-pending-inputs.ts:273, 3f5f70b5a47c)
  • Inspected visual proof: The prepared PR images show queued text moving from a transcript bubble to the composer queue and an attachment-only row gaining its filename. The images use synthetic data and directly support the visible presentation claim.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Shakker: Raw commit 6b4ebc0 adds src/agents/operator-model-policy.ts:20 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6b4ebc043bc8; files: src/agents/operator-model-policy.ts)

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 (4 earlier review cycles)
  • reviewed 2026-09-24T08:05:57.991Z sha 91ae6ae :: needs changes before merge. :: [P2] Keep live queued inputs visible while browsing older pending history | [P2] Give attachment-only queued inputs a visible preview
  • reviewed 2026-09-24T08:25:39.285Z sha 0663d87 :: blocked before merge. :: [P2] Keep live queued input visible while paging pending history | [P2] Show attachment-only queued inputs in the preview
  • reviewed 2026-09-24T12:19:16.588Z sha 850ae71 :: needs real behavior proof before merge. :: [P1] Keep access-grant identity in steering admission
  • reviewed 2026-09-24T13:12:37.337Z sha 2720db6 :: needs real behavior proof before merge. :: none

@steipete
steipete marked this pull request as ready for review September 24, 2026 08:12
@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components. This comment is informational because the PR author has repository Maintain or Admin access.

  • Current SHA: 3f5f70b5a47c2e1da01feb2499624aef67357eab
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/gateway/operator-run-authority.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.

Carefully review these changes before merging.

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. label Sep 24, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

The live queue now stays visible while browsing older retained inputs, including when a queued message falls outside the latest page. Exact queued receipts let the UI observe remote cancellation without resending the message. Attachment-only rows show their filenames.

The synthetic browser flow covers reconnect, history navigation, consumption, and exact-message cancellation. The first image shows the former blank attachment row; the next two show its filename and both live queued rows retained while viewing older history.

Before: attachment-only queue row is blank

After: queued attachment shows its filename

Live queue remains visible while browsing older inputs

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Sep 24, 2026
@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling plugin: workboard and removed size: M labels Sep 24, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The reviewed grant finding is fixed: bound access grants compare plugin/grant identity; null remains proven independent; undefined/unclassified grants retain the original source identity. Existing Gateway authority-capture tests prove same-grant reconnect acceptance and denial for changed grants, plugins, classifications, and revoked grants before backend injection. All six cases fail on the previous code and pass now; the focused authority/follow-up group passes 32 tests.

The final queue corrections also discover older live queued input on a fresh load and rotate bounded receipt checks across server, transcript, and browser custody. All 498 UI tests, 35 Gateway/history-tool tests, and the composer browser E2E pass. Corrected fixtures demonstrate both pre-fix failures. Current main's restart-recovery UI change is merged; an independent review of the full final diff is clean. The PR body contains the evidence and inspected, rendered screenshots.

@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The requested authenticated entry-point proof is now in chat-send-steering-custody.test.ts. It runs the actual authenticated request dispatcher, registered chat.send handler, source-authority capture, reply registry, active-session steering implementation, and persisted transcript with controlled provider streams.

All three cases pass: same-grant reconnect reaches the original runtime and records its steering target; changed-grant input never enters that runtime queue and remains an accepted follow-up; access revocation before message write prevents injection. Removing only the grant fingerprint field reproduces the defect at the final runtime effect: changed-grant text enters session.getSteeringMessages(). Exact production bytes were restored afterward.

The production fix is unchanged from the head your last review found no code defects in. This follow-up adds the entry-point proof and corrects the only failure in the completed CI run: two stale exact pending-input expectations omitted queuedCount: 0. The 12-test registered read-scope file now passes. Independent review and the Gateway test type graph are clean. The PR body includes test cost, negative proof, and the previously verified UI images.

@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 24, 2026
@steipete
steipete merged commit f9da9a5 into main Sep 24, 2026
240 of 243 checks passed
@steipete
steipete deleted the codex/steering-reconnect-queue branch September 24, 2026 14:11
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 24, 2026
* commit '9ccfc7d1bea21e34da48edbd54afd2e1be57db40': (89 commits)
  fix(exec): avoid gateway stalls during background task writes (#157177)
  test(cli): isolate preaction title setter state
  fix(test): synchronize Git backoff cancellation readiness (#157315)
  fix: validate Codex model references in Docker (#157175)
  fix(state): tolerate brief WAL coordinator contention (#157121)
  fix: unblock conversations after recovery preparation fails (#157214)
  test(telegram): avoid wall-clock pacing in HTTP conformance (#157281)
  fix: keep independent database work responsive under load (#157230)
  refactor(sqlite): centralize WAL checkpoint execution (#157263)
  improve(android): show tool outcomes in collapsed work (#156950)
  fix: remove tracked release scratch blocking source capture (#157308)
  test(update): remove legacy probe stream ordering race
  fix: preserve steering across reconnects and show queued input (#157135)
  fix(ui): keep typing focus when the GitHub reader opens (#157202)
  fix(ios): keep screenshot logs outside capture evidence
  test(codex): await startup teardown in lifecycle fixtures
  chore(ui): refresh control ui locales (#157311)
  refactor(memory): deslop memory plugins (#156867)
  refactor(test): share CLI diagnostics fixture setup (#157201)
  fix(release): retry notarization submit/wait on transport failures and name the resume command (#157116)
  ...
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
…law#157135)

* fix: preserve steering across reconnects and show queued input

* test: keep steering fixture cleanup non-mutating

* fix: keep server queue current across history navigation

* test: prove reconnect grant checks through authenticated chat
steipete added a commit that referenced this pull request Sep 27, 2026
)

* fix(chat): restore smooth scrolling in long chat sessions

Every virtualizer range change re-renders the chat pane. renderChat derives
the displayed pending-input list as a fresh array per render (since #157135),
and the chat-item cache compared it by identity, so every scroll frame
rebuilt chat items for all loaded history (tool cards, JSON parsing, schema
validation). A 7k-message session scrolled at 4-8 fps and older history
paging stalled.

Compare pending inputs entry-wise (immutable Gateway records) and memoize the
two remaining per-render history scans (async-question history and the
user-identity index in selectChatInputDisplay) per transcript array.

* fix(chat): rescan question history after live terminal outcomes

Message-less aborts and errors record their outcome beside an already
published history array (rememberLiveTerminalRun), so an array-keyed
question-history memo could keep a reminder pending after the originating run
settled. Key the memo on a live-terminal revision bumped by that owner.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 27, 2026
…claw#159294)

* fix(chat): restore smooth scrolling in long chat sessions

Every virtualizer range change re-renders the chat pane. renderChat derives
the displayed pending-input list as a fresh array per render (since openclaw#157135),
and the chat-item cache compared it by identity, so every scroll frame
rebuilt chat items for all loaded history (tool cards, JSON parsing, schema
validation). A 7k-message session scrolled at 4-8 fps and older history
paging stalled.

Compare pending inputs entry-wise (immutable Gateway records) and memoize the
two remaining per-render history scans (async-question history and the
user-identity index in selectChatInputDisplay) per transcript array.

* fix(chat): rescan question history after live terminal outcomes

Message-less aborts and errors record their outcome beside an already
published history array (rememberLiveTerminalRun), so an array-keyed
question-history memo could keep a reminder pending after the originating run
settled. Key the memo on a live-terminal revision bumped by that owner.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. plugin: workboard proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. security-sensitive-changed size: XL 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