Skip to content

[BUG] Long dictation exceeding context window silently truncates output mid-sentence instead of notifying or falling back to raw ASR #899

Closed

Description

@mlsimon734

Describe the bug

Similar to the 5-minute / length constraints noted in #876, when performing continuous dictation that exceeds the configured Dictation window (e.g. 4,096 tokens / ~800 words / ~5 minutes), the AI post-processing pipeline (FluidIntelligenceCore / fluid-intelligence-mlx) silently truncates the output mid-sentence at the generation output limit (~512 tokens / ~200 words).

As a result, ~94% of a long transcript is discarded without any user notification, error toast, or automatic fallback to the complete raw ASR transcript.

Reproduction steps

  1. In AI Enhancement settings, select fluid-1 (MLX) with the default Dictation window set to 4,096 tokens.
  2. Record a continuous dictation / braindump for ~10–15 minutes (~3,000+ words).
  3. Stop recording and wait for transcription + AI refinement.

Expected behavior

Long dictations should degrade gracefully without silent data loss:

  1. Context Window Check & Fallback: If the raw ASR transcript + system prompt exceeds the model's configured context window (or cannot fit generation headroom), FluidVoice should automatically fall back to outputting the full raw Parakeet v2 transcript.
  2. User Notification: Trigger a non-intrusive notification / banner (e.g., "Dictation exceeded AI context window — pasted raw transcript instead").
  3. Chunked Refinement (Feature Suggestion): For transcripts longer than a single context window, run refinement across sliding/chunked paragraph windows rather than a single prompt pass.

Actual behavior

  1. Parakeet v2 correctly transcribes the full audio stream (~3,385 words / ~18,870 characters).
  2. Fluid One receives the raw text, but because input prompt (~4,300 tokens) + system prompt (~1,100 tokens) exceeds the 4,096 context budget, generation cuts off abruptly mid-sentence after generating 512 tokens (~207 words).
  3. The pasted output terminates at word n=207 (only ~6% of the transcript). The remaining 94% of the dictated text is permanently discarded with no error or notification.

App Version

1.6.9 (Build 20)

macOS Version

macOS 15+

Architecture

Apple Silicon (M-series, MLX backend)

Logs or crash report

Prompt Overhead: Default system prompt (fluid1_dictation_default.md) consumes ~1,100 tokens.
Token Budget Math: With a 4,096 context window and a ~1,100 token system prompt, any dictation longer than ~2,500 tokens (~1,800 words) leaves insufficient KV cache headroom for generation, causing fluid-intelligence-mlx to exhaust its maxOutputTokens allocation mid-stream.

Screenshots or screen recording

No response

Activity

  1. altic-dev commented on Aug 26, 2026

    @altic-dev
    Owner

    actuallly good point. I should make the ASR paste automatically! thanks for flagging it!

  2. self-assigned this
    on Aug 26, 2026
  3. added a commit that references this issue on Aug 26, 2026
    15b10ba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions