Coach chat always fails: compiled grammar too large #299

Closed
opened 2026-11-20 13:49:19 +00:00 by chris-kreidl · 0 comments
chris-kreidl commented 2026-11-20 13:49:19 +00:00 (Migrated from github.com)

Every plan-chat call since chat-v10 (2026-11-14 on) fails at the API with 400 "The compiled grammar is too large"; the athlete sees "The coach couldn't answer this time". Last passing chat: 2026-11-09 (chat-v7). Replan, generate and ride chat still pass.

Probes: CoachReply's context (ContextDraft) plus patch.exceptions push the schema over the limit; either alone on top of the patch leaves little or no room. Fix: a flat wire schema for chat, validated into the real schemas after the call, and a log line for AI failures.

Every plan-chat call since chat-v10 (2026-11-14 on) fails at the API with 400 "The compiled grammar is too large"; the athlete sees "The coach couldn't answer this time". Last passing chat: 2026-11-09 (chat-v7). Replan, generate and ride chat still pass. Probes: CoachReply's `context` (ContextDraft) plus `patch.exceptions` push the schema over the limit; either alone on top of the patch leaves little or no room. Fix: a flat wire schema for chat, validated into the real schemas after the call, and a log line for AI failures.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ckreidl/trainer#299
No description provided.