Repository navigation
Description
Bug Report: Conversations get stuck in processing states and never finalize
Summary
Conversations frequently get stuck in processing, in_progress, merging, or failed status and never auto-complete. When this happens, they disappear from the web app and become unreachable to users. The only way to recover them is through direct API access with an auth token.
Current Behavior
- Conversations created through normal device recording sometimes fail to finalize and remain in non-terminal states indefinitely.
- The web app appears to filter conversations by default to show only
processingandcompleted, so many stuck conversations are effectively invisible. - Examples observed:
- About 161 conversations in
in_progress, including 138+ older than 7 days and 11 with transcript segments - About 75 conversations in
processing, all with transcript segments, ranging from 0 to 2+ days old - Some conversations have remained stuck for hours, days, or more than 4 months
- About 161 conversations in
Impact
This is effectively a data loss and user trust issue.
Valuable conversations with real transcript content are being lost from the user’s perspective, even though the underlying audio/text data still exists. Users have no reliable way to know these conversations exist or recover them on their own.
Root Cause
The exact cause is still unknown. Possible explanations include:
- Silent failure in the LLM processing pipeline, such as title or summary generation
- Timeout or hang in an app/plugin integration
- Race condition in conversation finalization
- Database transaction rollback without sufficient error reporting
Temporary Workaround
Stuck conversations can be rescued via API:
POST /v1/conversations/{id}/finalizefor conversations inin_progressPOST /v1/conversations/{id}/reprocessfor conversations inprocessing,merging, orfailed
These endpoints consistently force the conversations to complete, including generating titles and summaries. That strongly suggests the underlying content is intact and the AI pipeline still works when explicitly triggered.
Reproduction Steps
- Record or create a conversation normally from a device
- Monitor its status through the API using
GET /v1/conversations - Observe that some conversations finalize normally, while others remain stuck in
processingorin_progress - Verify that stuck conversations do not auto-complete unless explicitly finalized or reprocessed via API
Expected Behavior
- All conversations should auto-finalize after recording ends
- Failed conversations should be retried automatically or surfaced to the operations team
- Users should be notified if a conversation fails to process
- No conversation should silently disappear while its data still exists
Suggested Investigation
- Check server logs for failures in the
process_conversation()pipeline for affected conversation IDs - Verify whether LLM summarization or metadata generation is failing silently
- Inspect any external app/plugin calls for timeouts or hangs
- Check for database transaction rollbacks or partial writes
- Add monitoring and alerts for conversations that remain in
in_progress,processing,merging, orfailedbeyond an expected threshold
Environment
- API endpoint:
https://api.omi.me - Web app:
https://app.omi.me - Environment: production
Additional Note
This issue was discovered while building a recovery tool. The /finalize and /reprocess endpoints are functioning correctly and provide a working reference for how auto-finalization should behave.
The rate limits on those endpoints (10/h for finalize and 3/h for reprocess) also suggest these operations may be relatively expensive, so the root cause may be related to performance, queueing, or resource contention.
Activity
test(listen): cover durable finalization recovery through Cloud Tasks (…
undivisible commentedon Jul 20, 2026
Closed: fix committed to main. See commit reference in previous audit. Stale-open — resolution confirmed.
Merge origin/main; raise conversations.py baseline for the BasedHardw…
fix(listen): recover orphaned in_progress conversations at session bo…
Merge origin/main; raise conversations.py baseline for the BasedHardw…
fix(listen): recover orphaned in_progress conversations at session bo…
Merge origin/main; raise conversations.py baseline for the BasedHardw…
fix(listen): recover orphaned in_progress conversations at session bo…
Merge origin/main; raise conversations.py baseline for the BasedHardw…
Merge origin/main into fix/9809-recover-stale-in-progress
fix(listen): register the BasedHardware#9809 orphan-recovery query an…
test(backend): derive the provisioning argv from the manifest tail
fix(listen): recover orphaned in_progress conversations at session bo…