mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6666] [MERGED] feat: inspect and test Decision model results in Peek Prompt #7279
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#7279
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/6666
Author: @kolacheee
Created: 9/25/2026
Status: ✅ Merged
Merged: 9/25/2026
Merged by: @kolacheee
Base:
staging← Head:codex/6650-decision-debug📝 Commits (6)
23b2255docs: scope decision diagnostics for #66505e352a0feat: inspect and test Decision model outcomes in Peek Promptc9cb31cMerge staging and preserve both changelog entriese3f0e2bfix(decision): test deferred models and verify prompt switchingf4b2bb8test: handle restored lorebook editor in filter checks86da7dbMerge branch 'staging' into codex/6650-decision-debug📊 Changes
21 files changed (+1101 additions, -181 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/chats/peek-prompt.md(+16 -0)📝
docs/connections/decision-models.md(+2 -1)📝
docs/prompts/conditional-prompts.md(+2 -2)📝
e2e/core-flows.e2e.ts(+5 -1)📝
e2e/decision-peek-report.e2e.ts(+194 -85)📝
packages/client/src/components/chat/ChatArea.tsx(+1 -1)➕
packages/client/src/components/chat/DecisionDebugPanel.tsx(+157 -0)📝
packages/client/src/components/chat/PeekPromptModal.tsx(+42 -3)📝
packages/client/src/components/chat/chat-area.types.ts(+1 -0)➕
packages/client/src/hooks/use-decision-debug.ts(+31 -0)📝
packages/client/src/localization/locales/en.json(+39 -0)📝
packages/server/src/routes/generate/dry-run-route.ts(+90 -16)📝
packages/server/src/services/decision/decision-default.ts(+47 -8)📝
packages/server/src/services/decision/decision-slots.ts(+18 -14)📝
packages/server/src/services/decision/prompt-decisions.ts(+97 -23)📝
packages/server/src/services/decision/sidecar-decision.backend.ts(+65 -23)📝
packages/server/src/services/decision/system-one.client.ts(+25 -1)📝
packages/shared/src/index.ts(+1 -0)➕
packages/shared/src/types/decision-debug.ts(+44 -0)...and 1 more files
📄 Description
Linked issue
Closes #6650
Why this change
Decision trees currently expose the branch that ran but not the score that selected it. This makes Jev decisions in Game Mode and other prompt conditionals difficult to troubleshoot. Peek Prompt also needs an explicit way to test current questions without generating a reply or changing the live chat's answers.
What changed
Validation
The checkboxes below remain unchecked for the human contributor, as required by the repository.
pnpm checkpasses locallyCONTRIBUTING.mdRecorded automated results:
pnpm checkpassed, including localization, formatting, type checks, lint, and the production build.node scripts/run-regressions.mjs --filter decision: 9 suites passed. Real HTTP fixtures verify prepared/sent request equality, high/low outcomes, fresh reruns, unchanged live caches/messages/metadata, absent main-model calls, invalid request rejection, and binary local results.pnpm regression:promptpassed.pnpm smoke:ui e2e/decision-*.e2e.ts e2e/agent-activation-questions.e2e.ts --workers=1: 39 passed across desktop Chromium, mobile Chromium, and mobile WebKit (container supplied the WebKit system libraries)./api/healthreturnedstatus: ok.5e352a0d0againstorigin/stagingcompleted: 0 findings across all 20 changed files. The subsequent staging merge only needed a changelog conflict resolution; both entries were retained and feature code was unchanged.The full local UI sweep was stopped after parallel test-fixture failures; it is not claimed as passing. The agent-activation and Game setup failures passed when rerun in isolation on both this branch and unchanged staging. The affected Decision browser lane runs serially, and the full GitHub regression matrix remains a merge gate.
Review and Chromium 5/10 follow-up
Addressed both findings in review 5320264195. Explicit tests now run normally deferred local reasoning models without changing live settings; unavailable models remain disabled. Browser assertions expand and verify the tested prompt content, verify it disappears with the original prompt, and verify it returns when switching back.
The desktop Chromium 5/10 failure reproduced locally in the existing Lorebook filter-chip test. Reload restores the editor, so its heading and hidden library row both matched the old locator. The test now waits for the visible editor or library view and only selects the library row when needed.
Follow-up validation:
pnpm check, all 9 Decision regression suites, andpnpm regression:promptpassed. All 6 updated Decision browser cases passed across desktop Chromium, mobile Chromium and mobile WebKit. The final Lorebook test passed twice consecutively. Local CodeRabbit found one test-cleanup issue; it was fixed, and the rerun reported 0 findings across the 7 follow-up files.Manual verification notes
Automated browser interactions were visually inspected in desktop dark/light and mobile layouts. Screenshot data is synthetic; server transport behavior is verified separately with local HTTP fixtures.
Paid hosted Jev and GPU-backed local inference were not exercised locally.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedUpdated Peek Prompt, Decision Models, and Conditional Prompts documentation plus
CHANGELOG.md. Translation follow-up: #6667. No version bump.UI evidence (if applicable)
Before/after evidence is stored outside the source tree in the PR evidence gist.
Desktop light · Mobile dark · Mobile light. Mobile captures are scrolled to the result list and original-prompt switch.
Summary by CodeRabbit
New Features
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.