M-7: Turn.getActiveTurn exposes toolCalls + accumulatedThinking (F-019 late-connect) #139

Open
opened 2026-05-12 19:37:38 +00:00 by KofTwentyTwo · 0 comments
KofTwentyTwo commented 2026-05-12 19:37:38 +00:00 (Migrated from github.com)

Goal

Turn.getActiveTurn exposes toolCalls + accumulatedThinking (F-019). Supports late-connect hydration so a freshly-connected client can render an in-flight turn.

Scope

  • getActiveTurn() -> ActiveTurnSnapshot?
  • ActiveTurnSnapshot includes toolCalls: [ToolCallSnapshot] + accumulatedThinking: String + accumulatedText: String + seq: Int
  • Late-connect client hydrates and renders

Files

  • packages/JarvisAPI/Sources/JarvisAPI/Surfaces/Turn+Adapter.swift

Acceptance

  • getActiveTurn() returns hydrated snapshot mid-turn
  • Returns nil when no active turn
  • toolCalls + accumulatedThinking present in snapshot

Test

S-TURN-016 (late-connect hydration mid-turn).

Parent epic

#11

Source

.planning/architecture/JARVIS-API-MIGRATION-PLAN.md §2.8 (M-7.5)
.planning/architecture/JARVIS-API-DESIGN-v0.2.md F-019

## Goal Turn.getActiveTurn exposes toolCalls + accumulatedThinking (F-019). Supports late-connect hydration so a freshly-connected client can render an in-flight turn. ## Scope - `getActiveTurn() -> ActiveTurnSnapshot?` - `ActiveTurnSnapshot` includes `toolCalls: [ToolCallSnapshot]` + `accumulatedThinking: String` + `accumulatedText: String` + `seq: Int` - Late-connect client hydrates and renders ## Files - `packages/JarvisAPI/Sources/JarvisAPI/Surfaces/Turn+Adapter.swift` ## Acceptance - [ ] `getActiveTurn()` returns hydrated snapshot mid-turn - [ ] Returns nil when no active turn - [ ] toolCalls + accumulatedThinking present in snapshot ## Test `S-TURN-016` (late-connect hydration mid-turn). ## Parent epic #11 ## Source `.planning/architecture/JARVIS-API-MIGRATION-PLAN.md` §2.8 (M-7.5) `.planning/architecture/JARVIS-API-DESIGN-v0.2.md` F-019
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KofTwentyTwo/Jarvis#139