Skip to content

fix(ui): preserve session identity across generated links - #150242

Merged
steipete merged 10 commits into
mainfrom
codex/qa-sessions-search-identity
Sep 18, 2026
Merged

steipete merged 10 commits into
mainfrom
codex/qa-sessions-search-identity

Conversation

@steipete

@steipete steipete commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Selecting an exact conversation from Sessions, Worktrees, or Tasks can open “Choose a session” when two UUIDs share their first eight characters and their display names do not disambiguate them. A literal link can also open correctly, then become ambiguous after canonicalization and reload.

User Impact

The UI generates session links with the full UUID by default and preserves it through opening, copying, and reloading. Existing shorter links and explicit prefix choices remain supported; no configuration or migration is required.

Why This Change Was Made

The UI knew the full identity but its shared path adapter defaulted to eight UUID characters. The adapter now emits all 32 characters by default, covering navigation, canonicalization, and released session-query migration together. The public URL package, accepted grammar, resolver, and connection-scoped navigation handoffs stay unchanged. This removes the Sessions-specific prefix overrides and keeps one owner for UI link generation.

Evidence

The original defect reproduced in Sessions, Worktrees, and Tasks with UUIDs sharing an eight-character prefix; literal-link canonicalization also lost the selected identity after reload. The repaired UI defaults to full UUID identity while preserving explicit shorter-prefix requests and the public URL grammar.

Feature proof passes 22 browser cases and 795 focused owner/public URL-contract tests. Subsequent integration proof passes 195 owner/helper tests and 21 bundled-browser identity/history cases. Broader fixture alignment passes 448 owner cases and 48 browser cases. These are separate historical runs, not additive coverage counts. Production UI, UI-pages, UI-E2E and UI-other types, scoped typed lint, formatting, translation and documentation checks passed on the reviewed changes.

CI35310013985 passed on integrated head 2cc4cee5d17e32b19f6c0799eedada257e3dda14. The next integration at 80d5dee04206b3a36670a55ece9c093d2ef397d0 passed 81 planner and 27 focused identity tests, but CI35313813667 encountered the independently recurring inactive-agent outbox timeout in UI E2E shard 8; 228 other cases in that shard passed.

Head c77bb7297c0d7ecf0cf5644fb45d23a7b4c4d42c incorporated upstream #151567's reconnect-loop repair. Its CI35323773031 passed all UI E2E and real-Gateway jobs, including the previously failing outbox shard, but encountered three shared QA tooling failures. The Mantis contract repairs landed in #151632 and the cancellation PID-publication fixture repair landed in #151642.

Current head 0b7a7351da0488ebde15ebd905f2b44d21cc796a normally merges main 8a8ecf114bdafb0cd0d8d415e96b37768b095677, including both shared repairs. All three identity product implementation blobs and the helper's session-path function remain unchanged. Fresh integration checks pass 60 navigation/app-host cases and 10 canonical child-query/deferral cases. The integrated fixture API now requires a record predicate; the identity test passes the existing shared predicate. The UI-pages compiler reproduced the missing argument before this correction and passes afterward, as do both identity regression cases, scoped typed lint, formatting, and diff checks. Fresh isolated P0–P2 review is clean (confidence 0.92). Exact-head CI35331086260 passed, including all 13 UI E2E shards, the real-Gateway suite, and all three previously failing shared jobs. Workflow Sanity also passed on this head.

Main's #149700 now owns child-session filtering in the shared mock and settles the startup description read before measuring streaming. This integration removes the obsolete per-case empty-child override and uses main's complete stream-budget test byte-for-byte, leaving 24 files in the feature diff. No workload, threshold, timing, or assertion is weakened.

Browser behavior proof uses the bundled UI with synthetic Gateway data and does not establish live-provider behavior. All six inspected before/after screenshots were visibly delivered in the originating chat, uploaded here, and verified rendering on the PR page in signed-in Chrome.

Sessions

Before: the selected search result opens an ambiguous chooser.

Before: selected result opens the session chooser

After: the selected transcript remains open after reloading its link.

After: Sessions search transcript after reload

Worktrees

Before: clicking the selected owner opens the chooser.

Before: Worktrees owner opens an ambiguous chooser

