Skip to content

fix(ui): show new-session sends immediately under load - #136069

Merged
steipete merged 6 commits into
mainfrom
codex/instant-new-session-send
Sep 2, 2026
Merged

steipete merged 6 commits into
mainfrom
codex/instant-new-session-send

Conversation

@steipete

@steipete steipete commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where sending the first prompt in the Control UI left users on an inert New Session form for seconds when the Gateway was busy. Even after creation succeeded, an uncached session could wait for another reference lookup before opening.

Why This Change Was Made

The draft-submission owner now captures and renders the submitted message, including images, synchronously. It keeps the existing admission request, idempotency identity, recoverable draft, and Gateway-owned acceptance boundary; a rejection restores the draft instead of inventing a successful session. A confirmed canonical key goes through the existing navigation handoff, with client/handshake ownership rechecked after asynchronous preparation.

Text/JSON rendering is extracted into one shared leaf so the pending preview and Chat share formatting without importing the full transcript/action/tool graph. Pending Markdown uses the canonical passive defaults until Chat mounts its interaction owners; ordinary web links and the separately wired uploaded-image lightbox remain usable. Background starts and the existing project/create/dispatch access order remain unchanged. No Gateway protocol, schema, configuration, dependency, or persistent-outbox changes.

User Impact

Send immediately shows the submitted text and image with a Starting indicator while the server is busy. The message remains visible through admission and navigation, same-scope reconnects retain the pending display, and failed creation keeps the text and attachments available to retry. Late cloud-cleanup errors remain visible beside the pending message. Pending means locally submitted, not server-accepted.

Evidence

Exact landed verification

Merged as fae30c7106b6. Its canonical UI build and regenerated manifest pass unchanged budgets: 8 startup requests / 345,652 gzip bytes, 792 verified sidecars, and all 36,606 tracked blobs/modes matching the landed tree. Fresh synthetic /new and /chat checks also pass; the real-provider image test below remains explicitly bound to 8fed. The final emitted metadata/service-worker identities and cleanup are verified. Exact-landed build and route proof.

Real Gateway and image test

Tested head: 8fed10916a779e5d7c472ee134240acb55385bf2. Both the Gateway and served Control UI were built from that exact source; the final live run used build 2026.8.1-8fed10916a77-2026-09-02T07-57-11.457Z. Used an isolated loopback Gateway, normal Control UI token login, a fresh synthetic workspace, and the real anthropic/claude-haiku-4-5 provider. Uploaded the repository's actual 180×180 PNG through the file input, together with a formatted prompt containing a table, file/session references, and an ordinary web link.

Paused only the isolated Gateway process for eight seconds immediately before Send. Starting appeared 18.5 ms after the browser click event, and the decoded image appeared after 18.6 ms, before any server acknowledgement. The single sessions.create request carried one attachment; its acknowledgement arrived 7,899 ms after the click. There was no extra reference lookup in the create-to-chat handoff and no duplicate create or chat.send.

The table and ordinary web link remained readable; the pending Markdown had zero inactive Chat-only controls. The uploaded image opened in its lightbox while creation was still pending. After resuming, the real model described the image; the accepted image decoded at 180×180, survived a full page reload, and opened again in the viewer. This is a controlled server-stall observation, not a production-throughput claim or a statistical latency benchmark.

Before: original production UI with creation held by the mocked-Gateway harness; the form stays inert.

Before: inert New Session form waiting for creation

After: the live-tested candidate against the real paused Gateway, before acknowledgement; the formatted prompt and image are already visible.

After: immediate formatted message and image before Gateway acknowledgement

After reload: real provider response and persisted image.

Real image response and attachment after reload

All captures were inspected and contain only synthetic test data. The final live source manifest matches all 18 PR blobs of 8fed10916a779e5d7c472ee134240acb55385bf2; 417 runtime files and all 28 served entry/boot/New Session assets plus the index were reverified after the live run. Retained live-proof SHA-256: 97be5d954ec95f3a1c3e47fb6c94763b243c404cc173fe3d55ef47203a990db2; served-build proof SHA-256: fba77912d3b5a3391dcfbbd93101782481348f787cc69132335b7bfcf44c0582. The live run is isolated; no production service is changed.

