Skip to content

Title and summary generation sometimes not triggered after recording stops #3535

@devin-ai-integration

Description

@devin-ai-integration

Problem

After stopping a recording session, the automatic title and summary generation sometimes does not trigger. This is inconsistent behavior that affects the core value proposition of the app.

Expected Behavior

When a recording session stops and there is sufficient transcript content (≥5 words), the useAutoEnhance hook should reliably trigger AI enhancement to generate both a title and summary.

Technical Context

The auto-enhancement logic is in apps/desktop/src/hooks/useAutoEnhance.ts. The hook:

  • Triggers after session recording stops
  • Requires ≥5 words in transcript
  • Uses aiTaskStore to manage task execution

Potential causes:

  • Race condition between recording stop and transcript availability
  • aiTaskStore state not being updated correctly
  • LLM server not being ready or failing silently
  • Edge cases in the word count check

Acceptance Criteria

  • Identify the root cause of intermittent failures
  • Title generation triggers reliably after recording stops
  • Summary generation triggers reliably after recording stops
  • Add appropriate error handling and user feedback if generation fails
  • Add logging/telemetry to track generation success rate

Labels

product/desktop, area/backend

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions