Commit Graph
57 Commits
Author SHA1 Message Date
wushenghua 7ac5bd3f02 chore: track fixes already present in the deployed 0.36.5 build
Hub session-list stats now use the combined getFutureScheduledMessageStats call; web icon sizing and machine-filter breakpoints corrected; iOS build version bumped; Windows host install docs added.
2026-11-24 18:16:04 +08:00
1473fa1dfa merge: hapi upstream v0.36.5
Adopt fork preview/boundary and branch endpoints, GitHub PR awareness,
session external refs, queue batch aliases and the attached runtime's
history validation. The fork keeps its Session List/Row/Chat surfaces,
Claude/DSH import dialogs, goal controls and DSH Web runtime.

Notable resolutions:
- Codex projection compares replay payload identity while still carrying the
  fork's Hub persistence options; queue committed() now uses upstream's batch
  alias matching
- user messages are ACKed per accepted batch member, with the fork's replay
  createdAt/verifyPersistence path retained
- server keeps the fork's public studio/share middleware and one gzip
  middleware; upstream's static cache headers and HEAD handling are adopted
- settings keeps the fork's session-summary/teams/unavailable-agents rows and
  adds GitHub PR awareness
- iOS keeps the personal bundle id and local string catalog (Japanese catalog
  from upstream is not merged)

Validation: typecheck passes; suite 5971 pass, failures limited to the four
machine-specific macOS responsibility probes.

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

Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-20 13:33:58 +08:00
weishu 590a9533c9 Release version 0.36.5 2026-11-18 12:55:16 +08:00
weishu f40a472fa2 feat(web,ios,android): add native Japanese localization
Add ja locale to the web app (ja.ts, detection, language pickers, date
format), Android (values-ja, AppLanguage.JAPANESE, locales_config) and iOS
(ja in Localizable.xcstrings, AppLanguage.japanese, knownRegions).
2026-11-18 12:55:02 +08:00
weishu 825af9ba1d Release version 0.36.4 2026-11-17 13:09:12 +08:00
weishu eefa420503 Release version 0.36.3 2026-11-17 12:04:15 +08:00
weishu ce377fa03c Release version 0.36.2 2026-11-17 11:45:57 +08:00
weishu 096563c584 Release version 0.36.1 2026-11-16 19:06:39 +08:00
weishu 8ff6bd12fa Release version 0.36.0 2026-11-16 17:36:27 +08:00
weishu abe1038cf7 Release version 0.35.1 2026-11-14 08:06:57 +08:00
weishu 06d9e51f5c Release version 0.35.0 2026-11-12 10:16:52 +08:00
weishu 92da78469a Release version 0.34.6 2026-11-11 13:10:41 +08:00
weishu b312641b30 Release version 0.34.5 2026-11-10 16:26:31 +08:00
weishu 2161a9ff96 Release version 0.34.4 2026-11-09 12:34:16 +08:00
2fd8c4e553 feat(ios): make the session-detail widget configurable
- Replace the automatic Focus card with Session Detail configured by a
  session picker (AppIntentConfiguration + AppEntity).
- Multiple Session Detail widgets can be added and stacked in a Smart
  Stack, each bound to a different session.
- Keep the automatic fallback when no session is selected or it vanished.
- Bump the local build to 31.

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

Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-07 12:33:31 +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
18b955615e fix(push): show HappyCoding in notification fallbacks
- The generic APNs alert (used when the notification service extension
  cannot decrypt the envelope) and the extension's own fallback title
  still said "HAPI", so notifications presented the old name.
- Align the Android relay fallback title with the renamed app.
- Bump the local build to 26.

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

Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: OpenCode <noreply@opencode.ai>
2026-11-07 07:03:29 +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
bf67e52ea8 feat(ios,hub): refresh the widget from silent APNs and background tasks
- Hub: add a background APNs transport and a throttled widget-state
  notifier; fan out silent content-available wakes to registered iOS
  devices on widget-visible session changes.
- iOS: handle silent pushes and BGAppRefreshTask by refreshing the active
  hub list and waiting for the App Group snapshot write; enable background
  modes; register APNs tokens even when alert permission is denied.
- Store: repair a drifted fcm_devices schema missing push_key so
  /api/devices/register no longer 500s (this also restores alert push
  registration on the affected database).
- Document the silent-refresh fallback and its best-effort limits.

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

Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-07 05:51:23 +08:00
9bd498eae4 fix(ios): make session group collapse responsive
- Include collapse overrides in the equatable list key; header taps were
  reusing stale content until the next session update.
- Make the whole section header tappable and stop disabling it under
  filters; filters now open groups by default but explicit taps work.
- Hide the redundant bucket subheader when In progress/Active has only
  one bucket.
- Bump the local build to 18.

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

Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-07 05:19:48 +08:00
0d85803075 feat(ios): show the app icon in the widget and add a running spinner
- Add the HappyCoding app icon to the widget bundle and show it in the
  home widget header (small/medium/large).
- Animate running/background rows with a right-aligned spinner in the
  session list.
- Shorten the widget timeline fallback from 15 to five minutes; WidgetKit
  remains a snapshot surface, not a live stream.
- Bump the local build to 16.

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

Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-07 05:13:09 +08:00
e0f730cc7a feat(ios): group the session list like the web sidebar
- Add personal pins (My sessions), global/project pin separation, H5
  running/pending and active/idle buckets, and collapsible project groups
  with counts and selected-row expansion.
- Add local personal pin storage and list-specific display metrics.
- Add Settings > Appearance list text size (80-130%) and CLI/code font
  size (9-17 pt), with Dynamic Type still applied.
