Skip to content

fix: new session URLs stay ID-only until reload - #185454

Merged
roboclaw-bot merged 14 commits into
mainfrom
openclaw/sharp-prawn
Oct 27, 2026
Merged

roboclaw-bot merged 14 commits into
mainfrom
openclaw/sharp-prawn

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes new conversations keeping an ID-only URL after their generated title arrives, until the browser is reloaded.

User Impact

The open conversation gets a descriptive URL without reloading, losing an unsent draft, or adding a browser-history entry. Query parameters, message anchors, dashboard/chat faces, short-reference lengths, and newer navigation are preserved. Prepared or cached conversations still wait for authoritative identity confirmation before their URL changes or queued messages are sent.

Why This Change Was Made

The session observer updated the tab title but did not notify the navigation owner. URL synchronization now uses the same live name presentation and the already committed session identity. The route loader keeps ownership while navigation, prepared identity, or snapshot admission is pending. A successful confirmation that needs no URL change revalidates that loader receipt so later title updates remain available. This preserves the intent of #149070.

Reported by @steipete.

Work sessions

Evidence

  • The production-browser URL regression fails before the fix; two live-presentation owner cases and the no-op-confirmation browser case also fail before their repairs. Existing prepared-identity and snapshot/outbox scenarios exposed premature canonicalization in CI and now pass without weakened assertions.
  • After both notification repairs, all 18 focused Chromium title/prepared-identity/snapshot scenarios pass. Seven additional selected sidebar scenarios pass: six geometry states and the existing Settings/persistence journey. Drafts, document time origin, browser-history length, and transcript-read counts remain covered. The upstream catalog-hover contract passed after the required main conflict refresh.
  • CI exposed duplicate deleted-session recovery when only URL eligibility changed. The shell now refreshes that projection without replaying recovery; initial connection remains unconditional. An additional red/green regression proves unchanged router notifications no longer invalidate the shell. All 76 affected owner tests pass, including reconnect initialization and exact single-replacement recovery.
  • Focused navigation, tab-title, deletion, route-loader and split-page owner tests pass. UI, UI-app-test and UI-E2E-test typechecks, targeted lint/format, style lint and whitespace checks pass. A CI-discovered typed Gateway fixture was completed; its owning typecheck and integration test pass.
  • Independent P0–P2 review of the complete candidate, with router implementation, found no actionable defects. Both incremental notification repairs received full-owner independent review. No new timers, event listeners or session-state stores were introduced.
  • The catalog-opacity baseline defect was independently fixed upstream by #185473. This PR keeps the exact main stylesheet; no CSS delta remains. Historical baseline investigation and images.
Investigated failures and proof limits

An extended sibling run passed 13 of 14 scenarios; the native-catalog older-page case displaced its painted anchor by 44 px. One unmodified run on baseline 20ef85f3acde0e2783c096f0dcd94c6520f3ccdc independently reproduced the identical anchor, size and 44 px displacement. The relevant virtualizer, history-boundary and paint-probe sources are unchanged. The exact faulty ordering is not isolated; this is retained as preexisting, not claimed fixed or hidden by a passing replay. The same signature appears in cf4285c2 CI and eda84ef1 CI.

The completed eda84ef run also failed Settings sidebar reopening and session-row alignment, while its owning unit checks passed. A bounded local eda replay passed all six alignment states but failed earlier in the Settings journey. One untouched-main d884 baseline replay passed all seven selected cases. Their tests/styles are unchanged and use non-short routes, but this does not establish their failure cause or qualify them as fixed. The no-op notification defect was separately proven red/green at the shell boundary; the passing sidebar replay after that repair is not claimed as a causal fix. No retries, weaker assertions or CI reruns are used to hide these failures. The new head must satisfy required CI before landing.

Browser evidence uses the real production frontend with synthetic Gateway I/O, not the deployed Team service. There is no rendered-appearance change or deployment in the final feature delta.

Worked on by

roboclaw-bot and others added 2 commits October 27, 2026 04:01
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 5bc39a5a-8b9e-4532-ad41-7a2af70bc1c7
@clawsweeper

clawsweeper Bot commented Oct 27, 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 size: S labels Oct 27, 2026
roboclaw-bot and others added 2 commits October 27, 2026 04:38
Preserve stable session names and the updated title-preparation contract while retaining in-place URL synchronization. Refreshed production-browser and focused shell proof passed.

Co-authored-by: steipete <[email protected]>
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: f4a618e5-54cb-445c-af79-b9e7f74d7017
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 27, 2026 04:39
Implement the newly required session URL synchronization operation in the typed Gateway fixture. Preserve all retained-pane auth-selection assertions.

Co-authored-by: steipete <[email protected]>
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 27, 2026
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: cd4cd35f-33d6-413a-8ab4-8bf991282e05
@openclaw-barnacle openclaw-barnacle Bot added the gateway Gateway runtime label Oct 27, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 27, 2026
@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Updates the open conversation’s URL when its title arrives while preserving drafts, browser history, and pending identity resolution.

Example: A new conversation receives the title “Node version requirements.”

  • Before: /chat/main/12345678123442348234123456789abc remains unchanged until reload.
  • After: /chat/main/node-version-requirements-12345678123442348234123456789abc appears without reloading or losing the unsent draft.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch addresses the prior findings and preserves route ownership; validation is supported by browser-harness reports, with exact-head CI still running.
Proof confidence 🦐 gold shrimp (3/6) This collaborator-authored PR is outside the ordinary contributor proof gate; its reported browser regressions exercise the production frontend with synthetic Gateway I/O, while the inspected images document earlier changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A newly named conversation retains an opaque ID-only address until the browser is reloaded.
Reason: The maintainer-authored direction restores descriptive URLs without introducing settings or competing state owners.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it fixes a current URL-update bug, and source review finds both prior findings addressed without new actionable defects. Exact-head CI remains pending.

