mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7567] [MERGED] Professor Mari: live words, batch step rows, more model call formats #7799
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#7799
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/7567
Author: @Gunterlie
Created: 10/13/2026
Status: ✅ Merged
Merged: 10/13/2026
Merged by: @Gunterlie
Base:
feat/mari-pi-runtime← Head:feat/mari-pi-runtime-5-polish📝 Commits (6)
90e4369Read DeepSeek V3, Kimi, GLM, Qwen, MiniMax and Mistral call markup as tool callsffe4765Keep the prose written beside a textual tool call in the OpenAI provider result4d90f6dShow Professor Mari's words live while she writes88dcd50Show a batch step's items on its step rowd3de46dMerge branch 'feat/mari-pi-runtime-5-parser' into feat/mari-pi-runtime-5-polishef6bb34Make textual tool-call parsing linear, stop unclosed calls merging, and scrub the live draft📊 Changes
16 files changed (+620 additions, -61 deletions)
View changed files
📝
packages/client/src/components/chat/mari/MariTranscript.tsx(+1 -0)📝
packages/client/src/components/chat/mari/MariWorkTimeline.tsx(+33 -6)📝
packages/client/src/components/chat/mari/use-mari-workspace-run.ts(+17 -1)📝
packages/client/src/lib/mari-referenced-resources.ts(+20 -0)📝
packages/client/src/localization/locales/en.json(+2 -0)📝
packages/client/src/stores/chat.store.ts(+13 -0)📝
packages/client/src/styles/mari.css(+17 -0)📝
packages/server/src/routes/generate.routes.ts(+13 -7)📝
packages/server/src/services/llm/providers/openai.provider.ts(+3 -3)📝
packages/server/src/services/llm/textual-tool-call-parser.ts(+179 -19)📝
packages/server/src/services/professor-mari/pi-runtime.ts(+32 -6)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+68 -14)📝
packages/shared/src/types/professor-mari-workspace.ts(+3 -0)📝
scripts/regressions/mari/lorebook-entries-paging.regression.ts(+25 -1)📝
scripts/regressions/professor-mari/pi-runtime.regression.ts(+171 -4)📝
scripts/regressions/provider-stream-completion.regression.ts(+23 -0)📄 Description
Linked issue
No linked issue. This is planned work: slice 5 on the integration branch
feat/mari-pi-runtime. It is stacked on slice 4 (#7546) and targets that branch, so the diff shows only this slice.Why this change
What changed
draftevent on both runtimes (Pi rounds now stream). The event carries the full visible text so far, scrubbed of internal names, cut at the first tool-call marker, with a half-written marker held back. The client shows it in the live area, one update per frame, and clears it when the round or run ends. A draft is never saved and never replaces the audited answer.spans()withindexOf), and the older fence pattern was made linear too.openai.provider.tskeeps the words around a call it parsed from text. The roleplay route replaces the streamed round text whenever it differs from what the provider returned, so raw markup is not saved in a reply.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Not done by a person yet. To verify by hand:
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
None. No screenshot harness was available to the agents; the live words line and the batch step row have not been seen in a browser.
Proof
Run by agents on commit
ef6bb34a3:pnpm check: exit 0. Server typecheck clean.pnpm localization:check: passed.mari50/50,pi-runtime1/1,roleplay-function1/1,prompt.regression7/7,provider-stream1/1.pi-runtime.regression.ts): one case per markup format (name, arguments, strip), unknown tool, prose mention, two unclosed GLM calls yield none, and adversarial timing inputs (GLM 30 pairs with a bad tail, 20,000 spaces after an open fence, 200 KB prose, each opener repeated 2,000 times): slowest call 31 ms against a 250 ms limit.provider-stream-completion.regression.ts): prose is kept next to a text call, stream and non-stream.Known limits:
generate.routes.tsnear line 8774) has no regression that drives that route path.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.