Repository navigation
improve(ui): open short session links without extra lookup - #128778
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 24, 2026, 12:04 PM ET / 16:04 UTC. ClawSweeper reviewWhat this changesThe PR returns display name and preferred surface from Gateway short-session resolution so Control UI short links can mount without route-owned describe or list lookups. Merge readinessKeep open. Current main still performs the resolve-then-describe waterfall; this PR moves already-owned bounded presentation facts through the resolver and removes it. The prior documentation finding is addressed, with normal exact-head CI still pending. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (partial) — step 2 Assertions:
How this fits togetherA Control UI short session URL is resolved by the Gateway against visible session-store entries before the UI canonicalizes the chat or dashboard route. The returned route facts determine the initial surface; the board or chat then performs its own state loading. flowchart LR
A[Short session URL] --> B[Control UI route loader]
B --> C[Gateway session resolver]
C --> D[Visible session store]
D --> E[Bounded route facts]
E --> F[Canonical chat or dashboard route]
F --> G[Chat or board startup]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -85, Tests +197, Docs -7, Other +26. Total +131 across 22 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep Gateway resolution as the single owner of bounded route facts, remove the consumer waterfall, and retain the documented full-key or upgrade recovery path for unsupported custom Gateway skew. Do we have a high-confidence way to reproduce the issue? Yes, with high confidence from the current-head browser and route-test scenarios: a cold short link makes one resolve and no route-owned describe or list request. Tests were not executed because this is a read-only review. Is this the best way to solve the issue? Yes. The Gateway already reads these presentation facts while resolving visible candidates, so carrying the bounded facts forward removes the waterfall without adding a client cache or parallel lookup path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4d8bfab33ec8. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Current-head route proof:
The deterministic Chromium harness asserted the request counts and canonical URL before capturing these sanitized images. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Land-ready verification for exact head
Rank-up moves:
No protocol version bump is needed: the resolver fields are additive, bounded, and produced by the existing authoritative read. |
|
Merged via squash.
|
…128778) * perf(ui): remove short session route waterfall * docs: clarify short link gateway requirement


Closes #114693
What Problem This Solves
Fixes an issue where opening a cold short session URL required an authoritative
sessions.resolverequest and then an additionalsessions.describerequest before the chat route could mount.In the live team-session baseline, resolution took about 1.25s and the two description requests took up to another 1.07s before
chat.startupcould begin. The Gateway had already read the presentation facts needed by the route, but discarded them from the resolve response.Why This Change Was Made
sessions.resolvenow carries the bounded optional display name and preferred board face it already produced. The Control UI consumes those facts directly, preserving authoritative identity, visibility, slug collision handling, dashboard routing, candidate ordering, and the ten-candidate ambiguity limit while removing the route-owned describe waterfall.The obsolete old-Gateway list fallback is deleted. The Control UI and Gateway ship as one version, so a missing current resolver fails visibly rather than silently starting up to five pages of compatibility searches. The stale compatibility promise is removed from the URL documentation.
The additive protocol fields require no protocol version bump. Generated Swift protocol models and the Control UI boot manifest are refreshed from their canonical generators.
User Impact
Short session links reach chat with one authoritative resolution request instead of two sequential Gateway stages. Ambiguous links still show the same chooser, stale display-name hints still canonicalize correctly, and sidebar-carried full keys still bypass lookup entirely.
Production LOC: +54/-140 (net -86). Tests: +211/-90. Generated protocol: +26. Documentation: -4.
Evidence
sessions.resolve; zero route-ownedsessions.describeandsessions.list.node scripts/check-changed.mjs, including native app/protocol checks.pnpm protocol-registry:checkandpnpm protocol:check:swift.pnpm buildand generated Control UI boot-manifest verification.git diff --check.