mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4309] [MERGED] fix: honor chat message ranges in Professor Mari #6329
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#6329
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4309
Author: @SpicyMarinara
Created: 7/30/2026
Status: ✅ Merged
Merged: 7/30/2026
Merged by: @SpicyMarinara
Base:
staging← Head:agent/4308-chat-message-ranges📝 Commits (2)
cc6784fchore: start issue 4308ea54f8efix: honor Professor Mari chat ranges📊 Changes
4 files changed (+102 additions, -13 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/server/src/services/mari-db/mari-db.service.ts(+42 -12)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+1 -0)📝
scripts/regressions/open-issues.regression.ts(+58 -1)📄 Description
Linked issue
Closes #4308
Why this change
Professor Mari could retrieve an entire long chat even when the user asked for only the latest messages or messages after a displayed post number. The oversized result was repeatedly truncated and could exhaust the workspace command loop before the requested edit completed.
Root cause
The chat command exposed only generic
--tailand--offsetpagination, without direct post-number semantics or prompt guidance mapping natural-language ranges onto those flags. Returned messages also omitted their displayed post numbers, making bounded pagination harder to continue reliably.What changed
--last <n>and--after-post <n>tomari chats messages--limitand--offsetpostNumberin command outputValidation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated verification notes
pnpm check— passed (localization, TypeScript/lint, production server/client builds)--last 3,--after-post 2 --limit 2 --offset 1, and rejection of--last 201open-issues.regression.ts; that wider legacy suite later stops on pre-existing stale assertions in unrelated background-folder and Game dynamic-prompt coverageManual verification notes
#postnumber.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n] <paths>follow-up issue openedNo user guide changes are needed; the internal command help and Unreleased changelog are updated.
Summary by CodeRabbit
New Features
--limitand--offsetwithin the selected message range.Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.