Regression and sibling coverage

  • The pending-message regression failed on the original implementation while sessions.create was deferred. The uncached confirmed-session case reproduced the unnecessary reference wait, and three deferred-preparation cases caught stale navigation ownership.
  • 147 browser tests / 26 New Session suites passed; all 18 PR files have identical bytes at 8fed10916a77, including decoded image pending → rejection → restored draft → retry, duplicate-click/keyboard suppression, rich Markdown interaction ownership, same-scope and changed-Gateway reconnects, uncached navigation with delayed roster/reference/startup, background starts, device placement, catalog starts, and GitHub workspace preparation.
  • 324 unit tests / 7 files passed on the integrated source for draft submission/navigation and the shared Chat renderer, Markdown, and media lifecycle.
  • The exact-current-head declaration-cache ownership/portable-relocation regression passed: 1 selected case, 10 explicitly deselected, including exact output-byte comparison and consumer compilation. The full local 11-case attempt is not claimed green: three cases passed before the canonical 120-second no-output watchdog ended it without an assertion diagnostic; no timeout or assertion was weakened.
  • The newer main-branch retained-asset I/O change was checked separately at dceb4340677: 73 tests / 5 suites passed. Current assets still serve directly, and the configured live-test root bypasses retained assets. This supplements the 8fed live proof; it does not relabel that run as a later merge.
  • Canonical production UI build and compressed-asset/startup budgets passed. The assertion ratchet exposed a moved redundant cast; it was removed and the old file's allowance was reduced, with no suppression or allowance increase.
  • The original change and initial follow-ups passed full changed-file gates. The integrated source passed format, typecheck, coercion, and dead-export stages; its obsolete full-core lint was stopped when the independent upstream test repair required a merge refresh. Final scoped lint on all 15 changed TypeScript files and the UI typecheck both pass; the regenerated manifest is verified separately through the canonical build. Final Codex autoreview found no accepted/actionable P0 findings; independent broader owner/caller/sibling review found and verified the pending-interaction repair.

The first hosted CI run found a real late-cloud-cleanup error-display regression and a route-animation observation race. The display is now owned outside the draft/pending switch; the animation test retains the real animation observation inside its existing frame sampler instead of checking after the animation has finished. Both reproduced locally, were repaired without weakening the behavior assertions, and the next revision's full CI passed. The later run 33602884792 exposed the integration and unrelated test issues described below. Final exact-head CI run 33608588519 passed for 8fed10916a779e5d7c472ee134240acb55385bf2: 153 successful jobs, 12 skipped, zero failures, including all UI shards and lint gates. GitHub had kept the PR pointer on the preceding commit after accepting the push; a single guarded close/reopen recovered the PR lifecycle and launched this run without changing source or bypassing any gate. The final run needed no retry.

Startup-cost cross-check and review decision

Related startup work #136021 has now landed on main. Before the final error-display and passive-Markdown refinements, this patch was applied cleanly to that PR's exact head (321d74e6ed4bd113d394ec996af00190f1bb2b80) in isolated scratch copies, with canonical boot manifests regenerated and both variants built. Three cold /new contexts produced identical requested/parsed source sets.

The full Chat page/pane, message group/bubble, tool cards, and widgets stayed out of /new. The formatted preview added shared Markdown/highlighting/sanitization and media code: +1 JS request and +125,348 gzip bytes (+15.3%) versus #136021 alone. That measurement belongs to the earlier candidate, not an assertion of the final candidate's exact byte delta. Both comparison builds passed their budgets, as did the final candidate's canonical build.

The integrated source now regenerates the manifest through its canonical generator, with byte-identical independent captures. On main 9e6912ca0d2 plus the preview, this removes an unintended New Session-only chunk from Chat: 44 → 43 JS requests and −39,830 gzip bytes; /new still excludes the full Chat renderer/tool/widget graph. Both grouped builds pass existing budgets.

The exact 8fed10916a77 canonical build passes unchanged limits: startup JS 8 requests / 345,591 gzip bytes (limits 18 / 349,244); largest ordinary JS chunk 214,851 / 220,160 bytes; startup CSS 1 request / 44.8 KiB (limits 1 / 45.0 KiB); largest CSS 54,783 / 54,784 bytes. All 792 precompression sidecars verify. CSS has only one byte of remaining headroom, so the exact merged-commit rebuild is particularly important.

