Repository navigation
test(cli): auto's transcribe child gets the clip and --dir as the transcribe command reads them - #9299
Queued
WaterrrForever wants to merge 1 commit into
Queued
test(cli): auto's transcribe child gets the clip and --dir as the transcribe command reads them#9299WaterrrForever wants to merge 1 commit into
WaterrrForever wants to merge 1 commit into
Conversation
…nscribe command reads them Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
WaterrrForever
enabled auto-merge
December 3, 2026 00:51
miguel-heygen
approved these changes
Dec 3, 2026
miguel-heygen
left a comment
Collaborator
There was a problem hiding this comment.
Review at a50cbcd (base main). One commit: a new work-transcribe.test.ts, and transcribe in work.ts is now exported. Nothing else in the code changes.
What holds
- The test runs the real argument path. It points
useCliat a tiny child script that records its argv and cwd, calls the exportedtranscribe(project, clip, into), then parses the recorded args with thetranscribecommand's ownparseArgsdefinition andassertKnownFlags. So it checks what the real command would read, not a copy of the argument list. - It covers the gap it was written for. The test passes (1/1), and I broke the wiring four ways. Each one fails it:
- dropping
"--dir", into; - passing
--dirthe project root; - using a flag name the command doesn't know;
- running the child with
cwdatintoinstead of the project.
- dropping
Nit
useClisets module state (cutouts.ts:41) that this test never resets. Vitest gives each file its own module graph, so nothing leaks today. If another test is ever added to this file, a reset inafterEachwould keep it from inheriting the stub child.
CI: the required checks pass at this head. Skills: manifest in sync and Studio: edit accuracy gate are skipped. The PR isn't queued, and there are no other reviews.
Verdict: APPROVE
Reasoning: The test exercises the real transcribe call and the command's own argument parser, and it fails for every wrong --dir, flag or working folder I tried.
WaterrrForever
added this pull request to the merge queue
Dec 3, 2026
Any commits made after this event will not be merged.
This branch has not been deployed
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.
What
A test for how
autostartshyperframes transcribe. #9293 madeautopass--dir <its own folder>, and the only test of that ran a stand-intranscribecallback. Nothing checked the command line the child actually gets.work-transcribe.test.tspointsuseCliat a small child script that records its argv and cwd. It runs the realtranscribefromwork.ts, then reads that argv with thetranscribecommand's own argument definitions (assertKnownFlags, then citty'sparseArgs). It asserts:inputis the clip,diris the folder given,transcribeinwork.tsis now exported so the test can call it. Nothing else changes.Checked
The test fails if the child gets
["transcribe", clip](no--dir),--directoryinstead of--dir, or--dirwithout the clip. It passes as merged.vitest run src/auto: all pass.🤖 Generated with Claude Code