-
Notifications
You must be signed in to change notification settings - Fork 537
Closed
Description
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
aiTaskStoreto manage task execution
Potential causes:
- Race condition between recording stop and transcript availability
aiTaskStorestate 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Type
Projects
Status
Done