The newer main revision c35350c92d8609d28dfcf190197ec22583e62ea3 changes three shared-menu modules. A genuine pinned merge with 8fed10916a779e5d7c472ee134240acb55385bf2 is clean (tree ce11478daa83324bfe08d4bca42b052477bd5c80), and its canonical generator reproduces the committed manifest byte-for-byte. The canonical UI build passes all existing budgets and 792 sidecars, with 8 startup JS requests / 345,592 gzip bytes. This is prospective composition proof, not a claimed live or landed commit. Three fresh /new contexts each requested and parsed 34 JS assets / 953,478 gzip bytes, with no full Chat renderer, tool-card or widget modules. /chat used 43 JS assets / 1,224,738 gzip bytes without the New Session boot group. There were no browser errors or failed/external requests. All 36,606 tracked source blobs and modes matched the pinned merged tree after generation and build.

An earlier ClawSweeper review was bound to the preceding dcb8 revision while GitHub held a stale PR head. That declaration-cache concern is resolved by retaining upstream unchanged in 8fed and running the focused current-version regression. The newer review of 8fed verifies the live behavior, reports no code/security findings, and retains the final merged-budget check. Further rebasing solely for main advancing is intentionally skipped; the pinned merged tree and hosted CI provide integration evidence, and the exact landed build is verified above.

The final pre-merge pin also verifies main 501788b8fcc8249ddcc85f2867005e7175a91b52 plus 8fed10916a779e5d7c472ee134240acb55385bf2: clean tree 55c03b181538b4cc570b00c84d8f4bdb81145cf4, unchanged canonical manifest, all 36,606 tracked blobs/modes exact, and a passing canonical UI build with 792 verified sidecars and 8 startup requests / 345,591 gzip bytes. The intervening UI changes only affect approval-card requester labels and preserve existing module membership; CSS and all other budgets still pass.

The rich-preview cost is explicitly accepted for this user-visible capability; there is no zero-growth claim. The ClawSweeper Rank-up budget check is completed in the exact-landed verification above. No budget limits are relaxed.

The review's stored-data-model heuristic does not describe a persistence change: existing JSON parsing was moved with the collapsed message-display renderer. It does not read or write a store, change serialized state, or touch SQLite/schema/migration/protocol code.

Integration fixes found by CI

The CI merge tree exposed the combined page exceeding its size gate by one line; sharing its existing image-viewer callbacks repairs that without raising the limit. A declaration-cache fixture failure was reproduced on unmodified main and repaired independently upstream while this PR was being prepared. The upstream version is retained unchanged; that duplicate test repair is not part of this PR. A dependency-download connection reset occurred before one lint stripe could start. The unrelated dashboard-reload case passed unchanged both alone and in the original local shard; the original CI failure remains unreproduced, not claimed fixed or hidden by a speculative patch. The local shard hit a different pre-existing click timeout, so it is not reported as an entirely green shard.

Scope and follow-ups

Production delta is +180 lines, tests +243, generated boot-manifest data +2, docs +2, and the assertion-baseline change is net zero. Pure renderer/access-policy moves are not new behavior. The growth provides the immediate readable pending surface and lifecycle-bound handoff; the old submission boolean, duplicate reference wait, and former text-rendering location are removed rather than retained as parallel flows.

Named adjacent follow-ups, not claimed fixed here: profile the full session-index load/clone during Gateway creation before attributing throughput cost; investigate dynamic-route preloading's exact-route matcher; reproduce the existing background-start choice recovery edge across reconnect before changing that contract. These do not weaken the live-tested foreground send repair.

Render the submitted prompt and attachments from the draft owner's frozen
snapshot before session admission finishes. Keep Gateway acceptance, retries,
and recoverable draft state unchanged, then hand the confirmed key to Chat
without an extra reference lookup or stale-client navigation.

Share canonical text and JSON rendering without pulling the full transcript
and tool graph into New Session. Cover delayed creation, image recovery,
reconnect ownership, and uncached navigation; verify a real image-bearing
send while an isolated Gateway is stalled for eight seconds.
@clawsweeper

clawsweeper Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: XL maintainer Maintainer-authored PR labels Sep 2, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. 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 2, 2026
@clawsweeper

clawsweeper Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 2, 2026, 4:33 AM ET / 08:33 UTC.

ClawSweeper review

What this changes

The PR immediately shows a submitted New Session prompt and attachments with a Starting indicator while the Gateway creates the session, then hands the confirmed session to Chat without an extra lookup.

