mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8341] [MERGED] feat(packages): open a connection from a Home tab and log raw generation prompts (capability API 1.386) #8305
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#8305
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/8341
Author: @SpicyMarinara
Created: 10/25/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/story-writer-host📝 Commits (6)
e9cbd2bfeat(packages): open a connection from a Home tab, and log raw generation prompts (capability API 1.386)9f4d161Merge staging into StoryWriter host integration4330831fix(generate): stop a raw run when its client leaves236bfa1fix(packages): address local review of the Story Writer host changee45386afix(packages): return to the package tab only when its connection editor closes54e6848fix(packages): keep the package return tab through editor switches and Back📊 Changes
10 files changed (+351 additions, -18 deletions)
View changed files
📝
docs/agents/built-in-agents.md(+10 -0)📝
docs/development/optional-agent-packages.md(+35 -0)📝
packages/client/src/components/chat/HomeBrowserHub.tsx(+9 -0)📝
packages/client/src/lib/back-layers.ts(+2 -0)📝
packages/client/src/stores/ui.store.ts(+16 -2)📝
packages/server/src/routes/generate/raw-route.ts(+41 -10)📝
packages/shared/src/schemas/capability-package.schema.ts(+2 -1)📝
scripts/regressions/capability-package-chat-controls.regression.ts(+60 -0)📝
scripts/regressions/capability-package-lifecycle.regression.ts(+6 -5)➕
scripts/regressions/raw-generation-debug.regression.ts(+170 -0)📄 Description
Linked issue
Closes #8332
Package side: Pasta-Devs/Marinara-Agents#1704 (Story Writer, Pasta-Devs/Marinara-Agents#1703).
Why this change
POST /api/generate/rawroute. That route never logged the final prompt in debug mode, so its prompts were invisible. AGENTS.md requires prompt logging for every generation path.What changed
DEBUG_AGENTS), raw generation requests log the final messages sent to the provider and the reply. They never log the connection's key or address. Requests without debug mode log nothing new./raw/embeddings, and a regression covers the streaming and plain paths.openConnection, how browser packages use/api/generate/raw, and itsdebugModefield. The downloadable agents reference gets a Story Writer entry.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Commands run by the agent, for the reviewer to repeat:
pnpm check(exit 0; its one lint warning is pre-existing inHomeProfessorMariChat.tsx, untouched here).node ./scripts/run-regressions.mjs --filter scripts/regressions/raw-generation-debug.regression.ts: passed. With the old request-stream listener restored, the new disconnect case fails (the abandoned provider call never ends).node ./scripts/run-regressions.mjs --filter scripts/regressions/capability-package-chat-controls.regression.ts: passed.node ./scripts/run-regressions.mjs --filter scripts/regressions/capability-package-lifecycle.regression.ts: passed, and so doesmarinara-host-namespaceafter merging staging.tests/package-story-writer.e2e.ts, desktop and phone) ran against this branch. It covers clicking Edit connection, closing the editor and landing back on the Story Writer tab.To verify by hand:
[debug/raw] prompt for …and[debug/raw] response for …in the server log, and that nothing new is logged with debug mode off.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Changed docs:
docs/development/optional-agent-packages.mdanddocs/agents/built-in-agents.md. Translations are tracked in the[docs-i18n]follow-up #8342.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.