Skip to content

fix(ui): retain reconnect titles and correct touch-test timing - #178510

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/fix-cold-load-observed-title
Oct 20, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/fix-cold-load-observed-title

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Known conversation titles can briefly change to “New session” during reconnect. Separately, the native touch-scrolling test can stall on loaded runners because its synthetic timestamps diverge from actual input delivery.

User Impact

Conversation titles remain stable during reconnect. The scrolling test exercises native drag and inertia consistently without changing product scrolling behavior.

Why This Change Was Made

The title uses the existing current-session observation when the displayed list has no matching row, retaining list precedence and identity checks.

The touch fixture delegates gesture timing to Chromium. Its existing assertions remain, with an additional total-distance check that prevents delayed drag updates from counting as inertia.

Evidence

  • All 29 session-menu owner tests passed on the preceding combined change (6.93 s command wall). The title regression fails on the original code.
  • The native scrolling case previously passed with the repository-pinned runtime (34.08 s command wall; 6.63 s case). A no-fling control failed the total-distance check at 228 px; the requirement remains more than 260 px.
  • Linux CI then failed the drag-distance assertion with a release-offset estimate of 0 where more than 120 px is required. The cause remains under investigation: failing job.
  • Two macOS reproductions on the preceding head, normal and CPU-throttled, passed (37.65 s and 21.68 s wall) without reproducing that Linux failure.
  • This update adds diagnostics only after the original drag-distance sample has failed. It preserves the drag, inertia, and monotonicity assertions and is not a proven fix for the zero estimate.
  • The final diagnostic patch passed formatting, focused lint (zero warnings/errors), UI E2E chat types, and independent review. No additional end-to-end replay was run on this final diagnostic head; its passing path is unchanged.
  • Two earlier browser replays did not reproduce the intermittent title timing. Its regression verifies the intermediate state captured in CI.

@clawsweeper

clawsweeper Bot commented Oct 20, 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.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review October 20, 2026 15:23
@vyctorbrzezowski vyctorbrzezowski changed the title fix(ui): retain session titles during reconnect fix(ui): retain reconnect titles and correct touch-test timing Oct 20, 2026
@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) October 20, 2026 15:42
@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. P2 Normal backlog priority with limited blast radius. 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 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 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR preserves observed conversation titles during reconnect and lets Chromium pace the native touch-scrolling regression.

Example: The pane has observed the conversation “Observed conversation,” but its displayed roster temporarily contains no matching row.

  • Before: The header can display “New session.”
  • After: The header uses the current scoped observation and displays “Observed conversation.”

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and source-consistent, with useful reported negative controls; behavioral confidence remains bounded by harness evidence and unfinished exact-head CI.
Proof confidence 🦐 gold shrimp (3/6) This MEMBER-authored PR is outside the ordinary contributor proof gate; its body reports owner and native-browser test results, with no attached successful title-transition replay.
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 known conversation can briefly appear as “New session” during reconnect, and synthetic touch timing can stall the scrolling regression on loaded runners.
Reason: The maintainer-authored direction restores the established title-continuity contract and preserves meaningful native-scroll coverage without new settings or owners.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR addresses a current title-resolution gap and contributes distinct touch-test timing repairs; no actionable introduced defect was found.

Priority: P2
Reviewed head: b8287ebd5ab68569b83244e07370478fc8493e55

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: This PR supplies no successful browser replay of the intermittent title transition, although it reports the committed owner regression failing on base and passing with the fix.
Agent review details

How this fits together

The Control UI combines retained roster rows, pane-scoped session observations, and cached transcript metadata into conversation titles; its browser fixture checks native scrolling through embedded widgets.

flowchart TD
  A[Gateway session metadata] --> B[Retained roster]
  A --> C[Scoped session observation]
  D[Cached transcript metadata] --> E[Header title resolver]
  B --> E
  C --> E
  E --> F[Conversation header]
Loading

Technical review

Best possible solution:

Retain the scoped title fallback and native gesture pacing, consolidating equivalent title work when the overlapping PRs land.

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

Source exposes the missing observation fallback after cached metadata retires, and the linked report supplies a matching browser trace; this read-only review ran no target code.

Is this the best way to solve the issue?

The change repairs the existing display owner without new state or requests, and Chromium-owned gesture timing removes the fixture’s conflicting synthetic clock while preserving its behavioral checks.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Conversation title fallback keeps the original intent (ffcb0a8: Preserve cached conversation names on warm reload while retaining current roster precedence and live action metadata.)
  • Native-touch fixture timing changes intended behavior with a stated reason (9ca289a: Extend native drag travel at the existing velocity without weakening distance, monotonicity, inertia, or streaming-position assertions; earlier pacing changes addressed input-delivery measurement races.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit ffcb0a8 adds ui/src/pages/chat/chat-pane-session-menu.ts:57 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ffcb0a8cfa75; files: ui/src/pages/chat/chat-pane-session-menu.ts)

PR surface

Source +1, Tests +56. Total +57 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 2 1 +1
Tests 2 108 52 +56
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 110 53 +57

Review metrics

Metric Value Why it matters
Production versus test LOC Production +2/-1; tests +108/-52 Production growth is one local fallback selection; test growth captures release timing across sandbox frames and independently rejects drag-only travel.

Root-cause cluster

Relationship: partial_overlap
Canonical: #178470
Summary: The title correction shares the reported missing-observation fallback; this PR additionally repairs native-touch fixture timing.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add P2: The title briefly becomes generic and recovers without conversation loss, while the other change repairs a bounded browser regression fixture.
  • 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.

Label justifications:

  • P2: The title briefly becomes generic and recovers without conversation loss, while the other change repairs a bounded browser regression fixture.
  • 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.

Reviewed October 20, 2026, 11:51 AM ET / 15:51 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit 58c3f35 into main Oct 20, 2026
85 of 88 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/fix-cold-load-observed-title branch October 20, 2026 16:44
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 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