Skip to content

Fix file client reporting success before a final transcript - #182

Merged
LauraGPT merged 1 commit into
mainfrom
codex/file-client-protocol-completion
Dec 2, 2026
Merged

LauraGPT merged 1 commit into
mainfrom
codex/file-client-protocol-completion

Conversation

@LauraGPT

@LauraGPT LauraGPT commented Dec 2, 2026

Copy link
Copy Markdown
Member

The file CLI previously discarded START/HOTWORDS replies and returned exit 0 on a clean connection close or a stopped event without the final transcript. Sending both --file and --mic also selected microphone mode instead of rejecting ambiguity.

Require the documented acknowledgements before sending PCM. After the complete file and STOP, accept a final sentences list (including an empty one); reject incomplete or out-of-order completion. The positive --response-timeout is per acknowledgement / after STOP, not a whole-recording limit. File interruption returns 130, and file/mic inputs are exclusive. No changes to the speech model, server wire format, resampling, or microphone capture.

Includes real loopback CLI regression cases and an updated Chinese guide using the sample WAV bundled in this repository. The offline Shanghai run passed 86 client, example and related server-contract tests. The regression-first run had 11 failures and one positive control; earlier exit-0 cases included wrong acknowledgements, premature closure and missing final results. Responses in the wire tests are fixtures, not acoustic inference. No model download, microphone recording or external audio service.

Check session acknowledgements before sending PCM and distinguish an empty final transcript from an interrupted upload. Bound acknowledgement and final-result waits while allowing long files. Exercise the client against loopback without a microphone or speech model.

Signed-off-by: LauraGPT <zhifu.gzf@alibaba-inc.com>
@LauraGPT
LauraGPT merged commit d172caf into main Dec 2, 2026
1 check passed
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