#488

Screen History shows what Poki and agents did, pending notes and rows that open

DraftZhehanZhangwants to merge intofrom

Summary of changes

Builds on the Screen History that landed in #415 and #435. Its files stay the base, and this adds to the history page only. Replaces the older draft #360, which predates that rework.

  • Poki's and agents' work on the timeline. Each action from the Activity Log is an entry beside the reads, marked with Poki's face or the agent's badge (History/BacktapeActivity.swift, HistoryEntry.by). Summaries say who did what. With Screen History off, the page shows only these, without the lock.
  • Pending notes. A period still in flight gets a grey summary that settles once the period ends.
  • Rows that open. A 10 minute row opens in place to its whole summary, one strip of the 10 minutes, and the stretches in order with app, titles and length.
  • Tidier tiles. Each app's icon shows once per tile, nothing lights up or dims after a zoom, and each zoom level keeps its own scroll position.
  • Noise left out. Widgets, overlays and nameless processes are not kept and are not offered under Excluded Apps (HistoryCapture.isNoise).

Not in here: any change to names, Settings layout, how a read starts, or the model that writes notes. The page naming and Settings grouping are a separate PR on top of this one (#489). The downloaded model is #487, and this branch reaches a model only through BacktapeWriter.

Motivation (Closes #N)

Part of #356. The history page showed only what was read off the screen, so a stretch where Poki or an agent drove the iPhone looked like the owner's own use, and the Activity Log told that half in another place.

Test plan

  • Not compiled yet. No Swift toolchain where this was written, and no build has been dispatched for this head.
  • git merge-tree shows it merges cleanly with dev/quick-fixes (#463) and dev/on-device-decision-models (#487).
  • The same views compiled and ran on a physical iPhone 17 Pro from the earlier preview branch, before the move onto main's Screen History. Owed here: an ios-ipa.yml build of this head and a pass on the phone.

Screenshots or screen recording

Owed with the first build of this head.

  • I removed passcodes, tokens, and private screen contents from this PR.
  • I release this contribution under the AGPL-3.0-only license.