[GH-ISSUE #1307] [Feature]: Scenes should carry over the agents (and options) from the previous scene #642

Closed
opened 2026-10-20 17:31:10 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @GetBeholder on GitHub (May 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1307

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Generated scenes do not carry over the agents and other options you had enabled,
so you must re-enable them manually every time a scene is generated, which is long
and tedious. The reporter asked for a preset menu for /scenes like the rest of
the chat systems. Maintainer Marinara [MARI] said a full preset menu is not really
possible because scenes work differently, but committed to making scenes
automatically add the agents you last had in a previous scene.

Proposed behavior

When generating a new scene, automatically carry over the agents (and ideally
other per-scene options) from the previous scene, so they do not have to be
re-enabled manually. Per the maintainer's commitment, at minimum the agents from
the last scene should be applied automatically.

Expected owner or impact area

  • App shell, navigation, startup, or providers
  • Catalog resources: chats, characters, personas, lorebooks, presets, connections, agents, gallery, or knowledge
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Refactor branch considerations

From a quick scan (triage pointer, not from the reporter): scene creation already
inherits some state — src/engine/modes/roleplay/scene/scene-service.ts inherits
activeLorebookIds from the prior scene/chat (inheritedActiveLorebookIds,
~L123-154). Extending that same inheritance to the enabled agents (and other
per-scene options) would implement the maintainer's commitment. Keep it in the
roleplay scene service.

Alternatives considered

A full preset menu for scenes (the reporter's original request). The maintainer
noted scenes work differently, so a full preset menu is not really possible; the
agent carry-over is the agreed approach.

Additional context

Source: forum thread by Era [GS] (2-Star), 5/23/26 7:54 PM. Maintainer Marinara
[MARI] committed: "I will make it so that the scene automatically adds the agents
you last had in a previous scene." A related follow-up about scene
first-generation prompt quality is filed separately.

Template check

Please uncheck 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 @GetBeholder on GitHub (May 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1307 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Generated scenes do not carry over the agents and other options you had enabled, so you must re-enable them manually every time a scene is generated, which is long and tedious. The reporter asked for a preset menu for `/scenes` like the rest of the chat systems. Maintainer Marinara [MARI] said a full preset menu is not really possible because scenes work differently, but committed to making scenes automatically add the agents you last had in a previous scene. ## Proposed behavior When generating a new scene, automatically carry over the agents (and ideally other per-scene options) from the previous scene, so they do not have to be re-enabled manually. Per the maintainer's commitment, at minimum the agents from the last scene should be applied automatically. ## Expected owner or impact area - [ ] App shell, navigation, startup, or providers - [x] Catalog resources: chats, characters, personas, lorebooks, presets, connections, agents, gallery, or knowledge - [ ] Chat mode - [x] Roleplay mode - [ ] Game mode - [ ] Shared mode UI - [ ] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [ ] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Refactor branch considerations From a quick scan (triage pointer, not from the reporter): scene creation already inherits some state — `src/engine/modes/roleplay/scene/scene-service.ts` inherits `activeLorebookIds` from the prior scene/chat (`inheritedActiveLorebookIds`, ~L123-154). Extending that same inheritance to the enabled agents (and other per-scene options) would implement the maintainer's commitment. Keep it in the roleplay scene service. ## Alternatives considered A full preset menu for scenes (the reporter's original request). The maintainer noted scenes work differently, so a full preset menu is not really possible; the agent carry-over is the agreed approach. ## Additional context Source: forum thread by Era [GS] (2-Star), 5/23/26 7:54 PM. Maintainer Marinara [MARI] committed: "I will make it so that the scene automatically adds the agents you last had in a previous scene." A related follow-up about scene first-generation prompt quality is filed separately. ## Template check Please uncheck 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.
bsakaguchi 2026-10-20 17:31:10 +07:00
Author
Owner

@cha1latte commented on GitHub (May 26, 2026):

Triage note: labeling this as normal-scope because the issue is narrowed from a full scene preset menu to reusing the agents/options already selected on the previous scene, and the body points at an existing scene-state inheritance path.

Keep this in the normal enhancement backlog with the first slice limited to carrying over prior-scene agents before expanding to additional per-scene options.

<!-- gh-comment-id:4548817978 --> @cha1latte commented on GitHub (May 26, 2026): Triage note: labeling this as `normal-scope` because the issue is narrowed from a full scene preset menu to reusing the agents/options already selected on the previous scene, and the body points at an existing scene-state inheritance path. Keep this in the normal enhancement backlog with the first slice limited to carrying over prior-scene agents before expanding to additional per-scene options.
Author
Owner

@SpicyMarinara commented on GitHub (May 27, 2026):

Agreed, for one Conversation if there are several scenes created for it, this data should automatically carry between them.

<!-- gh-comment-id:4556091928 --> @SpicyMarinara commented on GitHub (May 27, 2026): Agreed, for one Conversation if there are several scenes created for it, this data should automatically carry between them.
Author
Owner

@SpicyMarinara commented on GitHub (May 27, 2026):

Implemented on refactor in 981971c1: roleplay scene creation now carries forward the prior scene's agents, tools, and scene options, with scene-service coverage added. Validation: pnpm check, pnpm lint, and pnpm exec vitest run src/engine/modes/roleplay/scene/scene-service.test.ts.

<!-- gh-comment-id:4556347889 --> @SpicyMarinara commented on GitHub (May 27, 2026): Implemented on refactor in 981971c1: roleplay scene creation now carries forward the prior scene's agents, tools, and scene options, with scene-service coverage added. Validation: pnpm check, pnpm lint, and pnpm exec vitest run src/engine/modes/roleplay/scene/scene-service.test.ts.
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#642
No description provided.