Repository navigation
feat: add Reprocess Transcription on conversation detail - #14299
apoorvdarshan wants to merge 13 commits into
Conversation
|
Pushed CI fixes to
Local |
|
Thanks @apoorvdarshan — this is a well-built PR. I reviewed the backend path, the Flutter integration, and the tests. What's solid
Two non-blocking notes
Positive signal from me. Two maintainer decisions before merge: sign-off on exposing this as a new first-party API surface, and the STT cost/fair-use treatment above. Leaving for human maintainer review on those points. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
Feature (Reprocess Transcription), not a bug fix -- backend/app area default is approve-only for features regardless of size (diff is mostly generated l10n files).
|
Thanks @apoorvdarshan — reviewed across the backend route, the STT helper, and the Flutter wiring, alongside @kodjima33's approval of this head. A few observations: Backend
Flutter
Copy
None of these are blocking, and the test coverage (route-level 404/400/502 plus process-kwargs assertions, the e2e segment-replacement test, the Flutter provider and error-mapping tests) is genuinely thorough. Removing the by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
Feature (Reprocess Transcription), not a bug fix -- per current policy, features in backend/mobile/web/community stay approve-only regardless of quality or prior approval. Well-tested, CI green, but not merged.
5002abe to
a373e79
Compare
kodjima33
left a comment
There was a problem hiding this comment.
Re-verified: backend feature (Reprocess Transcription), all CI green, mergeStateStatus CLEAN. New commits since last approval (rebase onto main + trigger-enum follow-up). Issue #4601 is a feature request, not a bug report, so stays approve-only per confidence gate. apoorvdarshan cluster checked fresh against farming-pattern signals (self-filed bounty issue, templated body) — none found; issue predates PR by months, filed by a different user (hugoaap-code), body is a detailed, PR-specific technical writeup with real test verification. Genuine high-quality contributor.
kodjima33
left a comment
There was a problem hiding this comment.
Feature (Reprocess Transcription for a single conversation) - approve only per policy.
155ee10 to
6280f10
Compare
kodjima33
left a comment
There was a problem hiding this comment.
Feature (new reprocess-transcription capability), not a bug fix — approve only per confidence gate. Tests pass, well-scoped.
1241c30 to
a5bc29f
Compare
kodjima33
left a comment
There was a problem hiding this comment.
Feature (reprocess-transcription capability), not a bug fix — approve only per confidence gate. Re-affirmed at new sha.
kodjima33
left a comment
There was a problem hiding this comment.
Re-affirmed (backlog reapprove): feature (Reprocess Transcription), not a bug fix — backend/app area stays approve-only for features regardless of CI (all green) or diff size. No abuse signals.
kodjima33
left a comment
There was a problem hiding this comment.
Feature (Reprocess Transcription), not a bug fix — approve-only per policy regardless of CI (backend unit shard currently failing, noted for maintainer).
|
Verified this head end to end. The core path is solid — notes for the final sign-off: Backend
Flutter
One design note (not blocking): the route runs merge + STT synchronously in the request handler. The UI copy already warns that long conversations take a while and the 3/hour budget caps abuse, but multi-hour audio may brush against HTTP timeouts — worth considering a move behind the async processing queue eventually. The edits to the other backend test suites (test_conversations_batch_chunking.py, test_conversations_share_email_sanitization.py, test_client_processing_finalize.py, test_conversations_date_range_validation.py, test_conversation_jit_processing.py, test_rate_limiting.py) are mechanical: import-time stubs for the new utils.conversations.reprocess_transcription module plus reformatting; the JIT invariants test correctly extends the no-direct-mode-flag rule to the new call site. The .github/agent-docs/msd-ui-b2-remaining-surfaces.md change is an accurate historical annotation (bottom tab row removed by #19730). Prior approvals were on earlier heads; the 2026-09-30 push needs a fresh maintainer look before merge. Everything verified on this head is consistent and well tested. Feedback generated by the Omi maintainer automation on David's behalf. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
Re-affirming: PR body states this is a feature request, not a fix of a shipped contract. Well-tested, approve-only.
|
Thanks @apoorvdarshan — reviewed on top of the approval already on this head. This is a well-executed, cohesive feature; a few non-blocking notes from the automated pass: What checks out
Non-blocking observations
No changes requested. Leaving the merge/product call with the maintainers, as the approval already reflects. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
…ctions Rebase onto current main. Preserve grouped menus, connectivity gating and conversation-scoped retry feedback; regenerate API clients from the merged schema. 47 focused reprocessing/provider/screenshot tests passed. Failure-Class: none.
24e3fa2 to
c224bec
Compare
|
Reviewed the current head — this is a well-built, cohesive feature (the audio→transcript replay step that Backend
Flutter
Tests — the new unit suite (10 tests), 2 hermetic e2e route tests, JIT trigger-table assertions, rate-limit count update (6→7), and the Flutter provider/error-mapping tests are exactly the coverage this surface needs. The Two non-blocking asks for the maintainer pass: a quick device sanity check of the new overflow-menu action (CI skips the mobile suites and the PR honestly notes it wasn't device-verified), and a gut-check on the merge-failure→400 mapping above. Otherwise this is ready for maintainer re-approval of the new head. — AI-generated maintainer feedback on behalf of the Omi maintainers by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
Feature (Reprocess Transcription action) — approve-only per confidence gate; title/body frame this as new capability, not a bug fix.
kodjima33
left a comment
There was a problem hiding this comment.
Feature (Reprocess Transcription), not a bug fix — approve-only per confidence gate; also DIRTY (needs manual rebase, left untouched).
kodjima33
left a comment
There was a problem hiding this comment.
Feature (reprocess transcription action); approve-only per policy.
Integrates upstream 789de51 without rewriting PR history. Verification evidence: repair-evidence/20261011-14299-*.log (local coordinator handoff); PR body records commands and remaining hardware limitations. Failure-Class: none
Opt transcription replay into shared-merger download error propagation after queued jobs settle. Preserve best-effort playback defaults. Regression coverage exercises actual individual/batch futures for complete and partial outages; replay must fail before STT and retain the previous transcript. Failure-Class: none
Capture the actual Flutter widgets using their existing isolated test fixtures, the iOS theme and bundled fonts. This documents the rendered UI only; radio behavior, on-device interactions and firmware timing remain pending central hardware validation.
Declare the existing 400/502 error envelope in OpenAPI and register its nested Dart DTOs. Consume generated decoding while preserving stable no-audio and generic-failure behavior. Cover malformed response shapes and verify the unchanged schema-inventory guard through canonical test.sh. Failure-Class: none
kodjima33
left a comment
There was a problem hiding this comment.
feat: Reprocess Transcription on conversation detail -- feature, approve-only (CI failing informational only, doesn't matter since not merging)
kodjima33
left a comment
There was a problem hiding this comment.
feat: Reprocess Transcription on conversation detail -- feature, approve-only (CI failing informational only, doesn't matter since not merging)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
kodjima33
left a comment
There was a problem hiding this comment.
Re-confirmed: feature (Reprocess Transcription), approve-only ceiling; mergeStateStatus DIRTY so not mergeable regardless.
|
@apoorvdarshan this conflicts with |
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01L6nc4Dq4LXiSGCnJBvD7ix
kodjima33
left a comment
There was a problem hiding this comment.
Feature (Reprocess Transcription action) — approve only per area rule; mergeStateStatus is DIRTY so no merge regardless.
- Detail provider: main replaced the summary reprocess loading helpers; reprocessTranscription now sets reprocessConversationId directly, before notifying, and keeps its own loading state. - Listed storage chunks now carry their path: the merger test fixture gives its individual chunk one, as list_audio_chunks does. - The reprocessed conversation is parsed off the UI isolate above the list threshold (INV-PERF-1); the small error envelope is annotated. - API clients regenerated. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01L6nc4Dq4LXiSGCnJBvD7ix
- No HTTP retry and the long reprocess timeout: the endpoint is not idempotent. - Success clears a stale summary failure, bumps the refresh generation and ends any speaker-labeling pass, as summary reprocess does. - Failure resets loading before reporting the crash; analytics and error toasts use the reprocessed conversation, toasts only when it is open. - Summary actions treat either reprocess in flight as busy. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01L6nc4Dq4LXiSGCnJBvD7ix
|
Verdict: no blocking issues found - the backend route, the app integration, and the generated-client updates all check out; leaving the merge decision on this head to the maintainers already engaged on this thread. What I verified:
Cost: each tap re-runs STT over the conversation's full stored audio plus the enrichment pipeline - real provider spend, mitigated by the shared reprocess rate limit. UX: the previous transcript is replaced with no undo (documented in backend/docs/listen_pusher_pipeline.mdx); a worse re-transcription cannot be reverted. Security: owner-scoped route, no new dependencies, no CI/workflow changes - nothing concerning. USER IMPACT: users get a "Reprocess Transcription" item on conversations with stored audio; tapping it re-runs speech-to-text from the recording and regenerates the summary, with distinct messages for missing audio vs provider failure. Two things I'd still want:
No urgent concerns; the final call on this head stays with the maintainer review already in progress. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
Update ConversationReprocessCall fakes for main's forceOmi parameter, use Env.overrideApiBaseUrl in the retry test, and fake the reprocess-transcription helper in the new merge duplicate-guard suite, whose endpoints stub has no timeit. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@Git-on-my-level heads-up: the required UI author approval check (
A possible fix: read files over the limit through the Git blobs API ( |
|
The implementation is solid and well-tested end to end; I found no blocking issues. The remaining merge blockers are process/product ones, not code correctness. What I verified
Two minor nits (non-blocking)
Material dimensions
USER IMPACT: none until a user picks "Reprocess Transcription" in a conversation's overflow menu — then the transcript and summary are regenerated from the stored audio, replacing the previous transcript permanently. What I'd still want
Leaving the synchronous-endpoint and no-undo product decisions to the human maintainers — those are direction calls, not correctness ones. This review was generated by AI on behalf of the Omi maintainers. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
Re-run speech-to-text from a conversation's stored audio, then pass the replacement transcript through the existing enrichment pipeline. The existing summary-only reprocess action remains separate.
POST /v1/conversations/{id}/reprocess-transcriptionstays owner-scoped, rejects soft-deleted conversations and shares the existingconversations:reprocessrate budget.detail.code=no_audio); empty speech usesno_speech. The Flutter client classifies stable codes instead of matching human-readable text. Unknown/malformed responses remain generic failures.789de5136cd124991e9956f9ff72891b3ad4416dwith a regular merge; API clients and localizations regenerated from their sources.Validation
--concurrency=2.--maxWorkers=2; package versions and the lockfile are unchanged.Remaining validation and maintainer decisions
No live STT/storage request or physical-phone overflow-menu interaction has been exercised in this repair. Host tests do not establish production gateway timeouts. The endpoint remains synchronous; successful replay replaces the previous transcript without undo. Missing chunks and corrupt/undecodable formats retain the existing storage fallback semantics; strict retranscription rejects download exceptions, including partial-download outages. Speech-hour charging and recovery of a worse nonempty transcript remain outside this feature. Mobile installs are coordinated separately.
Product invariants affected
none
Failure-Class: none
Line-count exceptions
Line-Count-Exception: app/lib/backend/http/api/conversations.dart | 1472 -> 1520 | Client call and typed error mapping for POST /v1/conversations/{id}/reprocess-transcription.
Line-Count-Exception: app/lib/pages/conversation_detail/conversation_detail_provider.dart | 1444 -> 1512 | Keep transcription replay and mutual exclusion on the existing detail-state owner.
Merge formatter exception
The ordinary merge pre-commit hook ran. Unrelated imported-main formatter changes were then restored byte-for-byte to pinned
789de5136, and a user-authorized, one-command commit-hook override was used only for that restore-only amend. Git identity, conflict-marker checks and pinned formatting checks for authored paths passed manually. The full shared preflight remains enabled; the separate local desktop compile limitation is documented below.Additional strict-download verification:
test_reprocess_transcription.pypassed all 18 tests, including four real-merger individual/batch and partial-outage regressions; the hermetic transcription-route E2E rerun passed all 3 selected cases. Existing audio-capture candidate and retry-order guards also passed in the preceding run.UI evidence
Host-rendered snapshots of the actual Flutter widgets using isolated test fixtures, bundled fonts and iOS theme. These are not phone/simulator captures or hardware sign-off.
Local desktop compile limitation
Local desktop compile is unverified, blocked by dependency downloads. SwiftPM fetched source dependencies but failed downloading official Sentry 8.58.0 and Sparkle 2.9.4 binary artifacts with timeout/network-connection errors before compilation. One targeted official-artifact recovery also failed: Sparkle returned HTTP 200 but transferred only 6,946,816 of 11,568,656 bytes before its 180-second deadline. Existing caches and the partial download were preserved; no cold wipe or dependency-version change was made.
The repository's documented
PRE_PUSH_SKIP_DESKTOP_SWIFT=1is applied only to this push for that external blocker. All other pre-push gates, including all 57 shared preflight checks, backend typecheck/tests, generated-client compatibility/freshness checks and formatting, remain enabled. Desktop compilation still needs separate CI/build evidence; this repair does not claim it passed locally. All heavy work used the shared serialization lock, nice 10 and at most two build/test workers.The normal push completed without force. All selected checks passed except the explicitly documented local desktop compile opt-out for repeated external artifact-download failures. Full CI/platform suites and physical hardware checks remain separate evidence.
CI schema-contract follow-up
The initial full backend CI run found one attributable schema-inventory failure: the new error classifier decoded raw JSON outside the generated wire contract. Added an explicit
TranscriptionReprocessErrorResponsemodel for HTTP 400/502, registered both envelope/detail Dart DTOs, regenerated the canonical OpenAPI/Dart/TypeScript outputs, and switched the Flutter classifier to the generated decoder. Unknown reasons and malformed envelope fields remain generic failures; backend response codes and normal feature behavior are unchanged. The schema inventory implementation and its guard tests were not modified.Canonical
test.shcoverage on the final generated working tree passed the full schema inventory, reprocess and Dart-generator test files; the previously failingtest_inventory_openapi_route_response_decode_migration_completepassed. The hermetic route E2E rerun passed 3 cases, the relevant Flutter rerun passed 6 tests with concurrency 2, and the analyzer ratchet passed. Full CI will rerun on the follow-up head. This app decoding change is handed to the central personal Release integration; no extra device build/install occurs here.Final CI attribution
The generated-client schema fix is pushed at
0456b4776d749ae2947b9b17871b83f713e9ee2d. Backend shards 1, 2 and 4 passed, including the previously failing schema inventory. Shard 3 failed two unchanged cursor tests:test_cursor_pages_beyond_6000_historical_with_bounded_calls_no_capandtest_budgeted_legacy_hydration_keeps_rows_when_the_charge_exhausts, both withMemoryReadAdmissionDenied: 503.CI checked synthetic merge
58b5d5ab6028214bd28916fcc62a6f26135413e1, combining this PR with newer upstreama36fe087215243c4595c11dc4666384ba4c6aa68. The failingbackend/utils/memory/read_resilience.pywas added upstream by #21227, source commit2f0e9b2da638e386ff091a38d4ab590e71f9a859, and exists only in the newer base, not this pinned PR head; the cursor test file is byte-identical to the base. Main's backend job on that exact base independently fails the exact same two tests. PR job evidence.This remaining cloud failure is an inherited upstream admission/test-contract regression. No unrelated production logic, test guard, admission budget or base integration was changed to conceal it. The branch remains mergeable; full cloud CI is not green. The coordinator reports the single personal Release phone build/install/launch succeeded with this final app head included; real Omi/OmiGlass, tap-feel and live provider validation remain separate.
Line-Count-Exception: backend/routers/conversations.py | 2487 -> 2551 | new POST /v1/conversations/{id}/reprocess-transcription endpoint and its error mapping
Line-Count-Exception: backend/utils/other/storage.py | 2807 -> 2815 | opt-in raise_on_download_error so stored-audio retranscription fails instead of transcribing partial audio