[GH-ISSUE #6828] [Issue]: Noodle 1.2.24 capability bundle ignores CHAT_GENERATION_TIMEOUT_MS (regression of #4174) #3826

Closed
opened 2026-10-21 06:07:56 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @soylentgrn on GitHub (Sep 28, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6828

Summary

Noodle timeline refreshes still abort at ~300 s with HeadersTimeoutError even when CHAT_GENERATION_TIMEOUT_MS is raised and confirmed live. #4174 fixed this in the engine core (llmAgentOptions() now reads getChatGenerationTimeoutMs()), but the installed Noodle capability package runs its own bundled copy of the LLM client, which appears to predate that fix.

Expected behavior

With CHAT_GENERATION_TIMEOUT_MS=1800000, a Noodle refresh against a slow local model is allowed up to 30 minutes to first byte, as the #4174 fix intended.

Actual behavior

The refresh aborts at exactly +301 s with TimeoutError (DOMException code 23, AbortSignal.timeout) plus undici HeadersTimeoutError, logged as [noodle] Timeline refresh failed and [noodler-fan] Automatic audience activity failed. 301 s is the old 300 000 ms default.

Evidence that the value is live in the engine but not in Noodle:

$ docker exec -w /app marinara node -e 'const rc=require("/app/packages/server/dist/config/runtime-config.js");
   console.log(rc.getChatGenerationTimeoutMs(), rc.getAgentCallTimeoutMs())'
1800000 1800000
  • Engine core packages/server/dist/services/llm/base-provider.js: llmAgentOptions() uses getChatGenerationTimeoutMs() (fixed).
  • Noodle runs from data/capability-packages/versions/noodle/1.2.24/server.mjs (and a matching capability-runtime-snapshots/noodle-1.2.24-* copy). That bundle contains no reference to CHAT_GENERATION_TIMEOUT_MS or AGENT_CALL_TIMEOUT_MS; it does read EMBEDDING_TIMEOUT_MS (default 3e5), so it carries its own copy of runtime-config.

Steps to reproduce

  1. Docker install, engine v2.4.6, Noodle capability 1.2.24, a local OpenAI-compatible model slow enough that a refresh takes more than 5 minutes.
  2. Set CHAT_GENERATION_TIMEOUT_MS=1800000, restart, confirm with the one-liner above.
  3. Trigger a Noodle timeline refresh; it fails at ~301 s.
  4. grep -c CHAT_GENERATION_TIMEOUT_MS data/capability-packages/versions/noodle/1.2.24/server.mjs → 0.

Environment

  • Marinara Engine version: v2.4.6 (ghcr.io/pasta-devs/marinara-engine:2.4.6)
  • Noodle capability package: 1.2.24
  • Install type: docker
  • OS + version: Ubuntu host, Docker Engine
  • Browser or app shell: n/a (automatic refresh reproduces it)

Additional context

  • Related: #4174 (same symptom, fixed in core), #3958.
  • Workaround: use a model fast enough that refreshes finish well under 300 s.
  • Suggested fix: rebuild/republish the Noodle package against the current core, or have packages resolve LLM transport and timeouts from the host engine rather than a bundled copy.
Originally created by @soylentgrn on GitHub (Sep 28, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6828 ## Summary Noodle timeline refreshes still abort at ~300 s with `HeadersTimeoutError` even when `CHAT_GENERATION_TIMEOUT_MS` is raised and confirmed live. #4174 fixed this in the engine core (`llmAgentOptions()` now reads `getChatGenerationTimeoutMs()`), but the installed Noodle capability package runs its own bundled copy of the LLM client, which appears to predate that fix. ## Expected behavior With `CHAT_GENERATION_TIMEOUT_MS=1800000`, a Noodle refresh against a slow local model is allowed up to 30 minutes to first byte, as the #4174 fix intended. ## Actual behavior The refresh aborts at exactly **+301 s** with `TimeoutError` (`DOMException` code 23, `AbortSignal.timeout`) plus undici `HeadersTimeoutError`, logged as `[noodle] Timeline refresh failed` and `[noodler-fan] Automatic audience activity failed`. 301 s is the old 300 000 ms default. Evidence that the value is live in the engine but not in Noodle: ``` $ docker exec -w /app marinara node -e 'const rc=require("/app/packages/server/dist/config/runtime-config.js"); console.log(rc.getChatGenerationTimeoutMs(), rc.getAgentCallTimeoutMs())' 1800000 1800000 ``` - Engine core `packages/server/dist/services/llm/base-provider.js`: `llmAgentOptions()` uses `getChatGenerationTimeoutMs()` (fixed). - Noodle runs from `data/capability-packages/versions/noodle/1.2.24/server.mjs` (and a matching `capability-runtime-snapshots/noodle-1.2.24-*` copy). That bundle contains **no reference** to `CHAT_GENERATION_TIMEOUT_MS` or `AGENT_CALL_TIMEOUT_MS`; it does read `EMBEDDING_TIMEOUT_MS` (default `3e5`), so it carries its own copy of runtime-config. ## Steps to reproduce 1. Docker install, engine v2.4.6, Noodle capability 1.2.24, a local OpenAI-compatible model slow enough that a refresh takes more than 5 minutes. 2. Set `CHAT_GENERATION_TIMEOUT_MS=1800000`, restart, confirm with the one-liner above. 3. Trigger a Noodle timeline refresh; it fails at ~301 s. 4. `grep -c CHAT_GENERATION_TIMEOUT_MS data/capability-packages/versions/noodle/1.2.24/server.mjs` → `0`. ## Environment - Marinara Engine version: v2.4.6 (`ghcr.io/pasta-devs/marinara-engine:2.4.6`) - Noodle capability package: 1.2.24 - Install type: docker - OS + version: Ubuntu host, Docker Engine - Browser or app shell: n/a (automatic refresh reproduces it) ## Additional context - Related: #4174 (same symptom, fixed in core), #3958. - Workaround: use a model fast enough that refreshes finish well under 300 s. - Suggested fix: rebuild/republish the Noodle package against the current core, or have packages resolve LLM transport and timeouts from the host engine rather than a bundled copy.
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
Pasta-Devs/Marinara-Engine#3826
No description provided.