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>
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.
* fix(dsh): resume DSH ACP sessions after HAPI restart
* fix(dsh): register active session handoff
* fix(dsh): preserve native id in summaries
* fix(dsh): keep native resume on recorded machine
* test: refresh CI checks
Track readable content revisions and durable read cursors in the hub. Acknowledge only rendered foreground tails, persist offline read operations, and preserve newer manual unread choices across devices.
Migrate existing history to a read baseline and cover pagination receipts with shared native conformance fixtures.
Persist and backfill the last user-message timestamp, and use it for deterministic session ordering across web and native clients while preserving manual pins.
Remove the fixed-order setting and guard ordering against transcript echoes, replayed messages, and stale REST/SSE updates. Add regression coverage and regenerate the SSE fixture.
ios/scripts/linux-test.sh stages HapiKit + shared/fixtures at repo depth
into a persistent tmp dir and runs swift test in swift:6.1-noble; the
manifest drops HapiUI (SwiftUI/swift-markdown/Highlightr) under
#if os(Linux). 458 tests green, including all 48 chat and 11 pagination
golden fixtures.
Fixes that fell out of the first real compile of the blind-written port:
- ChatTypes.CodexReview.wireValue + SummaryPatching legacy id fallback:
split expressions that exceeded the Swift 6 type-checker budget
- FileEndpointsTests: raw string containing "# terminated the literal
early (never compiled anywhere) — now ##-delimited
- SSEClient.backoffSleep: Task { try? ... } inferred Task<()?, Never>
- Darwin gates: Security/Keychain behind canImport(Security) (tests use
InMemoryCredentialStore via CredentialStoring), CryptoKit digest with
FNV-1a filename fallback, FoundationNetworking imports for URLSession
types, corelibs URLCache diskPath: initializer, get-only
waitsForConnectivity, delegate-based SSE transport where
URLSession.bytes(for:) does not exist