Skip to content

fix(server): Voice cleanup works through custom text generators - #115

Draft
mwolson wants to merge 1 commit into
contrib/thread-detail-recoveryfrom
contrib/voice-cleanup-json-reply
Draft

mwolson wants to merge 1 commit into
contrib/thread-detail-recoveryfrom
contrib/voice-cleanup-json-reply

Conversation

@mwolson

@mwolson mwolson commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Problem

Voice transcript cleanup can fail with "returned invalid structured output" when a custom text generator follows the cleanup prompt and returns plain text. T3 expects a JSON object containing the cleaned transcription.

Change

The shared cleanup prompt now asks for that JSON object with both default and custom cleanup instructions. The editable default prompt in Settings stays focused on how to clean the transcript.

Scope and approval

This is a focused correction to the existing voice cleanup response format. It adds no settings or provider capabilities.

Verification

Both default and custom prompt regression cases fail when the production change is reverted. All 54 focused prompt, custom-generator, Claude, and Codex tests pass. Live Claude cleanup returns the expected structured result with default and custom instructions; all nine samples of the existing Codex voice-cleanup eval meet their rubrics.

Lint, format, workspace typecheck, mobile typecheck and unused-code checks pass. A live custom HTTP generator and Pi or OpenCode cleanup were not rerun; a separate prompt experiment against Qwen3.8-27B went from 0 of 5 to 5 of 5 parseable replies with the added sentence.

@mwolson
mwolson added this pull request to stack #117 November 10, 2026 07:00
@mwolson
mwolson removed this pull request from stack #117 November 10, 2026 07:35
@mwolson
mwolson added this pull request to stack #119 November 10, 2026 07:35
@mwolson
mwolson removed this pull request from stack #119 November 10, 2026 14:59
@mwolson
mwolson added this pull request to stack #121 November 10, 2026 14:59
@mwolson
mwolson removed this pull request from stack #121 November 10, 2026 21:17
@mwolson
mwolson added this pull request to stack #123 November 10, 2026 21:17
@mwolson
mwolson removed this pull request from stack #123 November 11, 2026 23:29
@mwolson
mwolson added this pull request to stack #125 November 11, 2026 23:30
@mwolson
mwolson removed this pull request from stack #125 November 12, 2026 00:24
@mwolson
mwolson added this pull request to stack #127 November 12, 2026 00:25
@mwolson
mwolson removed this pull request from stack #127 November 13, 2026 21:03
@mwolson
mwolson added this pull request to stack #129 November 13, 2026 21:03
@mwolson
mwolson removed this pull request from stack #129 November 13, 2026 22:17
@mwolson
mwolson added this pull request to stack #131 November 13, 2026 22:17
@mwolson
mwolson removed this pull request from stack #131 November 15, 2026 20:21
@mwolson
mwolson changed the base branch from contrib/mobile-upload-progress-bigint to contrib/thread-detail-recovery November 15, 2026 20:21
@mwolson
mwolson force-pushed the contrib/voice-cleanup-json-reply branch from 66a8630 to 5653149 Compare November 15, 2026 20:22
@mwolson
mwolson added this pull request to stack #132 November 15, 2026 20:22
@mwolson
mwolson removed this pull request from stack #132 November 15, 2026 22:41
@mwolson
mwolson force-pushed the contrib/voice-cleanup-json-reply branch from 5653149 to 9407128 Compare November 15, 2026 22:42
@mwolson
mwolson added this pull request to stack #134 November 15, 2026 22:42
@mwolson
mwolson removed this pull request from stack #134 November 16, 2026 20:47
@mwolson
mwolson added this pull request to stack #136 November 16, 2026 20:47
@mwolson
mwolson removed this pull request from stack #136 November 16, 2026 23:02
@mwolson
mwolson added this pull request to stack #138 November 16, 2026 23:03
@mwolson
mwolson removed this pull request from stack #138 November 18, 2026 16:28
@mwolson
mwolson added this pull request to stack #142 November 18, 2026 16:28
@mwolson
mwolson removed this pull request from stack #142 November 19, 2026 19:30
@mwolson
mwolson added this pull request to stack #144 November 19, 2026 19:31
@mwolson
mwolson removed this pull request from stack #144 November 20, 2026 22:48
@mwolson
mwolson force-pushed the contrib/voice-cleanup-json-reply branch from 9407128 to 3f50686 Compare November 20, 2026 22:49
@mwolson
mwolson added this pull request to stack #145 November 20, 2026 22:50
@mwolson
mwolson removed this pull request from stack #145 November 21, 2026 02:41
@mwolson
mwolson added this pull request to stack #147 November 21, 2026 02:41
@mwolson
mwolson removed this pull request from stack #147 November 21, 2026 20:44
@mwolson
mwolson added this pull request to stack #150 November 21, 2026 20:46
@mwolson
mwolson removed this pull request from stack #150 November 21, 2026 21:02
@mwolson
mwolson added this pull request to stack #153 November 21, 2026 21:02
@mwolson
mwolson removed this pull request from stack #153 November 22, 2026 04:49
@mwolson
mwolson added this pull request to stack #155 November 22, 2026 04:50
@mwolson
mwolson removed this pull request from stack #155 November 23, 2026 15:21
@mwolson
mwolson added this pull request to stack #157 November 23, 2026 15:21
Request the transcription JSON response in the shared cleanup prompt so
both default and custom instructions match the structured output decoder.
@mwolson
mwolson removed this pull request from stack #157 November 23, 2026 19:20
@mwolson
mwolson force-pushed the contrib/voice-cleanup-json-reply branch from 3f50686 to bc78e6e Compare November 23, 2026 19:21
@mwolson
mwolson added this pull request to stack #159 November 23, 2026 19:22
@mwolson
mwolson removed this pull request from stack #159 November 24, 2026 17:26
@mwolson
mwolson added this pull request to stack #161 November 24, 2026 17:27

This branch has not been deployed

No deployments
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