mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6671] [MERGED] fix(client): fence copied support diagnostics and keep package Lorebook filters through updates #7282
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#7282
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/6671
Author: @Gunterlie
Created: 9/25/2026
Status: ✅ Merged
Merged: 9/25/2026
Merged by: @Gunterlie
Base:
staging← Head:fix/6668-diagnostics-codeblock-package-filters📝 Commits (3)
96eda78fix(client): fence copied support diagnostics and keep package filters through restart-pending updatesfc1b1f3test(regressions): pin chat package toggles to isCapabilityPackageAvailablef1121aefix(client): keep backticks inside copied diagnostics from closing the code fence📊 Changes
8 files changed (+85 additions, -52 deletions)
View changed files
📝
CHANGELOG.md(+4 -0)📝
packages/client/src/components/characters/CharacterEditor.tsx(+2 -4)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+8 -8)📝
packages/client/src/components/lorebooks/LorebookEntryRow.tsx(+8 -9)📝
packages/client/src/components/panels/SettingsPanel.tsx(+33 -29)📝
packages/client/src/hooks/use-capability-packages.ts(+8 -0)📝
scripts/regressions/agent-registry-hydration.regression.ts(+20 -0)📝
scripts/regressions/capability-package-chat-controls.regression.ts(+2 -2)📄 Description
Closes #6668.
Why
Support diagnostics. Users paste "Copy Support Diagnostics" into Discord and GitHub. As plain text, the report is hard to read, and markdown can change parts of it. The copied report is now wrapped in a ``` code block, so both sites show it as one monospace block.
Package Lorebook filters (user report). After #6660, a user reported that the Noodle and Slurp Generation filter pills were gone from Lorebook entries, although Noodle was visible there before. I found two ways this can happen:
noodleandslurp2both setrestartRequired: true. After an update, the registry marks the packagerestart-required. Until the Engine restarts, the previous version keeps running. The pill check accepted onlystatus === "active", so both pills disappeared while the packages kept working.ChatSettingsDrawer(Noodle timeline / Slurp activity context) andCharacterEditor(Noodle settings) had the same check, and #6660 copied it from them.slurp) sends the"noodle"generation trigger. Since #6660, the Noodle pill required thenoodlepackage, so Slurp Legacy users lost the filter that controls their lore scans.What changed
SettingsPanel: the copied diagnostics are fenced with ```. The formatter output itself is unchanged.isCapabilityPackageAvailable(installed, id)inuse-capability-packages.ts: true foractive, or for arestart-requiredupdate whose previous version is still loaded. This reusesisCapabilityPackageAvailableUntilRestart, which Home tabs and client modules already use. A first install that waits for a restart still counts as unavailable.status === "active"checks for Noodle/Slurp (Lorebook pills, chat settings, character editor) use the helper.noodleorslurp(Legacy). The Slurp pill still maps toslurp2.agent-registry-hydration.regression.tscovers the helper for noodle and slurp2 (restart-pending update, first install waiting for restart, active, error).Validation
tsc --noEmit(client): passednode scripts/run-regressions.mjs --filter scripts/regressions/agent-registry-hydration.regression.ts: passed--committed): 0 findingsprettier --check CHANGELOG.mdwarns, but it warns on unmodifiedstagingtoo.Manual verification
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.