- Reattach @MainActor @Observable to TranscriptContent; the keyboard-dismiss
merge inserted SimultaneousGestureDelegate between the attribute and the
class, so transcript environment updates stopped invalidating.
- Disable code-block collapsing inside the tool inspector so its body lays
out the complete command; the transcript keeps the height cap.
- Add setGroup to the session-list test stores for the new protocol
requirement.
- Fix the session row status/spinner bindings and move ListIdentity to file
scope after the session-list merge.
via [HAPI](https://hapi.run)
Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
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>
Adopt passkey login/management endpoints, attached Codex runtime gating and
the generic local-session RPC registry. The fork keeps its per-flavor Claude/
DSH/Pi/OpenCode import routes and dialogs, DSH Web runtime and custom Session
List/Row UI.
Resolutions worth knowing:
- schema is v36 with both passkey_credentials and the fork's studio/share
tables; local stores remain alongside upstream PasskeyStore
- server mounts passkey login before auth and passkey management after, with
the fork's guest/share middleware intact
- Codex root keeps local history sync/compaction and goal metadata while
honoring host.attached: no bridge, read-only forks, attached refresh
- generic ListLocalSessions is registered in addition to the fork's per-flavor
handlers; Claude transcript conversion accepts the fork's localId shape
- web keeps the local Claude/DSH import dialogs and manual upload path
Validation: typecheck passes; suite 5689 pass, failures limited to the
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>
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>
A Menu with an inline Picker re-laid out hundreds of OpenCode models on
every config update, causing progressive scroll lag and a reset to the
top. Push a searchable List instead and snapshot the catalog on open.
via [HAPI](https://hapi.run)
Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
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).
Hub discovery required two authenticator prompts plus a confirm step:
a local locator-only ceremony to read the Hub from the user handle, then a
Hub-issued login challenge. Native apps now sign their own fresh challenge
{v:2, operation:"login", channel:"native", iat, nonce}, read the Hub from
the selected credential's v2 user handle, and post the assertion straight to
POST /api/passkey/login/verify.
- hub: accept native self-issued challenges only within
[now-5min, now+1min] and only once (replay guard keyed on the challenge,
claimed synchronously after verification); remove
/api/passkey/login/options. Browser ceremonies keep Hub-issued challenges.
- shared: createPasskeyNativeLoginChallenge / parsePasskeyNativeLoginChallenge;
drop discovery helpers.
- ios/android: one system sheet from the pairing screen; manual Hub entry
for long-address handles or an explicit Hub, which must match the
credential before anything is sent. Assertions are only posted to the Hub
named by the credential.
- web: revert address-free discovery; the web app signs in to its own Hub.
- docs: native single-ceremony contract and its security trade-off.
Use auth.hapi.run as the shared RP with an isolated static browser bridge, Hub-bound challenges and accounts, and one-time PKCE code exchange.
Update iOS and Android validation, app associations, deployment documentation, and bidirectional browser regression coverage.
Native apps cannot follow a self-hosted hub's domain (entitlements and
asset links are fixed at build time), so they use one shared RP ID,
hapi.run, and every hub accepts it only from exact app origins.
- hub: `{"client":"native"}` on the passkey option routes selects the
native RP; origins are https://hapi.run (iOS/macOS) and the official
android:apk-key-hash values, extendable via HAPI_PASSKEY_NATIVE_ORIGINS
(HAPI_PASSKEY_NATIVE_RP_ID for forks). Native login options restrict
allowCredentials to this hub's passkeys. Accept a null
authenticatorAttachment.
- website: publish apple-app-site-association (webcredentials for
XJB862F92W.run.hapi.app) and assetlinks.json (get_login_creds for
run.hapi.companion; signing fingerprint still a TODO placeholder).
- iOS: webcredentials:hapi.run, AuthenticationServices ceremonies,
passkey-only sign-in on the pairing screen, Settings → Passkeys, and a
passkey-session credential kind used by silent re-auth.
- Android: Credential Manager 1.6.0, the same flows and credential kind,
and README notes on computing the apk-key-hash origin.
- docs: native passkey contract and user guide.
Drafts persisted the whole NewSessionForm, including `directory`, so the
last path picked through the browse (+) button came back on the next
presentation and seeded the browser. Web's draft deliberately omits the
directory; match it:
- readDraft/writeDraft strip `directory`, and old drafts with a stored path
are ignored on restore.
- A restored draft now seeds its saved machine's default directory (or the
most recent valid spawn path) unless the user edited the field.
- A directory-header "new session" still uses that exact initial path.
- Keep the directory tests in sync and teach the fake HTTP about the Claude
custom/machine model catalogs; update the long-message probe for the
selection-sheet closure signature.
via [HAPI](https://hapi.run)
Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
- Decode DSH sessions by accepting workspace-write / danger-full-access
permission modes (the missing cases made the whole session detail fail to
decode, so pending ask_user_question requests never reached the card).
- Carry background task snapshots from Session/SessionPatch and let the
composer chip list the running task descriptions.
- Compact the nav subtitle to project + machine, add a tap-through session
info sheet, and hide the duplicated status wording.
- Mute archived rows: desaturated agent icon, secondary title, hint-coloured
detail/timestamp and an archivebox indicator.
- Add a Select Text action backed by a read-only UITextView so arbitrary
ranges (including cross-paragraph) select with native handles; enable
inline table selection too.
- Point home widget card taps at their session instead of the list, and keep
the list link only as the empty fallback.
- Update LastSeen tests for the optimistic read watermark semantics.
via [HAPI](https://hapi.run)
Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
The menu mixed three selection markers (hand-drawn checkmark images,
Toggle checkmarks plus icons, and a radio-like filled circle), so row
text started at different offsets, and the machine roster made the menu
scroll.
- Sort By and Show use inline Pickers; Active First and Unread Only are
plain Toggles. Selection now always uses the system checkmark column
and every row's text lines up.
- Machines move into a "Machine" submenu whose subtitle names the
current choice; each machine keeps its session count as a subtitle.
iOS ignored SessionSummary.attachedJob, and its strict SessionPatch
decoder rejected every `attachedJob` SSE patch, so each job heartbeat
fell back to a REST list refetch while the row never showed the job.
- Decode AttachedJob on summaries (open-ended status, older rows without
a watermark gate as 0) and the versioned `attachedJob` patch, applied
only when strictly newer, as on web, so a lagged heartbeat cannot
resurrect a cleared job. Full-session events keep the row's job.
- A running job counts as working on the presence badge even when the
agent is idle or disconnected, keeps the session under Active only and
out of Archived only (web #1404).
- The row's second line shows the job instead of the project:
label · remaining or percent · elapsed, amber with "no heartbeat" after
15 minutes. No progress bar, so row height is unchanged.
- Document the patch in the SSE client contract and the iOS display in
the session jobs guide.
The home list showed presence only for connected sessions (a green dot,
pulsing while thinking) and left stopped sessions unmarked. Rows were
ordered by pins and the last message only, with no sort or status
choices.
- Presence badge follows web #2296: solid green pulsing while working,
solid blue pulsing for background tasks only, a green ring when
connected and waiting, and a power mark when stopped or archived.
Activity moves off SessionRowStatus, which keeps only pending requests.
- Sort & Filter menu mirrors the web view menu: sort by last message or
date created, Active first (on by default; manual pins still lead),
show all / active only / archived only, plus the existing unread lens.
Sort and Active first persist app-wide (SessionListOrderPrefs); the
status filter stays per home like the other iOS filters and keeps the
open session listed. Search keeps relevance with the base tie-break.
- Native parity docs now describe the actual base order.
- Copy a session citation from the list (native parity with the web
reference text) and open the paired session list via
hapicompanion://sessions.
- Load hub-wide custom Claude models in New Session with machine-catalog
fallback, and show the transcript-resolved model in chat chrome.
- Render synthetic Claude API failures as error events instead of leaking
the <synthetic> model or zero usage into the context meter.
- Refresh the session list returning from chat, request the list from Home,
and update the home widget surfaces.
via [HAPI](https://hapi.run)
Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
- Fetch Claude models from the machine catalog, expose the full grouped picker with per-model efforts, and remember launch defaults.
- Add directory quick-create, known-directory suggestions, live machine CPU/memory in filters, and the DeepSeek agent icon.
- Add the collapsible session status card (goal, tasks, subagents, terminals, team), context-usage meter, and compaction/background/fast/collaboration composer chips without the redundant inline model controls.
- Add code block line numbers, wrapping and collapse; per-message share and rewind; a floating session search that does not push the list; and move sign out to the bottom of Settings.
via [HAPI](https://hapi.run)
Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
- Cut the widget reload coalescing window to 15 seconds, the hub silent-push throttle to 30 seconds, and the timeline fallback to five minutes so active sessions stay closer to the app.
- Restyle the Live Activity lock screen and Dynamic Island with the app icon, aligned time/status columns, task/result detail, fixed spinner and timer widths, and explicit edge padding.
via [HAPI](https://hapi.run)
Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
- Add a live session status line and project/model/effort metadata to the chat header, plus a compact composer strip for model, effort, permission and connection state.
- Add per-message timestamps, copy, and duration/model/token details; switch user bubbles to a neutral surface, card the reasoning block, and timestamp event rows.
- Surface tool start/duration in summary cards and give list agent icons a native surface tile while preserving grouping and row metrics.
via [HAPI](https://hapi.run)
Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
Separate the content tree from the connection overlay so reconnection
banners cannot resize the transcript or trigger viewport layout handlers.
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>
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>
The Mac window's NSToolbar drops the custom .principal header, and the
hidden titlebar title also hid the navigation title. Use the system title
on Mac (as on the folded Duo) with a unified toolbar instead.
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.
Profiling a 2,745-session hub while scrolling a chat showed the two
longest main-thread stalls (~80 ms) came from the session list, not the
transcript:
- The home list, covered by the pushed chat, still rebuilt and diffed
every row on each session change. A covered list now keeps its last
rows and refreshes once on return; a side-by-side split stays live.
- DiskCache encoded the 2 MB session snapshot on the main actor after
every burst of changes. Encoding now runs with the file write, off it.
After the change the trace has no session-list or snapshot work on the
main thread and no stall over 50 ms (max 38 ms, from Markdown cells
entering the screen).
The queued card's ScrollView is greedy, so one row still took the full
140 pt cap; measure the rows and size the card to them, capped at ~3.
Sends dispatched while the agent is idle no longer flash through the
queued bar while invokedAt is still null: the interactor records them
before the POST (the hub flips thinking on as soon as it queues), the
thread renders them, and after a 5 s grace a still-uninvoked row moves
to the bar as genuinely queued.
Any session change (even an offscreen one, e.g. a streaming agent)
re-ran every row's content (button, swipe actions, context menu), so one
update cost O(all rows): ~30 ms at 300 sessions in a Release simulator
build. Rows now compare only what they draw and skip unchanged content
(~4-6 ms, flat in the row count), and the minute tick redraws only each
row's age label instead of rebuilding the list.
Replace the full-width queued bar with a floating card stacked on the
composer, following the Codex/Claude Code/Cursor convention: one-line
rows with icon actions (bolt to steer, retry, cancel), tap a row to
edit, long-press for the full menu, and animated insert/remove.
- Collapse the empty, unfocused composer to one row; anything in flight
(focus, draft, chips, schedule, recording, scratchlist) expands it
without dropping focus.
- Bare 20 pt tool symbols with color-only states; only send/stop is a
filled 32 pt circle. Both scale with Dynamic Type.
- Fix the schedule menu reading as active: Menu tinted its relative
`.secondary` style.
- Stop uses the accent instead of alarm red.
- Liquid Glass card on iOS 26 (damped so text behind the short pill
stays out of the placeholder); hairline edge on earlier systems.
- ⌘↩ sends from a hardware keyboard, gated like the Send button.
- Transient SSE states appear only after 2s, as the iOS 26 nav subtitle
(a gray line with a spinner where no title is shown), so the list
never shifts on routine reconnects
- Only a failed list refresh is amber: "Offline · updated …" with Retry
Running sessions previously suppressed the ordinary unread dot, hiding
answers the user had not seen. Unread is now
manualUnread || contentRevision > readRevision on web, iOS and Android.
Web rows draw the running/background spinner beside the unread dot, and
unread outranks background status. Because session patches arrive before
the message they count, a chat following its visible tail hides its own
ordinary dot until the rendered acknowledgement lands (display-only; web
and iPad split view).