fix(cli): update capture commands to use real openadapt-capture API#989
Merged
fix(cli): update capture commands to use real openadapt-capture API#989
Conversation
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>
173ab1b to
c6807c9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
capture startwas callingCaptureSession(name=...)which doesn't exist — now usesRecordercontext manager withtask_description,capture_video,capture_audiocapture listwas callingload_capture()which isn't exported — now usesCapture.load()and shows action count + task description--transcribeflag (not in current API), added--video/--no-videoFixes the error:
TypeError: CaptureSession.__init__() got an unexpected keyword argument 'name'Test plan
openadapt capture start --name test-taskstarts recording without erroropenadapt capture listshows captures in current directory🤖 Generated with Claude Code