Files
pipelines/app/notes/mobile-tape.md
T
alan fd5d4b783c Quick switch: a new request retargets the switch in flight instead of waiting
Peek taps, chords and programmatic activations during a mobile quick
switch start the next switch at once from what is on screen. Swap styles
continue from each card's current rect, pose, opacity and bar reveal;
the tape takes a fresh picture of the frame above the incoming chat and
continues its loop. The incoming chat keeps its speed and brakes once.
The arriving peek takes pointers while it moves; leaving cards do not.
The capture kit's film step gains a taps option for rapid-tap reviews.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 15:20:47 +00:00

39 lines
2.3 KiB
Markdown

# Mobile tape switch and remembered peek height
Both chats move upward as one joined tape. The old active exits above the
incoming live pane as a bounded snapshot; its single retained live tree loops
in from below with a real small scroll viewport. This avoids duplicating live
chat state. The default is 560 ms, globally scaled by the animation setting.
Repeated activations retarget the switch in flight (see quick-switch-retarget.md).
Reduced motion, first layout, or an unavailable fresh picture settle directly.
The crossing-card rounded/shadow effect and its source file are removed.
Small layouts keep only the active chat's coloured bottom border. A 24 px touch
and mouse target centred on that border adjusts the inactive height. The range
is 48 logical pixels through the previous 20% maximum (the minimum yields to
20% on extremely short viewports). The saved fraction remains per-server in the
existing workspace preference; old snapshots default to 20%, and keyboard or
orientation changes constrain presentation without rewriting the preference.
The workspace exposes a deduplicated post-frame visible-session callback based
on the actual mobile pair, collapsed active pane, or desktop split leaves.
Retained offstage chats are excluded. Root integration wires this into sidebar
visibility indicators.
Checks:
- `tool/memwatch/full.sh test/features/chat`: 962 passed, zero failed/skipped,
peak 1989 MB, 63 seconds. `/tmp/memwatch/out.Pi7Bqo`.
- `tool/analyze.sh`: clean. `/tmp/flutter-analyze` output path is recorded in
agent tool logs (final run `flutter-analyze.zX3NNQ`).
- Fixture web build succeeded. Actual browser actions/captures inspected:
`/tmp/review/mobile-tape-material/02-film-label-Expand-Fixture-chat-1-sheet.png`,
`/tmp/review/mobile-tape-material/04-small.png` and return film.
The 140px separator drag changed peek198.8 to58.8; reported viewport equals
visible height58.8 and scroll pixels=max688.6. Chrome/private fixture server
are cleaned by the capture kit on completion.
- Tests cover joined tape edges and top exit/bottom wrap, queued reversal,
retained drafts, min/max drag, snapshot cold restore/legacy validation,
bottom-only phone borders, reduced motion and real small viewport scroll end.
These captures are browser evidence, not native Android device verification.