Skip to content

[Bounty Proposal] fix(desktop): local-segments uploads skip enrichment because they enter processing as CAPTURE_END ($50 proposed) #19783

Closed as duplicate

Description

@kduailabs

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) calls process_conversation(...) at developer.py:2142/2144 with no trigger, so it defaults to ProcessingTrigger.CAPTURE_END (utils/conversations/processing_trigger.py:82; run_now=False).
  • process_conversation desktop gate 3 (backend/utils/conversations/process_conversation.py:2834-2850) fires for source == ConversationSource.desktop when not force_process and not is_reprocess and should_defer_desktop_processing(uid) → _store_deferred_conversation stores _build_deferred_structured(...) (:2242-2257): title = first 8 transcript words, overview '', category other, no action items/events — then returns at :2850, before _get_structured (:2933) and resolve_speakers_for_processing (:2921).
  • Device sessions are exempt by source; desktop cloud_reconcile is exempt by trigger because /finalize and /v1/conversations pass ProcessingTrigger.CLIENT_FINALIZE (run_now=True, processing_trigger.py:58), which fails the not force_process condition. from-segments is the only desktop finalize that enters with run_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.py with a developer_from_segments desktop entry (the existing one is source=phone) asserting the desktop_free cell is process, not legacy_defer.
  • test_developer_from_segments_idempotency.py: assert process_conversation is called with trigger=CLIENT_FINALIZE on both the session and non-session paths.
  • Behavioural: with should_defer_desktop_processing → True, CLIENT_FINALIZE runs _get_structured and persists the real title; CAPTURE_END stores 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.

Activity

  1. kduailabs commented on Sep 29, 2026

    @kduailabs
    ContributorAuthor

    Implemented: PR #19788 #19788 — passes trigger=ProcessingTrigger.CLIENT_FINALIZE at the from-segments call sites, plus the desktop matrix cell and call-site test. Flagged the product question (spend at upload for desktop_free vs deferral) and the #10796 coordination in the PR body.

  2. aryanorastar commented on Oct 2, 2026

    @aryanorastar
    Collaborator

    Duplicate of #19705, the earlier open report of the same from-segments desktop skip. Keep #19705.

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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions