feat(ios): enhance the session detail and list UI

- 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>
This commit is contained in:
2026-11-07 22:35:08 +08:00
co-authored by HAPI Claude Code
parent 19fd3b91df
commit b1c69f7219
9 changed files with 575 additions and 16 deletions
@@ -68,7 +68,8 @@ struct ToolCallBlockView: View {
private func headerRow(_ presentation: ToolCardPresentation) -> some View {
ToolSummaryRow(
presentation: presentation, state: block.tool.state,
showsStatus: block.tool.state != .pending || block.tool.permission?.status != .pending
showsStatus: block.tool.state != .pending || block.tool.permission?.status != .pending,
timing: ChatToolTiming.text(for: block)
) { openTool?(block) }
.accessibilityHint(opensToolProcess(block)
? String(localized: "View agent process") : String(localized: "View tool details"))
@@ -82,6 +83,7 @@ struct ToolSummaryRow: View {
let presentation: ToolCardPresentation
let state: ToolCallState
var showsStatus = true
var timing: String? = nil
let action: () -> Void
@Environment(\.hapiTheme) private var theme
@Environment(\.hapiTypography) private var typography
@@ -120,6 +122,12 @@ struct ToolSummaryRow: View {
}
if !stacksStatus { Spacer(minLength: 8) }
HStack(spacing: 8) {
if let timing {
Text(timing)
.font(typography.captionFont)
.foregroundStyle(theme.textHint)
.lineLimit(1)
}
if showsStatus && state != .completed {
ToolStatusIndicator(state: state)
}