After: the selected owner's transcript remains open after reload.

After: Worktrees owner transcript after reload

Tasks

Before: clicking the selected session opens the chooser.

Before: Tasks session opens an ambiguous chooser

After: the selected session's transcript remains open after reload.

After: Tasks session transcript after reload

@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 18:58
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Sep 16, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. labels Sep 16, 2026
@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 18, 2026, 5:56 AM ET / 09:56 UTC (Revision 14).

ClawSweeper review

What this changes

The Control UI generates full-UUID session links and adds documentation and regression coverage to preserve the selected conversation through navigation and reloads.

Merge readiness

✅ Ready for maintainer review

This fix remains necessary: current main and the latest release retain the ambiguous eight-character default. No blocking correctness findings remain, and the previous conflict concern is resolved by the latest integration.

Priority: P2
Reviewed head: 0b7a7351da0488ebde15ebd905f2b44d21cc796a

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A compact owner-level repair with strong browser evidence, compatibility coverage, and no actionable correctness findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The shared UI URL adapter is exercised through bundled-browser session navigation and reloads with synthetic Gateway data; inspected Sessions and Worktrees screenshots show the chooser replaced by the intended transcript, supported by identity-specific browser assertions and reported runs. This establishes the UI behavior, not live-provider behavior.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The shared UI URL adapter is exercised through bundled-browser session navigation and reloads with synthetic Gateway data; inspected Sessions and Worktrees screenshots show the chooser replaced by the intended transcript, supported by identity-specific browser assertions and reported runs. This establishes the UI behavior, not live-provider behavior.
Evidence reviewed 9 items Focused production repair: The UI adapter supplies 32 only when no explicit prefix length was requested. The shared public URL package and resolver remain unchanged.
Still needed on current main: Fetched main still forwards an unspecified prefix length; the underlying URL builder defaults that value to eight characters.
Latest release comparison: The same unspecified-prefix behavior exists in v2026.9.4; this review does not identify a shipped replacement for the proposed fix.
Findings None None.
Security None None.

How this fits together

The Control UI turns session selections from Sessions, Worktrees, Tasks, and other views into browser URLs. The shared URL adapter feeds the existing route resolver, which selects the conversation and loads its transcript or dashboard.

flowchart TD
  A[Session selection] --> B[Shared UI link builder]
  B --> C[Full UUID URL]
  C --> D[Existing session resolver]
  E[Previously shared short URL] --> D
  D --> F[Selected transcript or dashboard]
  D --> G[Chooser for ambiguous short links]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -3, Tests +620, Docs +6. Total +623 across 24 files.

View PR surface stats
Area Files Added Removed Net
Source 3 8 11 -3
Tests 19 667 47 +620
Docs 2 7 1 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 24 682 59 +623

Review metrics

Metric Value Why it matters
Production versus regression coverage Production −3 net lines; tests and test support +620 net lines The fix changes the existing link-generation owner without production growth; added coverage exercises collisions and reload identity across navigation surfaces.

Technical review

Best possible solution:

Keep full UUID generation in the shared UI adapter while retaining the existing resolver, literal-key handling, and explicit shorter-prefix contract.

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

Yes: select sessions with matching eight-character UUID prefixes and non-disambiguating titles, then open or reload their generated links. Current-main source establishes the truncation path; supplied before/after browser evidence corroborates it, but this review did not execute a reproduction.

Is this the best way to solve the issue?

Yes: changing the existing UI adapter's default repairs navigation and canonicalization together without adding another resolver or changing the public URL grammar.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This repairs a bounded session-navigation failure when UUID prefixes collide, without evidence of a broader runtime outage.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The shared UI URL adapter is exercised through bundled-browser session navigation and reloads with synthetic Gateway data; inspected Sessions and Worktrees screenshots show the chooser replaced by the intended transcript, supported by identity-specific browser assertions and reported runs. This establishes the UI behavior, not live-provider behavior.
  • proof: sufficient: Contributor real behavior proof is sufficient. The shared UI URL adapter is exercised through bundled-browser session navigation and reloads with synthetic Gateway data; inspected Sessions and Worktrees screenshots show the chooser replaced by the intended transcript, supported by identity-specific browser assertions and reported runs. This establishes the UI behavior, not live-provider behavior.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The shared UI URL adapter is exercised through bundled-browser session navigation and reloads with synthetic Gateway data; inspected Sessions and Worktrees screenshots show the chooser replaced by the intended transcript, supported by identity-specific browser assertions and reported runs. This establishes the UI behavior, not live-provider behavior.

