mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4308] [Issue]: Add chat message range filtering to tool calls #2332
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2332
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 @SpicyMarinara on GitHub (Jul 30, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4308
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Mari does not limit chat retrieval when asked to use only recent messages or messages after a specified post. It instead attempts to read the entire chat, causing repeated truncation warnings and eventually reaching the command limit.
Expected behavior
Mari should recognize requests such as using only the last 200 messages or messages after a specified post number and apply that range in the chat retrieval tool call.
Actual behavior
Mari attempts to read the entire chat, repeatedly reports that the chat is truncated, and reaches the command limit without completing the requested character card update.
Steps to reproduce
Environment
Logs, screenshots, or video
No logs or attachments provided. The user reports repeated "chat is Truncated" messages followed by the command limit being reached.
Additional context
The user tried rephrasing the request and switching bots without success. They need chat retrieval to support filtering by recent message count or post number.
Discord thread: Mari needs to be able to filter chats
Discord thread link: https://discord.com/channels/1417099416812392641/1532407667761348749
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (1 message)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jul 30, 2026):
I am implementing this on
agent/4308-chat-message-ranges; draft PR #4309 tracks the work againststaging.