- Keep search flat and filters force groups open; shared/archived/status
  detail/preview-fold remain out of scope.
- Bump the local build to 14.

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

Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-07 01:28:26 +08:00
c6f5533333 feat(ios): rename app to HappyCoding and add pixel-art icon
Update the app display name, widget gallery name, and Live Activity
fallback to HappyCoding. Replace the stale Icon Composer source (which
overrode the asset catalog) with a new AI-generated 1024px pixel-art
monster icon. Bump the local build to 12.

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

Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-07 00:48:08 +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
b81c6be39b feat(ios): add lock-screen Live Activities for running sessions
Hub:
- add encrypted Live Activity token registry, registration API, and
  update/end pushes over direct APNs
- enable only for HAPI_IOS_PUSH=apns; relay reports remote:false
- keep content-state encrypted with the per-install push key and a
  domain-separated AAD

iOS:
- add ActivityKit coordinator, HapiWidgets extension, lock-screen and
  Dynamic Island UI, encrypted content-state, deep links, and settings toggle
- cap concurrent activities and reconcile across hub switches

Docs/tests:
- native contract, privacy, READMEs, localization catalogs
- cross-language cipher fixture and hub/iOS unit tests

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

Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-06 19:18:09 +08:00
weishu 893260ac9b Release version 0.34.3 2026-11-05 18:39:20 +08:00
weishu 6712e19dfa Release version 0.34.2 2026-11-05 11:29:22 +08:00
weishu 13541a1928 Release version 0.34.1 2026-11-04 16:00:13 +08:00
weishu e1093466c9 feat(ios): support macOS through Mac Catalyst
Build the app and notification extension for Mac Catalyst with the Mac
idiom, so Macs get a 1:1 native window instead of the scaled iPad app.
The Mac build keeps the run.hapi.app bundle ID and adds Mac entitlements
(sandbox, network, microphone, user-selected files, Mac APNs).

- Always use the split on Mac with a sidebar list style, denser rows,
  14pt reading text, a hidden duplicate titlebar title, a minimum window
  size and page-sized sheets; open web links in the default browser and
  hide the unavailable live QR scanner.
- Add menu bar / hardware-keyboard commands: New Session, Settings,
  Toggle Sidebar, a Session menu (settings, files, rename, export, stop,
  previous/next session) and a guide link.
- Composer: Return sends on Mac (Shift/Option-Return for a newline, IME
  untouched, first suggestion picked); dropped files and pasted images or
  copied files become attachments on all platforms.
- CI builds Mac Catalyst and runs the navigation, split and transcript
  geometry tests there; README documents the Mac build.
2026-11-03 11:15:11 +08:00
weishu 1f4518df20 Release version 0.34.0 2026-11-02 19:07:01 +08:00
weishu 7ba52b9a5a Release version 0.33.6 2026-11-01 20:30:00 +08:00
weishu ba2b5c5651 Release version 0.33.5 2026-11-01 13:19:38 +08:00
weishu b0d01c5307 Release version 0.33.4 2026-11-01 12:26:43 +08:00
weishu d9acc0c31e Release version 0.33.3 2026-10-29 22:29:49 +08:00
weishu 730dfcb22e Release version 0.33.2 2026-10-29 13:24:52 +08:00
weishu a6cf8fd078 Release version 0.33.1 2026-10-29 10:13:33 +08:00
weishu ee273464f4 Release version 0.33.0 2026-10-29 08:51:11 +08:00
weishu 85ccab1ac6 Release version 0.31.3 2026-10-27 14:23:48 +08:00
weishu 7bf0e5bc35 Release version 0.31.2 2026-10-27 08:32:28 +08:00
d3d8bf2620 feat(ios): add Russian locale (#1964)
* feat(ios): add Russian locale

Add Russian translations to Localizable.xcstrings for all 591 catalog
entries (reusing matching Android translations and translating the rest);
zh-Hans and format placeholders are preserved.

* fix(ios): make Russian selectable and use correct plural forms

- add AppLanguage.russian ("ru"), its display name, the AppleLanguages
  override, and register ru in the Xcode project's knownRegions so the
  language picker can actually select Russian
- add Russian one/few/many/other plural variations for %lld sessions,
  %lld attachments and %@, %lld sessions
- use count-agnostic phrasing for the other dynamic counts (tools, edits,
  lines, chars, findings, notes, queued messages, questions, ...)
- correct Input/Output to Ввод/Вывод
- cover the new language case in ThemePrefsTests

* fix(ios): use Russian plural forms for the remaining count labels

* fix(ios): pass the step count to the plural localization

* fix(ios): pass tool counts to the plural localization

* fix(ios): keep the singular English tool-group labels

---------

Co-authored-by: mrudy <mrudy@local>
2026-10-05 17:12:57 +08:00
weishu facb66ee03 Release version 0.30.7 2026-09-15 09:08:33 +08:00
weishu 16ba8fdaa9 feat(ios): add adaptive iPad navigation 2026-09-14 18:10:59 +08:00
weishu 6d44996a59 Release version 0.30.6 2026-09-14 15:05:49 +08:00
weishu b7e892b99e fix(release): sync iOS and Android versions 2026-09-14 09:48:19 +08:00
weishu c2e3d16b7e feat(native): improve anchored chat scrolling and history loading
Add viewport-driven paging with layout acknowledgements, bounded retries, cancellation gates, and epoch-safe history retention.

Preserve transcript anchors and expansion state, fix tool-group identity collisions, and serialize Android history coordination on Main.

Reduce per-scroll composition and layout work; add native regression tests, CI coverage, and profiling guidance.
2026-09-10 16:22:36 +08:00