Evidence

What I checked:

  • Focused production repair: The UI adapter supplies 32 only when no explicit prefix length was requested. The shared public URL package and resolver remain unchanged. (ui/src/app-session-path-builder.ts:28, 0b7a7351da04)
  • Still needed on current main: Fetched main still forwards an unspecified prefix length; the underlying URL builder defaults that value to eight characters. (ui/src/app-session-path-builder.ts:28, 634c56a56aaf)
  • Latest release comparison: The same unspecified-prefix behavior exists in v2026.9.4; this review does not identify a shipped replacement for the proposed fix. (ui/src/app-session-path-builder.ts:28, 3a9d69db306c)
  • Compatibility and implementation boundary: The repository-owned session URL package already supports 8–32 hexadecimal characters and exact literal keys. Explicit prefix coverage includes 8, 12, and 32 characters; route canonicalization preserves an incoming short reference's length. No Codex runtime or protocol dependency is involved. (packages/session-url-contract/src/index.ts:112, 0b7a7351da04)
  • Browser regression coverage: The new browser scenarios exercise colliding UUID prefixes, identical titles, uncached sessions, copied links, dashboard preferences, and reloads. Assertions check the selected transcript and Gateway request identity while rejecting requests for the other session. Tests were inspected, not executed during this read-only review. (ui/src/e2e/sessions-navigation-identity.e2e.test.ts:40, 0b7a7351da04)
  • Inspected visual proof: Inspected all four prepared images: Sessions and Worktrees each show the ambiguous chooser before and the intended synthetic transcript afterward. The captured body associates the after images with reloads and reports browser execution against the bundled UI with synthetic Gateway data. Tasks images are linked in the body but were not included in the prepared manifest. Captured context identity: 0eb1898a66c97db822cb48b2b4a30d183c1d35122c68bfbe39d13bef4d5607ea.

Likely related people:

  • Peter Steinberger: 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 (13 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-18T04:40:24.531Z sha 4890665 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-18T04:54:40.499Z sha 49bf03c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-18T05:04:59.632Z sha 5705d22 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-18T05:22:23.771Z sha 2cc4cee :: needs maintainer review before merge. :: none
  • reviewed 2026-09-18T06:33:51.951Z sha 80d5dee :: blocked before merge. :: none
  • reviewed 2026-09-18T08:29:32.215Z sha c77bb72 :: blocked before merge. :: none
  • reviewed 2026-09-18T08:43:35.741Z sha c77bb72 :: needs changes before merge. :: none
  • reviewed 2026-09-18T08:56:41.595Z sha c77bb72 :: blocked before merge. :: none

@steipete
steipete marked this pull request as draft September 16, 2026 19:46
@steipete steipete changed the title fix(ui): preserve session identity in Sessions links fix(ui): preserve session identity across generated links Sep 16, 2026
@steipete
steipete marked this pull request as ready for review September 16, 2026 20:04
@clawsweeper clawsweeper Bot removed proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Sep 16, 2026
@steipete steipete closed this Sep 16, 2026
@steipete steipete reopened this Sep 16, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Sep 16, 2026
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 18, 2026
Merge main 7acf043. Keep the complete retained planner descriptor comparison while allowing its two-worker cap to remain on the enclosing serial job. All 523 planner and runner owner tests pass.
@steipete
steipete merged commit 177e50f into main Sep 18, 2026
164 checks passed
@steipete
steipete deleted the codex/qa-sessions-search-identity branch September 18, 2026 10:06
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 19, 2026
…50242)

* fix(ui): preserve session identity in Sessions links

* fix(ui): preserve session identity across generated links

* test(ui): align navigation fixtures with full session IDs

* test(ui): isolate stream budgets from child roster fixtures

* test(ci): retain serialized job worker policy in planner checks
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 P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: L 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