mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6262] [MERGED] fix: address private agent context, character estimates, and diagnostics #7110
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#7110
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/6262
Author: @SpicyMarinara
Created: 9/16/2026
Status: ✅ Merged
Merged: 9/16/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/6254-6261-issue-sweep📝 Commits (10+)
3073602fix(character-library): restore full-card token estimates45adf70fix(character-library): use catalog token estimates in panel0cde2f9chore: format character token count import2da1a13Merge remote-tracking branch 'origin/staging' into review/6256-token-estimates364ad49docs: record full-card token estimate fixc70702achore: track remaining issue sweep3ba2ca6fix: separate private agent context and shorten support reportse7c732dMerge branch 'review/6256-token-estimates' into fix/6254-6261-issue-sweep9490b3cMerge remote-tracking branch 'origin/staging' into fix/6254-6261-issue-sweep466bf24Merge remote-tracking branch 'origin/staging' into review/6256-token-estimates📊 Changes
15 files changed (+496 additions, -138 deletions)
View changed files
📝
CHANGELOG.md(+4 -0)➕
e2e/agent-private-context.e2e.ts(+131 -0)📝
packages/client/src/components/characters/CharacterLibraryView.tsx(+5 -2)📝
packages/client/src/components/chat/RoleplayHUDActionsMenu.tsx(+86 -24)📝
packages/client/src/components/panels/CharactersPanel.tsx(+3 -3)📝
packages/client/src/lib/character-token-count.ts(+2 -88)📝
packages/client/src/lib/support-diagnostics.ts(+1 -1)📝
packages/client/src/localization/locales/en.json(+5 -0)📝
packages/server/src/services/storage/agents.storage.ts(+19 -1)📝
packages/server/src/services/storage/character-catalog.ts(+2 -18)📝
packages/shared/src/index.ts(+1 -0)➕
packages/shared/src/utils/character-token-estimator.ts(+83 -0)📝
scripts/regressions/agent-previous-output.regression.ts(+43 -0)➕
scripts/regressions/character-library-token-estimate.regression.ts(+97 -0)📝
scripts/regressions/client-runtime-diagnostics.regression.ts(+14 -1)📄 Description
Linked issues
Closes #6254
Closes #6255
Closes #6261
Refs #6260 (investigation only; remains open)
Why this change
An empty public agent output currently exposes the full JSON in its preview, while the editor only changes
text. Private continuation context needs its own editor, and omitting it from a later response should preserve the previous value. Copied support reports also contain too many routine client events. Character Library and Characters panel estimates undercount cards because they recalculate from compact catalog data that omits card fields.Changes
This branch contains the exact head of contributor PR #6256 (
c73f75f188991ef1a47671e81a80c001c3a5c639). Both PRs must complete their checks and review before this combined commit lands; #6256 has the required owner approval. Merge with a merge commit to retain the contributor commits and allow GitHub to mark #6256 merged through this PR. Contributor PR #6259 has already landed on staging.Validation
pnpm install, baselinepnpm check, andpnpm checkwith both contributor changes integrated passed. All five Advanced Memory suites and both extension API/sandbox regressions also passed on the combined code.pnpm regression:promptpassed; client-runtime regression passed. The full local Node suite passed 283/284 files with the default macOS temporary path. The unchanged sibling-path guard test compares/varand/private/var; its isolated rerun passed with a canonicalTMPDIR(no source change).UI evidence
Before/after desktop and mobile screenshots, plus memory investigation evidence.
Claim boundaries
The editor browser fixture uses mocked run API responses; storage and prompt isolation use the real storage/executor regression. No physical-device or live-provider verification is claimed.
For #6260, a 51-message fixture reproduces the exact paired ranges only in Individual mode: shared and character-scoped records. Unified mode generates each summary once. Concurrent/repeated initialization adds no extra copies in either mode. The report omits its mode and audience labels; those are needed before changing the scopes used for impersonation and character knowledge. No change to memory storage or audience behavior is included here.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.