Repository navigation
Description
Summary
Since #19353, macOS desktop local_segments recordings upload and land completed but get no summary, no action items, no events, empty overview and category other — the issue's exact fingerprint (#19705). I traced it: the from-segments upload enters process_conversation as CAPTURE_END (run_now=False), so the legacy lazy desktop deferral fires and returns a cheap placeholder before any structuring.
Root cause (proven, current main a2d37deaa9)
POST /v1/conversations/from-segments→_create_conversation_from_segments(backend/routers/developer.py:1926) callsprocess_conversation(...)atdeveloper.py:2142/2144with notrigger, so it defaults toProcessingTrigger.CAPTURE_END(utils/conversations/processing_trigger.py:82;run_now=False).process_conversationdesktop gate 3 (backend/utils/conversations/process_conversation.py:2834-2850) fires forsource == ConversationSource.desktopwhennot force_process and not is_reprocess and should_defer_desktop_processing(uid)→_store_deferred_conversationstores_build_deferred_structured(...)(:2242-2257): title = first 8 transcript words, overview'', categoryother, no action items/events — then returns at:2850, before_get_structured(:2933) andresolve_speakers_for_processing(:2921).- Device sessions are exempt by
source; desktopcloud_reconcileis exempt by trigger because/finalizeand/v1/conversationspassProcessingTrigger.CLIENT_FINALIZE(run_now=True,processing_trigger.py:58), which fails thenot force_processcondition.from-segmentsis the only desktop finalize that enters withrun_now=False— hence the desktop-local_segments-only asymmetry.
Ruled out (with evidence): language=multi is not a server gate (only a prompt response-language string); there is no segment-count/size cap before structuring; crash_recovery/recording_disabled have no downstream branch. The single undiarized segment is client-side (ConversationFinalizationService.swift:208-236 merges same-speaker segments; local capture labels only mic/system).
Proposed fix
Align the upload with the established desktop finalize path — in _create_conversation_from_segments, pass trigger=ProcessingTrigger.CLIENT_FINALIZE for both process_conversation(...) calls, so the client-uploaded, already-final transcript is not swallowed by the capture-time deferral. This does not bypass the free-tier policy branch (which deliberately ignores force/reprocess) and does not change relevance or JIT.
Coordination: backend/routers/developer.py::_create_conversation_from_segments is rewritten by the open (stalled, dirty) PR #10796, so this needs to land before/with that rewrite. Alternative in-process fix: exempt explicit client uploads from gate 3 in process_conversation.py (adjacent to #19777).
Open product question: if the freemium intent is that from-segments uploads also stay deferred, this is a product change rather than a bug fix — flagging so the maintainer can choose the direction.
Tests
- Extend
backend/tests/unit/test_free_tier_entrypoint_matrix.pywith adeveloper_from_segmentsdesktop entry (the existing one issource=phone) asserting thedesktop_freecell isprocess, notlegacy_defer. test_developer_from_segments_idempotency.py: assertprocess_conversationis called withtrigger=CLIENT_FINALIZEon both the session and non-session paths.- Behavioural: with
should_defer_desktop_processing → True,CLIENT_FINALIZEruns_get_structuredand persists the real title;CAPTURE_ENDstores the placeholder.
Proposing US$50 (proven, desktop-only root cause; ~1–3 line fix + tests; high user impact). INV-TASK-2 governs desktop conversation extraction if the fix lands in process_conversation.py.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsIn review
Activity
kduailabs commentedon Sep 29, 2026
Implemented: PR #19788 #19788 — passes
trigger=ProcessingTrigger.CLIENT_FINALIZEat the from-segments call sites, plus the desktop matrix cell and call-site test. Flagged the product question (spend at upload fordesktop_freevs deferral) and the #10796 coordination in the PR body.aryanorastar commentedon Oct 2, 2026
Duplicate of #19705, the earlier open report of the same from-segments desktop skip. Keep #19705.