[GH-ISSUE #6488] [Issue]: LTM extraction is limited by fixed 2-minute body timeout #3625

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

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

Originally assigned to: @Promansis on GitHub.

Summary

Long-Term Memory extraction through an agent connection can fail on large payloads because the LLM transport uses a fixed two-minute inter-chunk body timeout instead of the configured Marinara Engine agent request timeout.

Affected package

long-term-memory (agent-backed extraction)

Expected behavior

LTM extraction should use the host's normal agent request timeout policy, including AGENT_CALL_TIMEOUT_MS, so a healthy provider producing a large extraction response is allowed to complete within the configured agent timeout.

Actual behavior

The LTM capability call reaches the Engine LLM provider with the fallback LLM_BODY_TIMEOUT value of 120 seconds between response body chunks. Large or slow-but-progressing extraction requests can fail at that limit even when the configured agent timeout is longer.

Steps to reproduce

  1. Configure Long-Term Memory extraction to use an agent connection.
  2. Configure AGENT_CALL_TIMEOUT_MS to a value longer than two minutes.
  3. Submit a sufficiently large source that requires a long extraction response or has response chunks separated by more than two minutes.
  4. Observe the LTM extraction failure from the LLM transport.
  5. Increase or remove the fixed body timeout in a staging build and repeat; the extraction is allowed to continue.

Environment

  • Marinara Engine version: Not supplied; the behavior was observed against staging source containing LLM_BODY_TIMEOUT = 120 * 1000.
  • Package version: long-term-memory 1.3.6
  • Install type: Not supplied
  • OS + version: Not supplied
  • Browser or app shell: Not supplied

Logs, screenshots, or video

The relevant source configuration is:

const LLM_BODY_TIMEOUT = 120 * 1000; // 2 minutes between body chunks

The reported symptom is LTM extraction timing out on a large payload while the same configured agent connection works for other agents.

Additional context

LTM passes the host-provided AbortSignal through languageModels.resolveForRequest(...).chatComplete(...); it does not define its own numeric timeout. The defect is in the host transport timeout policy used by the LTM capability path, but it is surfaced specifically as an LTM agent extraction failure.

The desired behavior is to use the default Marinara Engine timeout policy consistently rather than relying on the fixed LLM_BODY_TIMEOUT fallback.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Sep 21, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6488 Originally assigned to: @Promansis on GitHub. ## Summary Long-Term Memory extraction through an agent connection can fail on large payloads because the LLM transport uses a fixed two-minute inter-chunk body timeout instead of the configured Marinara Engine agent request timeout. ## Affected package `long-term-memory` (agent-backed extraction) ## Expected behavior LTM extraction should use the host's normal agent request timeout policy, including `AGENT_CALL_TIMEOUT_MS`, so a healthy provider producing a large extraction response is allowed to complete within the configured agent timeout. ## Actual behavior The LTM capability call reaches the Engine LLM provider with the fallback `LLM_BODY_TIMEOUT` value of 120 seconds between response body chunks. Large or slow-but-progressing extraction requests can fail at that limit even when the configured agent timeout is longer. ## Steps to reproduce 1. Configure Long-Term Memory extraction to use an agent connection. 2. Configure `AGENT_CALL_TIMEOUT_MS` to a value longer than two minutes. 3. Submit a sufficiently large source that requires a long extraction response or has response chunks separated by more than two minutes. 4. Observe the LTM extraction failure from the LLM transport. 5. Increase or remove the fixed body timeout in a staging build and repeat; the extraction is allowed to continue. ## Environment - Marinara Engine version: Not supplied; the behavior was observed against staging source containing `LLM_BODY_TIMEOUT = 120 * 1000`. - Package version: `long-term-memory` 1.3.6 - Install type: Not supplied - OS + version: Not supplied - Browser or app shell: Not supplied ## Logs, screenshots, or video The relevant source configuration is: ```ts const LLM_BODY_TIMEOUT = 120 * 1000; // 2 minutes between body chunks ``` The reported symptom is LTM extraction timing out on a large payload while the same configured agent connection works for other agents. ## Additional context LTM passes the host-provided `AbortSignal` through `languageModels.resolveForRequest(...).chatComplete(...)`; it does not define its own numeric timeout. The defect is in the host transport timeout policy used by the LTM capability path, but it is surfaced specifically as an LTM agent extraction failure. The desired behavior is to use the default Marinara Engine timeout policy consistently rather than relying on the fixed `LLM_BODY_TIMEOUT` fallback. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:05:13 +07:00
  • closed this issue
  • added the
    bug
    label
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#3625
No description provided.