Skip to content

fix(cli): update capture commands to use real openadapt-capture API#989

Merged
abrichr merged 1 commit intomainfrom
fix/capture-cli-api
Feb 18, 2026
Merged

fix(cli): update capture commands to use real openadapt-capture API#989
abrichr merged 1 commit intomainfrom
fix/capture-cli-api

Conversation

@abrichr
Copy link
Member

@abrichr abrichr commented Feb 18, 2026

Summary

  • capture start was calling CaptureSession(name=...) which doesn't exist — now uses Recorder context manager with task_description, capture_video, capture_audio
  • capture list was calling load_capture() which isn't exported — now uses Capture.load() and shows action count + task description
  • Removed --transcribe flag (not in current API), added --video/--no-video

Fixes the error: TypeError: CaptureSession.__init__() got an unexpected keyword argument 'name'

Test plan

  • openadapt capture start --name test-task starts recording without error
  • openadapt capture list shows captures in current directory
  • Ctrl+C or Ctrl x3 stops recording cleanly

🤖 Generated with Claude Code

The capture start/list commands were using a fictional API
(CaptureSession(name=...) and load_capture()) that doesn't exist
in openadapt-capture. Updated to use the actual API:

- capture start: Use Recorder context manager with proper params
- capture list: Use Capture.load() to validate and display captures
- Removed transcribe flag (not supported in current capture)
- Added --video/--no-video flag

Fixes: TypeError: CaptureSession.__init__() got an unexpected
keyword argument 'name'

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@abrichr abrichr force-pushed the fix/capture-cli-api branch from 173ab1b to c6807c9 Compare February 18, 2026 04:52
@abrichr abrichr merged commit a12355a into main Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments