mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #214] [Issue]: Long-Term Memory extraction fails with llama.cpp grammar sampler error #106
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#106
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Promansis on GitHub (Aug 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/214
Originally assigned to: @Promansis on GitHub.
Summary
Long-Term Memory extraction fails against local llama.cpp OpenAI-compatible endpoints when the endpoint converts the requested JSON schema into a grammar that exceeds llama.cpp's repetition safety limits. The package reports the provider's HTTP 400 instead of retrying without structured output.
Affected package
long-term-memory(current package version1.1.0; fix target1.1.2)Expected behavior
Extraction should complete against llama.cpp OpenAI-compatible endpoints. If the endpoint cannot compile the generated structured-output grammar, Long-Term Memory should retry the extraction without
response_format, then parse and validate the returned JSON using its existing server-side parser.Actual behavior
Extraction fails with:
The llama.cpp server logs:
The existing fallback recognizes unsupported schema/response-format errors, but this error only mentions sampler and grammar parsing, so the fallback is not triggered.
Steps to reproduce
Environment
1.1.0Logs, screenshots, or video
Additional context
The likely fix is to classify llama.cpp grammar initialization/parse failures as structured-output incompatibility in the existing extraction fallback, rather than weakening the extraction schema limits. Bump the Long-Term Memory package to
1.1.2and rebuild the generated artifact and catalog entries.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: