Skip to content

perf(mobile): show cached child content first and drop sibling prefetch - #21

Closed
iscekic wants to merge 1 commit into
kwf/deliver-the-work-described-b-ad46-l12from
kwf/deliver-the-work-described-b-ad46-l13
Closed

perf(mobile): show cached child content first and drop sibling prefetch#21
iscekic wants to merge 1 commit into
kwf/deliver-the-work-described-b-ad46-l12from
kwf/deliver-the-work-described-b-ad46-l13

Conversation

@iscekic

@iscekic iscekic commented Sep 1, 2026

Copy link
Copy Markdown
Owner

What changed

  • Child session cards show the agent name, task name, and status from task metadata only. Rendering a card never fetches the child transcript.
  • Opening a child session shows cached content at once. A background refresh updates it without replacing the transcript.
  • The child session the user opens gets priority hydration. Speculative prefetch of sibling child transcripts no longer runs when the parent loads.
  • Empty user messages no longer paint blank bubbles in the transcript.
  • The scroll-to-bottom chip appears only after the user drags away from the bottom.
  • The context pill shows a fractional percent, for example 0.1%, instead of 0% for tiny usage.
  • Child session open timing is measured into network, storage, and render phases. A report helper computes the before/after number for each of the five journeys and names the bottleneck.

Why

The measured bottleneck was the sibling-transcript prefetch that ran when the parent loaded. It fetched every child transcript to fill card labels.

The fix removes that prefetch, keeps child cards cheap, serves cached content first, and gives the opened child priority.

Verification

  • mobile: typecheck, unit, and i18n gates passed.
  • mobile-device: verifier passed.
  • mobile-device: spot check clean.
  • web: setup-smoke did not pass (advisory while unhardened).

Cold open — tap to first useful child content.

ux-audit-warm-reopen.mp4.trim.mp4

Warm reopen — cached child content shown at once.

case.mp4.trim.mp4

Return to parent — child reopen measured correctly.

case.mp4.trim.mp4

Many children — one child opened, siblings not prefetched.

ux-audit-cold-open.mp4.trim.mp4

Slow network — cached content served while the refresh is pending.

ux-audit-child2-cold-open.mp4.trim.mp4

Spot check — clean.

case.mp4.trim.mp4

Web profile setup-smoke test failed on Chromium.

test-failed-1.png

Notes for the reviewer

This PR changes mobile files only. The web setup-smoke failure is marked advisory in the evidence.

PR stack (merge bottom to top)

@iscekic

iscekic commented Sep 2, 2026

Copy link
Copy Markdown
Owner Author

bot: closing — kwf experiment artifact, superseded

@iscekic iscekic closed this Sep 2, 2026
@iscekic
iscekic deleted the kwf/deliver-the-work-described-b-ad46-l13 branch September 2, 2026 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant