Repository navigation
fix(ui): preserve session identity across generated links - #150242
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 18, 2026, 5:56 AM ET / 09:56 UTC (Revision 14). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherThe 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -3, Tests +620, Docs +6. Total +623 across 24 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (13 earlier review cycles; latest 8 shown)
|
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.
|
Merged via squash.
|
…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
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 at80d5dee04206b3a36670a55ece9c093d2ef397d0passed 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
c77bb7297c0d7ecf0cf5644fb45d23a7b4c4d42cincorporated 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
0b7a7351da0488ebde15ebd905f2b44d21cc796anormally merges main8a8ecf114bdafb0cd0d8d415e96b37768b095677, 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.
After: the selected transcript remains open after reloading its link.
Worktrees
Before: clicking the selected owner opens the chooser.
After: the selected owner's transcript remains open after reload.
Tasks
Before: clicking the selected session opens the chooser.
After: the selected session's transcript remains open after reload.