Keep the fork's DSH Web runtime, OpenCode goal/native-variant paths and
media uploads; adopt upstream model-error notifications, OpenCode rewind
gating, chunked upload endpoints, hub settings split and the ACP shouldSend
guard.
Notable resolutions:
- ACP prompt keeps the local runPrompt request hook, now with upstream's
shouldSend option, numTurns and boolean result
- OpenCode dequeue keeps local goal-aware thinking and native variants inside
upstream's runtime gate / conversation-history flow
- web attachment adapter intentionally stays on the local 50 MiB single
upload path; hub/client chunked endpoints remain available
- removed the upstream DSH ACP model-probe test because the fork uses the
Web runtime catalog
Validation: typecheck passes; suite 5600 pass, 6 fail (five macOS
responsibility probes in disclaimExec.darwin are environment-specific; one
obsolete DSH probe test removed).
via [HAPI](https://hapi.run)
Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Preserve the fork's teams, session groups, widgets/Live Activities, skins,
DSH steering and custom Claude models while adopting upstream session-attached
jobs, tri-state pin policy, presence badges, ACP prompt timing, agent quotas
and the usage parser version.
Resolutions worth knowing:
- schema ladder is now v35; local v31→v32 chat attachments and upstream's
session-jobs step coexist, and v32→v33 installs jobs for existing fork DBs
- store keeps local Studio/live-activity/share/attachment stores alongside
upstream SessionJobsStore and SessionRedirectStore
- DSH steering stays enabled through upstream's capability map
- iOS keeps personal bundle ids, grouped sections and widgets; upstream's
presence badge, job line, sort order and Filter menu are integrated
- team tools and peer spawn remain, now gated by enabledTools
via [HAPI](https://hapi.run)
Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Cursor ACP sessions can fail mid-turn with a transient model error that the
agent reports inline rather than as an RPC rejection. HAPI treated those turns
as successful, so the session went quiet with no banner, no push, and no way to
resume without retyping the prompt.
This adds the full path:
- detect: classify inline/stderr model errors from the Cursor ACP stream,
requiring strong signatures before typing a failure as a model error
- surface: persist `lastModelError` on session metadata; render a chat banner
and a session-list indicator, with the prompt text kept out of list/SSE
summaries so they never ship up to 32 KB of user prompt
- notify: deliver a push for an unacknowledged error, watermarked on the hub
copy so a restart does not re-page the same eventId
- bridge & retry: offer a one-shot recovery prompt that replays the failed
turn, bound to the originating eventId and gated so a real user turn always
supersedes it. Auto-bridge is opt-in and defaults to OFF, persisted in hub
settings and fanned out to live Cursor CLIs.
Re-cut onto current upstream/main. The branch had accumulated 108 iterative
hardening commits against a 289-commit-older base; replaying them individually
would have re-resolved the same conflicts ~100 times. The pre-re-cut tip was
2c28a1365 if the granular history is ever needed.
Absorbing upstream required adapting to three refactors that landed meanwhile:
- `MessageQueue2` grew an `internal?: boolean` control-message flag upstream
while this branch added richer `internal` provenance. Unified on a tagged
`QueueItemInternal` union (`control` | `model-error-bridge`) so one field
carries one concept. `hasPendingNonBridgeTurn()` now treats *any* internal
item as non-user: otherwise a queued `/auto-review` control slash would have
counted as a user turn and wrongly superseded a live bridge.
- `AcpSdkBackend.prompt()` gained a `timing` callback upstream; merged it with
this branch's `shouldSend` gate into a single options object.
- The hub settings route moved to a unified `updateSettings` transaction.
`autoBridgeTransientModelErrors` is applied outside that transaction because
SyncEngine owns its CLI fan-out and rollback under its own lock.
via [HAPI](https://hapi.run)
Co-authored-by: HAPI <noreply@hapi.run>
The hub no longer sends `task-notification` pushes (961f2fd0), so remove
the client handling on both platforms:
- iOS: drop PushType.taskNotification, its Reply notification category,
and the NSE category stamping; Reply now applies to `ready` only.
- Android: drop PushType.TASK_NOTIFICATION; Reply attaches to `ready`
only. The `task_notifications` channel stays as the bucket for unknown
types / contract versions, renamed to "Other notifications"
(CHANNEL_OTHER). Its system channel ID is unchanged so operators'
per-channel settings survive.
- Drop the task-only `success` / `error` severities from both clients and
the hub's FCM/APNs payload types.
Chat timeline parsing of `<task-notification>` is unchanged.
- 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>
- 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>
- 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>
- 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>