mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1471] [MERGED] Fix Professor Mari context bloat #5108
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#5108
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/1471
Author: @cha1latte
Created: 5/28/2026
Status: ✅ Merged
Merged: 5/28/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/refactor-issue-1468-mari-context📝 Commits (6)
d3c8039Fix Professor Mari context bloat22f1cccMerge remote-tracking branch 'upstream/refactor' into fix/refactor-issue-1468-mari-context98e88e2Fix refactor Rust clippy warnings07d3be9Address Mari context review gapsceb2bbaMerge remote-tracking branch 'upstream/refactor' into fix/refactor-issue-1468-mari-contextfb3bdc3Merge remote-tracking branch 'upstream/refactor' into fix/refactor-issue-1468-mari-context📊 Changes
10 files changed (+2036 additions, -241 deletions)
View changed files
📝
graphify-out/GRAPH_REPORT.md(+20 -20)➕
graphify-out/cache/ast/5f42ee6414fbc8070179b52ea7d0fb3be1294a30890153fd7bdd8be8a370808c.json(+1 -0)➕
graphify-out/cache/ast/6902a62981792f94ce3078f6836cde162dece27376da5e712cc96fbdfe5556c0.json(+1 -0)➕
graphify-out/cache/ast/b2913a4e7ea62ebaffcc149f9cffd6b117c582af363717992ce4c01f60170e54.json(+1 -0)➕
graphify-out/cache/ast/c8fdea76e97db753e5325b10e68e3af594e3446c98c26bce526df4fd5a97c76a.json(+1 -0)📝
graphify-out/cache/stat-index.json(+1 -1)📝
graphify-out/graph.json(+1644 -184)📝
graphify-out/manifest.json(+33 -18)📝
src-tauri/src/commands/storage/mari.rs(+311 -12)📝
src/features/shell/mari/components/ProfessorMariSurface.tsx(+23 -6)📄 Description
Linked issue
Closes #1468
Why this change
What changed
graphify-out,.pnpm-store,.codex, and coverage output are not searchable/readable, and binary-like source payloads are rejected before tool context is returned.Refactor impact
Primary owner:
Professor Mari / Rust storage command boundary / shell tool UI
Impact areas reviewed:
Boundary notes:
src-tauri/src/commands/storage/mari.rs; the UI now avoids sending raw image data, but the Rust command still sanitizes incoming attachment content.Pressure points touched:
src-tauri/src/commands/storage/mari.rssrc/features/shell/mari/components/ProfessorMariSurface.tsxgraphify-out/*generated map filesValidation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
cargo test --manifest-path src-tauri/Cargo.toml professor_mari --libfirst failed before the fix on the raw image, large attachment, and Graphify path regression tests, then passed after the fix.pnpm checkpassed.pnpm buildpassed.cargo test --manifest-path src-tauri/Cargo.toml --workspace -j 1passed.cargo clippy --manifest-path src-tauri/Cargo.toml --workspace --all-targets -- -D warningspassed after the smallsrc/state.rsCI-unblock cleanup.graphify update .passed.node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.jsonpassed.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
N/A - non-visual Professor Mari prompt/tool context fix.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.