mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6531] [MERGED] feat(agents): add semantic activation questions #7215
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#7215
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/6531
Author: @kolacheee
Created: 9/22/2026
Status: ✅ Merged
Merged: 9/22/2026
Merged by: @kolacheee
Base:
staging← Head:codex/agent-activation-questions📝 Commits (6)
61067cefeat(agents): define activation question settings84285fffeat(agents): gate custom agents with System One decisions92e8f80fix(agents): retain decision context speaker identity0b46f3dMerge remote-tracking branch 'origin/staging' into codex/agent-activation-questions82cd9eafix(ui): group activation questions with keywordsc838386fix(ui): match question controls to keyword styling📊 Changes
36 files changed (+1945 additions, -53 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
docs/agents/custom-agents.md(+31 -2)➕
e2e/agent-activation-questions.e2e.ts(+369 -0)➕
packages/client/src/components/agents/ActivationQuestionFields.tsx(+105 -0)📝
packages/client/src/components/agents/AgentEditor.tsx(+59 -2)📝
packages/client/src/components/chat/StoryboardChatSettingsPanel.tsx(+2 -1)📝
packages/client/src/components/chat/SummaryPopover.tsx(+2 -1)📝
packages/client/src/components/connections/ConnectionEditor.tsx(+190 -10)➕
packages/client/src/components/connections/DecisionDefaultControl.tsx(+109 -0)📝
packages/client/src/components/modals/CreateConnectionModal.tsx(+2 -2)📝
packages/client/src/components/panels/ConnectionsPanel.tsx(+8 -2)📝
packages/client/src/components/panels/settings/TTSConfigCard.tsx(+2 -1)📝
packages/client/src/hooks/use-connections.ts(+21 -1)📝
packages/client/src/lib/connection-filters.ts(+2 -1)📝
packages/client/src/lib/connection-transfer.ts(+26 -0)📝
packages/client/src/localization/locales/en.json(+54 -1)📝
packages/server/src/db/schema/connections.ts(+4 -0)📝
packages/server/src/routes/backup.routes.ts(+2 -0)📝
packages/server/src/routes/connections.routes.ts(+33 -1)📝
packages/server/src/routes/conversation.routes.ts(+1 -1)...and 16 more files
📄 Description
Linked issue
Closes #6530
Why this change
Keyword-only activation misses paraphrases and scene changes. Custom agents can now ask a short yes/no question before running, such as “Did the location change?”, and run only when the returned probability meets their threshold. Existing keywords and cadence are checked first. Unavailable, late, or invalid decisions leave eligible agents enabled.
What changed
This is the first System One implementation. Existing local chat-model decisions and managed Open-Jev installation remain separate phases. No storage-format or app-version change. The branch includes staging commit
89d2a9bb9(memory correction/recovery fixes from #6527).Validation
pnpm checkpasses locallyCONTRIBUTING.mdRecorded automated evidence
pnpm checkpassed on implementation head0b46f3dadafter merging current staging, including localization, formatting, TypeScript, and production builds. One pre-existing GameNarration hook-dependency warning remains.pnpm regression:node: 349/349 passed again on implementation head0b46f3dad, including the newly merged memory regressions, stalled-DNS timeout and cancellation.pnpm regression:promptandpnpm check:e2e-typespassed on that head.Focused
pnpm smoke:uiacross desktop Chromium, mobile Chromium, and mobile WebKit: 20 passed, 4 existing desktop-only cases skipped on implementation head0b46f3dad. All nine new feature cases passed, together with the newly merged scene-recovery flow in all three browsers. Coverage includes saving/reloading questions, disabling/re-enabling defaults, 422 errors, OpenRouter key linking/deletion, and real generation routing against local mock providers.The implementation at
84285ff2bbuilt as a Podman production image and its/api/healthreturnedstatus: ok. The later speaker-metadata fix and staging merge are covered by the final local build and regression checks.Latest UI validation at
c838386e1:pnpm checkandpnpm check:e2e-typespassed; the existing Decision settings browser test passed on desktop Chromium, mobile Chromium, and mobile WebKit (3/3). Visually checked the shared card and matched Question/Keywords styles in desktop light/dark and mobile screenshots. Focused local CodeRabbit review completed with zero findings.Claim boundaries
Local review
Initial CodeRabbit review completed with seven findings. Fixed failure-handling boundaries, the source-order regression assertion, normalized source reuse in import/export, and the connection-row type. Added a bounded DNS/cancellation race in the shared Decision transport;
withLlmRequestTimeoutwas not used because it only scopesllmFetchoptions and cannot enforce a deadline on thissafeFetchpath. Retained the two short localized Test-result renderers instead of adding the suggested shared formatting abstraction. The follow-up server review completed with two minor findings. Fixed speaker attribution for single-speaker group replies and verified it through the real generation route. Retained the existing import-quarantine clearing boundary: saving the Connection editor already sends provider/base URL/model and clears the flag; a partial source/link API patch alone should not silently approve the rest of an imported connection.Manual verification notes
These live-provider and hardware paths were not exercised by local mocks. The state budget uses estimates, and a server may still reject an input; rejection fails open.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedUpdated
docs/agents/custom-agents.mdandCHANGELOG.md. Translation follow-up: #6532.UI evidence (if applicable)
Before/after screenshots, including mobile and error states. Baseline is staging
0f8a90caf; all screenshots use fixture data.Summary by CodeRabbit
New Features
Documentation
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.