[GH-ISSUE #8332] [Feature]: Host support for the Story Writer package (open a connection from a Home tab, raw generation debug logging) #8279

Closed
opened 2026-10-27 06:06:54 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8332

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

The new Story Writer package (Pasta-Devs/Marinara-Agents#1703) is a full-page co-writing book on its own Home tab. It needs two small things from the host:

  1. A way back from the connection editor. Story Writer has an "Edit connection" button. A package can open the editor through the UI store today, but on desktop the editor replaces Home. When it closes, Home remounts on the Home tab instead of the package tab, so the user loses their place.
  2. Prompt logging for package text generation. Story Writer streams chapters through the existing POST /api/generate/raw, which takes a connection id and a full message list. That route never logs the final prompt in debug mode. AGENTS.md requires prompt logging for every generation path.

Proposed solution

Capability API 1.385:

  • A Home browser view gets openConnection(connectionId). It opens the connection editor and asks Home to reopen the same package tab once Home mounts again, the same way the omnibar's requestHome does.
  • POST /api/generate/raw accepts debugMode. When it is set, the final provider messages and the response are logged through logDebugOverride.
  • docs/development/optional-agent-packages.md documents both, and documents /api/generate/raw for browser packages. docs/agents/built-in-agents.md gets a Story Writer entry.

Alternatives considered

  • Unpinned openConnectionDetail from the package: it works, but the user lands back on the Home tab.
  • A streaming method on api.runtime.languageModels: this would need a package-side SSE route and a larger host change. The existing raw route already streams.

Additional context

Package issue: Pasta-Devs/Marinara-Agents#1703. Owner: @SpicyMarinara (implementation by Claude Code).

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8332 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? The new **Story Writer** package (Pasta-Devs/Marinara-Agents#1703) is a full-page co-writing book on its own Home tab. It needs two small things from the host: 1. **A way back from the connection editor.** Story Writer has an "Edit connection" button. A package can open the editor through the UI store today, but on desktop the editor replaces Home. When it closes, Home remounts on the **Home** tab instead of the package tab, so the user loses their place. 2. **Prompt logging for package text generation.** Story Writer streams chapters through the existing `POST /api/generate/raw`, which takes a connection id and a full message list. That route never logs the final prompt in debug mode. AGENTS.md requires prompt logging for every generation path. ## Proposed solution Capability API **1.385**: - A Home browser view gets `openConnection(connectionId)`. It opens the connection editor and asks Home to reopen the same package tab once Home mounts again, the same way the omnibar's `requestHome` does. - `POST /api/generate/raw` accepts `debugMode`. When it is set, the final provider messages and the response are logged through `logDebugOverride`. - `docs/development/optional-agent-packages.md` documents both, and documents `/api/generate/raw` for browser packages. `docs/agents/built-in-agents.md` gets a Story Writer entry. ## Alternatives considered - **Unpinned `openConnectionDetail` from the package:** it works, but the user lands back on the Home tab. - **A streaming method on `api.runtime.languageModels`:** this would need a package-side SSE route and a larger host change. The existing raw route already streams. ## Additional context Package issue: Pasta-Devs/Marinara-Agents#1703. Owner: @SpicyMarinara (implementation by Claude Code). ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8279
No description provided.