Regression provenance

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

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep this maintainer-owned PR open for the final current-main merge validation. The pending preview and handoff implementation are coherent, and the supplied exact-head real-Gateway evidence plus focused browser coverage support the repair; the remaining required check is the canonical build and route-budget result for the exact rebased merge.

Priority: P1
Reviewed head: 8fed10916a779e5d7c472ee134240acb55385bf2

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has strong targeted real-flow evidence and owner-boundary coverage; final current-merge route-budget validation remains material.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The changed production owner is the New Session draft flow, exercised in the PR’s exact-head isolated Control UI/Gateway run with a deliberately paused Gateway; the supplied before/after captures and reported trace show the prompt and decoded image appearing before acknowledgement, then a real provider response and successful reload.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The changed production owner is the New Session draft flow, exercised in the PR’s exact-head isolated Control UI/Gateway run with a deliberately paused Gateway; the supplied before/after captures and reported trace show the prompt and decoded image appearing before acknowledgement, then a real provider response and successful reload.
Evidence reviewed 8 items Pending-state owner: The draft submission freezes a local user-message snapshot and requests an update before the first awaited Gateway admission call, while the underlying draft remains intact until successful completion.
Visible pending presentation: The New Session renderer switches to the pending body only when that snapshot exists; the body renders the message, attachments, and Starting status, while retaining errors outside the switch.
Safe no-lookup handoff: Before navigating, the change verifies the same client, handshake, selected session, and agent, then carries the confirmed key into the existing short-route cache; the consumer accepts it only when connection identities still match.
Findings None None.
Security None None.

How this fits together

The Control UI’s New Session page collects a draft, asks the Gateway to create or adopt a session, and then opens Chat. This change inserts a local, recoverable pending-message view during Gateway admission while retaining server-side acceptance as the source of truth.

flowchart LR
  A[New Session draft] --> B[Foreground submit]
  B --> C[Pending message preview]
  C --> D[Gateway session creation]
  D --> E[Validated navigation handoff]
  E --> F[Session chat]
Loading

Before merge

  • Resolve merge risk (P1) - The generated boot manifest now admits shared Markdown and media code to the New Session route, and the supplied exact-head CSS build has one byte of budget headroom; current main has advanced, so its prior budget result is not proof for the final merge.
  • Complete next step (P2) - Rebase once onto current main and record the canonical Control UI build plus exact merged New Session route-budget results before merge.
Agent review details

Security

None.

PR surface

Source +182, Tests +243, Docs +2, Other 0. Total +427 across 18 files.

View PR surface stats
Area Files Added Removed Net
Source 10 606 424 +182
Tests 6 320 77 +243
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 1 0
Total 18 929 502 +427

Review metrics

Metric Value Why it matters
Production versus test delta production +180, tests +243, generated manifest +2, docs +2 The production growth implements a new visible pending surface and route handoff; its exact merged startup cost needs the required final budget check.

Stored data model

Persistent data-model change detected: serialized state: ui/src/pages/chat/components/chat-message-text.ts, unknown-data-model-change: ui/src/pages/chat/components/chat-message-text.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Verify the exact merge (recommended)
    Rebase once onto current main and record the canonical build plus exact merged New Session route-budget outputs before merging.
  2. Accept the stale measurement
    Merge using the pinned-base test-merge evidence while explicitly accepting that its asset-budget result does not cover current main.

Technical review

Best possible solution:

Rebase once onto current main, retain the frozen draft-owned preview and connection-validated handoff, then record the canonical Control UI build and exact merged New Session route-budget result before merge.

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

Yes. The focused browser test defers sessions.create and observes the pending message before resolution, and the supplied exact-head isolated Gateway run reports the same stalled-admission behavior with an uploaded image.

Is this the best way to solve the issue?

