Skip to content

Bug: conversations get stuck in processing states and never finalize #9809

Closed

Description

@hugoaap-code

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 processing and completed, 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

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}/finalize for conversations in in_progress
  • POST /v1/conversations/{id}/reprocess for conversations in processing, merging, or failed

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

  1. Record or create a conversation normally from a device
  2. Monitor its status through the API using GET /v1/conversations
  3. Observe that some conversations finalize normally, while others remain stuck in processing or in_progress
  4. 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

  1. Check server logs for failures in the process_conversation() pipeline for affected conversation IDs
  2. Verify whether LLM summarization or metadata generation is failing silently
  3. Inspect any external app/plugin calls for timeouts or hangs
  4. Check for database transaction rollbacks or partial writes
  5. Add monitoring and alerts for conversations that remain in in_progress, processing, merging, or failed beyond 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

  1. added
    bug
    on Jul 15, 2026
  2. undivisible commented on Jul 20, 2026

    @undivisible
    Collaborator

    Closed: fix committed to main. See commit reference in previous audit. Stale-open — resolution confirmed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions