mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8496] [MERGED] feat(capability): let packages hide or show chat messages from the AI (API 1.389) #8635
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#8635
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/8496
Author: @Promansis
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @Promansis
Base:
staging← Head:feature(capability)/hide-messages-from-ai📝 Commits (1)
8ed62b3feat(capability): let packages hide or show chat messages from the AI📊 Changes
6 files changed (+103 additions, -6 deletions)
View changed files
📝
docs/development/optional-agent-packages.md(+17 -0)📝
packages/server/src/services/capability-packages/capability-persistence.service.ts(+18 -0)📝
packages/shared/src/schemas/capability-package.schema.ts(+3 -1)📝
packages/shared/src/types/capability-runtime.ts(+7 -0)📝
scripts/regressions/capability-package-lifecycle.regression.ts(+6 -5)📝
scripts/regressions/capability-runtime-host-services.regression.ts(+52 -0)📄 Description
Linked issue
Closes #8491
Why this change
chat-write, append messages and patch chat metadata, but not change a message'shiddenFromAIflag.What changed
CapabilityPersistenceHost.setMessagesHiddenFromAI?(chatId, messageIds, hidden): Promise<string[]>(Capability API 1.389; 1.388 is #8413 host-only services). Packages feature-detect it, so they keep working on older Engines.chat-write, rejects an unknown chat, ignores ids from other chats, never changes a message whose visibility the user set by hand (extra.visibilityManual), and resolves only the ids whose flag it actually changed. It reusesbulkSetHiddenFromAI(one transaction behind the message patch queues, updates every swipe) and never setsvisibilityManual.supportedCapabilityApiminor 388 → 389, lifecycle regression updated, and a "Capability API 1.389" section added todocs/development/optional-agent-packages.md.appendMessageschecks incapability-runtime-host-services.regression.ts.Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands run by the agent (not ticked above):
pnpm check(exit 0),node scripts/run-regressions.mjs --filter capability(26/26 passed),capability-runtime-host-servicesfails before the fix withsetMessagesHiddenFromAI is not a function.Manual verification notes
chat-writecan hide and show messages in a real chat and that generation leaves hidden messages out of the prompt.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/development/optional-agent-packages.mdgains a 1.389 section (developer doc, not a translated user doc). No app version bump; CHANGELOG untouched per AGENTS.md.UI evidence (if applicable)
None; no UI change.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.