Priority: P2
Reviewed head: cf4285c2ccb45172c9ebb714f1c64df43facb5d9

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied validation exercises the production frontend with synthetic Gateway I/O; no current-change real-Gateway URL-update capture is supplied.
Agent review details

How this fits together

The Control UI receives session title publications from the Gateway; its navigation owner combines the live title with the route loader’s committed session identity to replace the browser URL.

flowchart LR
  A[Gateway session publication] --> B[Session presentation]
  B --> C[Shell navigation owner]
  D[Route loader identity] --> C
  C --> E[Connection scoped handoff]
  E --> F[Router URL replacement]
  F --> G[Retained chat pane]
Loading

Technical review

Best possible solution:

Use the existing navigation owner to update settled conversation URLs while the route loader retains provisional identity ownership.

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

Current-main source shows title publications reaching tab-title synchronization without URL synchronization, and the PR supplies a focused red/green browser regression report; no target code was executed during this review.

Is this the best way to solve the issue?

The patch is a focused repair using existing presentation, navigation, handoff, and loader owners; its additional admission checks preserve the previously established prepared-route contract.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Stable session identity and descriptive paths keeps the original intent (cca5b14: Readable session paths use stable session keys so presentation titles can change without changing conversation identity.)
  • Prepared short-route canonicalization keeps the original intent (dcd9015: Prepared identity permits early drafting while ordinary resolution retains ownership of compatible URL canonicalization.)
  • Deferred chat-page replacement keeps the original intent (58a7c26: Chat-page lifecycle work preserves retained panes, drafts, and route ownership across asynchronous completion.)
  • Shell navigation ownership keeps the original intent (69f7919: Shell callers use the existing navigation capability directly instead of forwarding through duplicate methods.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit dcd9015 adds ui/src/pages/chat/route-loader.ts:516 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: dcd90156c055; files: ui/src/pages/chat/route-loader.ts)

PR surface

Source +63, Tests +148, Docs +1. Total +212 across 10 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 76 13 +63
Tests 4 155 7 +148
Docs 1 2 1 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 233 21 +212

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove merge-risk: 🚨 session-state: Current PR review selected no merge-risk labels.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: The stale descriptive URL is a limited Control UI usability bug; the conversation remains usable.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

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

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-27T05:08:47.036Z sha c2a57bb :: needs changes before merge. :: [P2] Preserve pending identity resolution before replacing a prepared URL | [P2] Repair the failing new-session URL regression

Reviewed October 27, 2026, 1:41 AM ET / 05:41 UTC (Revision 2).

roboclaw-bot and others added 2 commits October 27, 2026 05:21
Read live names from the existing presentation roster, defer URL replacement to pending navigation and prepared/snapshot identity owners, and revalidate successful no-op confirmations. Preserve the established prepared-route and restored-outbox contracts. Scope the baseline toolbar CSS rule so catalog controls hide correctly away from hover or keyboard focus.

Co-authored-by: steipete <[email protected]>
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 16230a44-f6de-47a6-9720-7769aeb65431
@roboclaw-bot

roboclaw-bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator Author

Baseline catalog-header investigation — fixed upstream

The catalog opacity failure reproduces on unmodified main 20ef85f3acde0e2783c096f0dcd94c6520f3ccdc. It was independently fixed upstream by #185473, commit f25963e887378e23419c3feb1a0e2cc44665eb67. This PR now inherits that exact main stylesheet and removes its duplicate CSS delta. No catalog appearance change remains in this feature diff.

The images below retain the earlier baseline investigation: an equivalent toolbar-scoped local candidate rendered in the actual production frontend with synthetic catalog data, light theme, and a 1440×900 viewport. Before restores only the original four-declaration CSS rule; After removes that override. The Sessions status control remains visible. These are historical baseline evidence, not a separate proposed visual change.

Before

Before: catalog controls leak into the resting header

After

After: catalog controls hide until hover or keyboard-visible focus

roboclaw-bot and others added 2 commits October 27, 2026 05:33
Keep the exact main stylesheet from #185473 and remove the duplicate CSS delta. Preserve the reviewed URL-admission fix. The refreshed candidate passes19 focused title, prepared identity, snapshot/outbox and catalog-hover browser cases plus UI typecheck and targeted lint.

Co-authored-by: steipete <[email protected]>
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: e61b9177-46c3-488c-8155-430991981110
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 27, 2026
roboclaw-bot and others added 4 commits October 27, 2026 05:49
Keep route-semantic equality separate from URL eligibility. Refresh the latter without replaying deleted-session recovery, while preserving unconditional connection initialization. Cover deletion recovery before and after reconnect.

Co-authored-by: steipete <[email protected]>
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 0846ddc1-e0a8-4ae5-8eaf-07f448ab9fd2
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: a37d5274-3ece-4431-ba8e-153ebec80b10
@roboclaw-bot
roboclaw-bot merged commit 59c7f75 into main Oct 27, 2026
122 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/sharp-prawn branch October 27, 2026 06:21
steipete added a commit that referenced this pull request Oct 27, 2026
Settle matching prepared route confirmation through its existing canonical location and ordinary replacement. Preserve draft consumption and live title updates without reloading the confirmed session.

Release-note context: canonical short chat URLs keep early history and composer readiness while issuing one session resolution. Related: #185454.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 28, 2026
Settle matching prepared route confirmation through its existing canonical location and ordinary replacement. Preserve draft consumption and live title updates without reloading the confirmed session.

Release-note context: canonical short chat URLs keep early history and composer readiness while issuing one session resolution. Related: openclaw#185454.
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 gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M 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