You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Long dictation exceeding context window silently truncates output mid-sentence instead of notifying or falling back to raw ASR #899
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
In AI Enhancement settings, select fluid-1 (MLX) with the default Dictation window set to 4,096 tokens.
Record a continuous dictation / braindump for ~10–15 minutes (~3,000+ words).
Stop recording and wait for transcription + AI refinement.
Expected behavior
Long dictations should degrade gracefully without silent data loss:
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.
User Notification: Trigger a non-intrusive notification / banner (e.g., "Dictation exceeded AI context window — pasted raw transcript instead").
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
Parakeet v2 correctly transcribes the full audio stream (~3,385 words / ~18,870 characters).
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).
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.
Activity
altic-dev commentedon Aug 26, 2026
actuallly good point. I should make the ASR paste automatically! thanks for flagging it!
Fix long Fluid-1 dictation fallback