Yes. Keeping the snapshot in the draft-submission owner makes the unacknowledged state visible without claiming Gateway acceptance, while the existing route handoff avoids the redundant lookup and revalidates connection ownership.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 771ffac8619c.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The changed production owner is the New Session draft flow, exercised in the PR’s exact-head isolated Control UI/Gateway run with a deliberately paused Gateway; the supplied before/after captures and reported trace show the prompt and decoded image appearing before acknowledgement, then a real provider response and successful reload.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P1: This repairs a foreground Control UI send path that otherwise leaves the user without immediate visible submission feedback while the Gateway is busy.
  • merge-risk: 🚨 other: The PR changes generated route boot inputs and has extremely tight reported CSS budget headroom, which must be revalidated on the exact current merge.
  • 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 (linked_artifact): The changed production owner is the New Session draft flow, exercised in the PR’s exact-head isolated Control UI/Gateway run with a deliberately paused Gateway; the supplied before/after captures and reported trace show the prompt and decoded image appearing before acknowledgement, then a real provider response and successful reload.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed production owner is the New Session draft flow, exercised in the PR’s exact-head isolated Control UI/Gateway run with a deliberately paused Gateway; the supplied before/after captures and reported trace show the prompt and decoded image appearing before acknowledgement, then a real provider response and successful reload.

Evidence

What I checked:

  • Pending-state owner: The draft submission freezes a local user-message snapshot and requests an update before the first awaited Gateway admission call, while the underlying draft remains intact until successful completion. (ui/src/pages/new-session/draft-submission-flow.ts:432, 8fed10916a77)
  • Visible pending presentation: The New Session renderer switches to the pending body only when that snapshot exists; the body renders the message, attachments, and Starting status, while retaining errors outside the switch. (ui/src/pages/new-session/draft-composer.ts:32, 8fed10916a77)
  • Safe no-lookup handoff: Before navigating, the change verifies the same client, handshake, selected session, and agent, then carries the confirmed key into the existing short-route cache; the consumer accepts it only when connection identities still match. (ui/src/pages/new-session/started-session-navigation.ts:59, 8fed10916a77)
  • Focused browser coverage: The changed E2E defers session creation, asserts the visible pending prompt and Starting indicator before resolution, and confirms Chat opens with zero sessions.resolve calls while roster/reference work remains held. (ui/src/e2e/new-session-page.transition.e2e.test.ts:288, 8fed10916a77)
  • Exact-head real behavior proof: The PR body records an isolated, token-authenticated Control UI against a paused real Gateway and provider at this head: the preview and decoded image appeared before the sessions.create acknowledgement, followed by successful session navigation and reload. (8fed10916a77)
  • Verified merge context: The host-provided test merge has the pinned main parent followed by this exact head and includes all 18 introduced files, so it establishes the three-way result against the pinned base. (4701ccbed8f2)

Likely related people:

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

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Rebase once onto current main and add the canonical build and exact merged New Session budget result.

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 (6 earlier review cycles)
  • reviewed 2026-09-02T06:54:25.580Z sha 257cb9c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T07:07:56.802Z sha 2b80df4 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T07:29:12.686Z sha ebbc647 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T07:49:56.611Z sha dcb8ded :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T08:09:14.034Z sha dcb8ded :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T08:23:01.941Z sha dcb8ded :: needs maintainer review before merge. :: none

Keep submission errors in the shared New Session body so late cloud cleanup
failures stay visible while a replacement task is starting. Preserve the
replacement recovery identity and its existing dispatch/send flow.

Retain route-animation observations from the browser render loop rather
than polling after an RPC, which can miss the completed 180ms animation.
Extend the existing cloud recovery case to prove that the alert, pending
prompt, and Starting indicator remain visible together.
Use canonical passive Markdown defaults until Chat mounts its workspace,
session, table, and inline-image interaction owners. Preserve normal web
links and the separately wired uploaded-image lightbox while admission waits.

Extend the existing delayed image-submit regression to cover rich text,
raw reference retention, pending attachment opening, and interactive table
controls after the accepted-session handoff.
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 2, 2026
Use one page-owned image selection callback for both New Session surfaces
and their lightbox close path. This preserves behavior while keeping the
combined page within its existing size gate after the startup work on main.
Merge the current main snapshot to incorporate the landed startup graph
split, then regenerate the canonical boot manifest. Shared preview modules
must not pull New Session-only code into Chat; the measured regeneration
removes that extra route load without relaxing asset budgets.

Also repair the existing SDK declaration-cache relocation fixture exposed
by main's combined packaging changes. Seed historical shared-root chunks
from both production and QA selections while retaining exact restored-tree
and byte equality. No declaration writer or cache ownership changes.
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. label Sep 2, 2026
Merge the current main snapshot and resolve the concurrent fixture change
in favor of main. The duplicate SDK test repair is no longer part of this
PR; all eighteen UI, documentation, and generated-metadata files retain the
exact bytes already exercised by the browser and unit tests.
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Sep 2, 2026
@steipete steipete closed this Sep 2, 2026
@steipete steipete reopened this Sep 2, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 2, 2026
@steipete
steipete merged commit fae30c7 into main Sep 2, 2026
215 checks passed
@steipete
steipete deleted the codex/instant-new-session-send branch September 2, 2026 08:46
@steipete

