Commit Graph
11 Commits
Author SHA1 Message Date
b098419645 feat(ios): add a manual widget refresh control
- Add an interactive refresh button to the home widget headers and medium Session Detail card.
- Record the last user-initiated refresh in the App Group and show its time beside the button for ten minutes as visible feedback.
- Keep the action reload-only: opening the app still performs the authenticated snapshot fetch.

via [HAPI](https://hapi.run)

Co-Authored-By: HAPI <noreply@hapi.run>

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-08 00:40:50 +08:00
19fd3b91df fix(ios,hub): keep widget snapshots fresh in the background
- Include the latest assistant preview in the silent-push fingerprint so result-only changes wake the phone; the status-only fingerprint missed results that landed while a session stayed working.
- Coalesce WidgetKit reloads (60s) and reload only installed widget kinds, with a fallback when configuration lookup is empty; the previous every-update/all-kind reloads exhausted the system redraw budget.
- Wait for AppModel/hub restoration on a cold silent-push launch instead of clearing the last good snapshot.
- Use a 15-minute widget timeline fallback and 60-second hub push throttle.
- Add the medium Session Detail layout with in-card paging, plain-text previews, status labels, and the hidden-row indicator.

via [HAPI](https://hapi.run)

Co-Authored-By: HAPI <noreply@hapi.run>

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-07 22:00:26 +08:00
339bd35ee3 feat(ios): add one-session focus widget
Large detail card for the most relevant session: task, latest assistant
result, status/time and todo progress; tapping opens the chat. Reloads with
the other home widget kinds.

via [HAPI](https://hapi.run)

Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-07 12:09:06 +08:00
df656cb803 feat(ios,hub): add running and review widgets
- Hub: store the latest assistant result preview per session, backfill
  existing rows, and expose lastAssistantMessagePreview in the session list.
- iOS: carry lastResult in the widget snapshot and add Running + Review
  widget kinds. Running shows the task given to the agent; Review shows
  unread assistant results. All home widget kinds reload together.
- Keep unread markers on running rows; Review excludes running so it only
  shows finished results.
- Bump the local build to 29.

via [HAPI](https://hapi.run)

Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-07 09:52:40 +08:00
a3317310cd revert(ios): show unread markers on running widget rows too
Running sessions can also carry output the operator has not seen; restore
the blue dot and timestamp and keep the suppression only when the read
watermark says the row is read.

via [HAPI](https://hapi.run)

Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-07 09:27:24 +08:00
411847c91d fix(ios): suppress unread markers on running widget rows
Running turns are inherently live; only waiting/active sessions should
carry the blue unread dot and timestamp.

via [HAPI](https://hapi.run)

Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-07 09:11:50 +08:00
17332c0053 feat(ios): show unread markers in session widgets
- Carry the last-seen watermark into the App Group widget snapshot as
  isUnread; the app refreshes the widget when read state changes.
- Mark push-updated sessions unread in the NSE snapshot path.
- Show a blue dot and blue timestamp for unread widget rows.

via [HAPI](https://hapi.run)

Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-07 07:13:16 +08:00
63d9f147bd feat(ios): show agent icons in the session widget
- Add the agent brand icon to each widget session row (claude, codex,
  opencode, gemini, cursor, pi, ...) with the session status as a corner
  dot; flavors without a bundled logo keep the plain status dot.
- Carry `metadata.flavor` in the widget snapshot so the widget extension
  never needs hub access or session detail.
- Keep the running elapsed timer at second granularity and pin it to the
  trailing edge: WidgetKit draws dynamic text at its slot's leading edge,
  so the text itself has to be trailing-aligned.
- Drop the redundant status glyph before the time; actionable states
  keep their text label.
- Bump the local build to 25.

via [HAPI](https://hapi.run)

Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: OpenCode <noreply@opencode.ai>
2026-11-07 06:51:42 +08:00
5f511d7684 feat(ios): polish session widgets and live activity surfaces
- Group the large widget into running/active sections, show up to nine
  sessions, and use the last human prompt as the subtitle.
- Show compact status icons plus web-style relative times, right-aligned.
- Mirror the per-install push key into the protected App Group container so
  the Live Activity extension and NSE can decrypt while the data-protection
  Keychain is unavailable on the Lock Screen.
- Redesign the Lock Screen card and Dynamic Island compact/expanded/minimal
  states; Live Activities are now opt-in and recovered activities are ended
  when disabled.
- Rename the app and widget display name to Happy Coding; bump the local
  build to 10.

via [HAPI](https://hapi.run)

Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-07 00:22:34 +08:00
a4ff51d216 chore(ios): use personal team and bundle identifiers for local builds
- set team X75CUV458P
- app com.wusu.hapi; widget/NSE/tests use the same prefix
- App Group group.com.wusu.hapi and Keychain group com.wusu.hapi.push

via [HAPI](https://hapi.run)

Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-06 21:04:11 +08:00
eb4fa1806f feat(ios): add snapshot-backed home and lock screen widgets
- add the WidgetSnapshot contract, App Group store, status/title builder
- write debounced snapshots from SessionListStore; NSE refreshes them
  from decrypted pushes and reloads widget timelines
- add small/medium/large, accessory, and StandBy widget families with
  attention-first rows and session deep links
- add App Group entitlements for the app, NSE, and widget extension
- document the snapshot data flow and privacy properties
- cover selection, title fallback, store round-trip, and push updates

via [HAPI](https://hapi.run)

Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-06 20:42:11 +08:00