You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Intent: Gemini can return HTTP 200 with partial text and an incomplete interaction status, which Anarlog currently accepts as success. Require completed before returning a transcript so partial provider output follows the existing error path and the user can retry.
Found while investigating a truncated recording on desktop 1.4.34. The original provider response was not retained, so this does not claim to establish that recording's root cause. Related provider report: googleapis/python-genai#2923.
Missing or non-completed statuses fail closed. Completed responses retain the existing conversion behavior; no automatic retries are added.
Demo
Replay of actual local regression-test results before and after the guard, using a synthetic HTTP response and repository test audio. No private meeting content or live provider call.
gemini-incomplete-regression.mp4
Verification
Regression reproduced without the guard: HTTP 200 with status: incomplete and valid word annotations was incorrectly accepted. The same test passes with the guard and also checks that completed remains accepted.
rustfmt --edition 2024 --check crates/owhisper-client/src/adapter/google_generative_ai/batch.rs and git diff --check: passed.
Both license-boundary Python checks: passed (9 tests).
Broader check limitations
cargo clippy --locked -p owhisper-client --all-targets --no-deps -- -D warnings fails on existing diagnostics. Re-running the same command on the unchanged base produces the same error diagnostics (10 for the library, 40 for library tests).
The complete node --test list from ci.yaml: 90 passed, 3 failed because PowerShell (pwsh) and the root JS dependency braces are unavailable in this checkout.
Authenticated uvx zizmor --format sarif . completed and reported 337 findings in unchanged workflows/actions. This PR changes no workflow files.
Full desktop/native workspace builds and live Gemini transcription were not run.
Summary by cubic
Rejects incomplete Gemini batch transcription responses so partial output is no longer treated as a successful transcript.
Gemini can return HTTP 200 with text and an incomplete interaction status, which was previously accepted. The adapter now requires the status to be completed before returning a transcript; missing or non-completed statuses fail with a provider error so the user can retry. Completed responses keep the existing conversion behavior, and no automatic retries are added. Adds a regression test covering both accepted and rejected statuses.
Written for commit e8560b8. Summary will update on new commits.
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
Walkthrough
The batch transcription handler now accepts a response only when its status is completed. It returns a provider failure for other statuses, even when the response contains transcription content. An async test covers completed and incomplete responses.
Suggested reviewers:computelesscomputer
Merge Risk: Minimal · up to e8560
Completed transcriptions remain accepted, while incomplete responses are rejected. No merge-blocking issue was identified.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title clearly and concisely describes the main change: rejecting incomplete Gemini batch transcriptions.
Description check
The description directly explains the change, its intent, affected behavior, regression test coverage, and validation results.
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 2 functions across 1 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
The reason will be displayed to describe this comment to others. Learn more.
✅ Devin Review: No Issues Found
Devin Review analyzed this PR and found no bugs or issues to report.
This branch has not been deployed
No deployments
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
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
Intent: Gemini can return HTTP 200 with partial text and an
incompleteinteraction status, which Anarlog currently accepts as success. Requirecompletedbefore returning a transcript so partial provider output follows the existing error path and the user can retry.Found while investigating a truncated recording on desktop 1.4.34. The original provider response was not retained, so this does not claim to establish that recording's root cause. Related provider report: googleapis/python-genai#2923.
Missing or non-completed statuses fail closed. Completed responses retain the existing conversion behavior; no automatic retries are added.
Demo
Replay of actual local regression-test results before and after the guard, using a synthetic HTTP response and repository test audio. No private meeting content or live provider call.
gemini-incomplete-regression.mp4
Verification
status: incompleteand valid word annotations was incorrectly accepted. The same test passes with the guard and also checks thatcompletedremains accepted.cargo test --locked -p owhisper-client --lib: 302 passed, 8 existing ignored tests.cargo check --locked -p owhisper-client: passed.rustfmt --edition 2024 --check crates/owhisper-client/src/adapter/google_generative_ai/batch.rsandgit diff --check: passed.Broader check limitations
cargo clippy --locked -p owhisper-client --all-targets --no-deps -- -D warningsfails on existing diagnostics. Re-running the same command on the unchanged base produces the same error diagnostics (10 for the library, 40 for library tests).node --testlist fromci.yaml: 90 passed, 3 failed because PowerShell (pwsh) and the root JS dependencybracesare unavailable in this checkout.uvx zizmor --format sarif .completed and reported 337 findings in unchanged workflows/actions. This PR changes no workflow files.Summary by cubic
Rejects incomplete Gemini batch transcription responses so partial output is no longer treated as a successful transcript.
Gemini can return HTTP 200 with text and an
incompleteinteraction status, which was previously accepted. The adapter now requires the status to becompletedbefore returning a transcript; missing or non-completedstatuses fail with a provider error so the user can retry. Completed responses keep the existing conversion behavior, and no automatic retries are added. Adds a regression test covering both accepted and rejected statuses.Written for commit e8560b8. Summary will update on new commits.