steipete commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@steipete

steipete commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

Landed through the native workflow as fae30c7106b6. The tested source head 8fed10916a77 passed CI run 33608588519: 153 successful jobs, 12 skipped, no failures.

The canonical UI build at the exact landed commit passes all unchanged limits: 8 startup JS requests / 345,652 gzip bytes against 18 / 349,244; largest CSS 54,783 / 54,784 bytes; all ordinary JS, startup CSS and deferred Mermaid limits pass. All 792 precompression sidecars verify. Canonical generation reproduces the committed boot manifest byte-for-byte, and all 36,606 tracked source blobs and modes match landed tree 004095f065e12c7b74691855f0bb429ac3f02049. No post-merge repair or budget increase was needed.

A fresh synthetic route check at the same landed commit loaded 34 JS assets / 953,557 gzip bytes on /new and 43 / 1,224,852 on /chat. New Session did not load the full Chat renderer, and Chat did not load the New Session boot group. There were no browser errors, failed requests or unexpected external traffic. Emitted UI metadata and the service worker share the exact commit-bound build identity. All owned test processes exited and disposable caches were removed.

The real-provider image test remains correctly labeled 8fed: text at 18.5 ms, decoded 180×180 image at 18.6 ms, successful creation acknowledgement at 7.899 s during an eight-second Gateway pause. One creation request, working pending/reloaded lightboxes, and a real model response were verified. Temporary Gateway processes and credentials were removed; no production service was redeployed.

steipete added a commit that referenced this pull request Sep 2, 2026
Keep Chat-only Markdown options at their sole call site, remove repetitive parsing comments, and use the image locator callback type directly without changing image assertions.

Maintainer-requested cleanup following #136069. Preserve immediate pending text and image previews, accepted-session interactions, and all retry and reconnect behavior.
steipete added a commit that referenced this pull request Sep 2, 2026
Keep Chat-only Markdown options at their sole call site, remove repetitive parsing comments, and use the image locator callback type directly without changing image assertions.

Maintainer-requested cleanup following #136069. Preserve immediate pending text and image previews, accepted-session interactions, and all retry and reconnect behavior.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 3, 2026
* fix(ui): show new-session sends immediately under load

Render the submitted prompt and attachments from the draft owner's frozen
snapshot before session admission finishes. Keep Gateway acceptance, retries,
and recoverable draft state unchanged, then hand the confirmed key to Chat
without an extra reference lookup or stale-client navigation.

Share canonical text and JSON rendering without pulling the full transcript
and tool graph into New Session. Cover delayed creation, image recovery,
reconnect ownership, and uncached navigation; verify a real image-bearing
send while an isolated Gateway is stalled for eight seconds.

* fix(ui): preserve startup errors during pending sends

Keep submission errors in the shared New Session body so late cloud cleanup
failures stay visible while a replacement task is starting. Preserve the
replacement recovery identity and its existing dispatch/send flow.

Retain route-animation observations from the browser render loop rather
than polling after an RPC, which can miss the completed 180ms animation.
Extend the existing cloud recovery case to prove that the alert, pending
prompt, and Starting indicator remain visible together.

* fix(ui): avoid inactive controls in pending prompts

Use canonical passive Markdown defaults until Chat mounts its workspace,
session, table, and inline-image interaction owners. Preserve normal web
links and the separately wired uploaded-image lightbox while admission waits.

Extend the existing delayed image-submit regression to cover rich text,
raw reference retention, pending attachment opening, and interactive table
controls after the accepted-session handoff.

* refactor(ui): share pending and draft image viewer callbacks

Use one page-owned image selection callback for both New Session surfaces
and their lightbox close path. This preserves behavior while keeping the
combined page within its existing size gate after the startup work on main.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 3, 2026
Keep Chat-only Markdown options at their sole call site, remove repetitive parsing comments, and use the image locator callback type directly without changing image assertions.

Maintainer-requested cleanup following openclaw#136069. Preserve immediate pending text and image previews, accepted-session interactions, and all retry and reconnect behavior.
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 docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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