mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-18 03:27:08 +00:00
- 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>
17 lines
546 B
Swift
17 lines
546 B
Swift
import Foundation
|
|
|
|
/// One entry of Claude Code's `system/background_tasks_changed` snapshot.
|
|
/// Hub `SessionSchema.backgroundTasks`; the count alone drives badges, the
|
|
/// descriptions back the composer chip's task list.
|
|
public struct BackgroundTask: Codable, Equatable, Sendable, Identifiable {
|
|
public var id: String
|
|
public var type: String
|
|
public var description: String
|
|
|
|
public init(id: String, type: String, description: String) {
|
|
self.id = id
|
|
self.type = type
|
|
self.description = description
|
|
}
|
|
}
|