M-5: Vision.cancelFrameAttach command + getFrameAttachState query #123

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

Goal

Vision.cancelFrameAttach command + getFrameAttachState query for late-connect clients.

Scope

  • cancelFrameAttach(captureId:) command
  • getFrameAttachState() -> FrameAttachState for late-connect hydration
  • Returns current arming state (pending/none)

Files

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

Acceptance

  • cancelFrameAttach cancels pending arm; frameExpired does not fire
  • getFrameAttachState returns hydrated state mid-arming
  • Late-connect client sees current state on hydration

Test

S-VIS-004 (cancelFrameAttach), S-VIS-005 (late-connect hydration).

Parent epic

#9

Source

.planning/architecture/JARVIS-API-MIGRATION-PLAN.md §2.6 (M-5.3)

## Goal Vision.cancelFrameAttach command + getFrameAttachState query for late-connect clients. ## Scope - `cancelFrameAttach(captureId:)` command - `getFrameAttachState() -> FrameAttachState` for late-connect hydration - Returns current arming state (pending/none) ## Files - `packages/JarvisAPI/Sources/JarvisAPI/Surfaces/Vision+Adapter.swift` ## Acceptance - [ ] `cancelFrameAttach` cancels pending arm; `frameExpired` does not fire - [ ] `getFrameAttachState` returns hydrated state mid-arming - [ ] Late-connect client sees current state on hydration ## Test `S-VIS-004` (cancelFrameAttach), `S-VIS-005` (late-connect hydration). ## Parent epic #9 ## Source `.planning/architecture/JARVIS-API-MIGRATION-PLAN.md` §2.6 (M-5.3)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KofTwentyTwo/Jarvis#123