[PR #2501] [MERGED] Fix agent default parity #5621

Closed
opened 2026-10-22 04:17:54 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2501
Author: @Promansis
Created: 6/6/2026
Status: ✅ Merged
Merged: 6/6/2026
Merged by: @Promansis

Base: refactor ← Head: fix/agent-default-parity


📝 Commits (1)

📊 Changes

7 files changed (+167 additions, -31 deletions)

View changed files

📝 src/engine/contracts/types/agent.ts (+1 -5)
📝 src/engine/generation/agent-runner.ts (+2 -5)
➕ src/engine/generation/illustrator-settings.spec.ts (+91 -0)
➕ src/engine/generation/illustrator-settings.ts (+45 -0)
📝 src/engine/generation/start-generation.ts (+2 -4)
📝 src/features/catalog/agents/components/AgentEditor.tsx (+25 -16)
📝 vitest.config.ts (+1 -1)

📄 Description

Linked issue

#2488 #2489

Why this change

  • Align built-in agent defaults so risky/optional helpers are not implicitly on.
  • Keep existing Illustrator chats/presets compatible when they used old chat-level avatar-reference metadata.

What changed

  • Disabled Immersive HTML by default.
  • Removed the Illustrator agent's default useAvatarReferences setting.
  • Centralized Illustrator avatar-reference resolution so explicit agent settings win, while old chat metadata still works when the setting is absent.
  • Added a focused Vitest guard for the default and legacy metadata behavior.
  • Included src/**/*.spec.{ts,tsx} in the Vitest config so the new spec runs.

Refactor impact

Primary owner:

engine generation

Impact areas reviewed:

  • Built-in agent defaults and fallback config creation.
  • Illustrator reference loading before agent execution.
  • Illustration image attachment generation.
  • Agent editor settings persistence.
  • Chat settings active-agent flow.
  • Separate game illustration path.

Boundary notes:

  • Engine-only behavior change. No React, Tauri, shared API, remote-runtime, or Rust boundary changes.

Pressure points touched:

  • Runtime generation agent resolution.
  • Illustrator image generation settings.
  • Vitest test discovery config.

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • git diff --check
  • pnpm exec vitest run src/engine/generation/illustrator-settings.spec.ts
  • pnpm test
  • pnpm typecheck
  • pnpm check:architecture
  • pnpm check

Durable test rationale:

  • Regression/risky invariant: Illustrator avatar references should default off for new configs, but old chat-level illustrationUseAvatarReferences metadata must still enable references when the agent setting is absent.
  • Existing proof was insufficient because the behavior spans default settings plus runtime generation paths.
  • The test is narrow: it exercises only built-in defaults and the shared Illustrator avatar-reference resolver.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • Existing agent behavior/default parity fix; no new discoverable user workflow.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

Not applicable; no visible UI changes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/2501 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 6/6/2026 **Status:** ✅ Merged **Merged:** 6/6/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `refactor` ← **Head:** `fix/agent-default-parity` --- ### 📝 Commits (1) - [`c666ff8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c666ff8d117a1db61ad8a24db3411dee3ca3db77) Fix agent default parity ### 📊 Changes **7 files changed** (+167 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `src/engine/contracts/types/agent.ts` (+1 -5) 📝 `src/engine/generation/agent-runner.ts` (+2 -5) ➕ `src/engine/generation/illustrator-settings.spec.ts` (+91 -0) ➕ `src/engine/generation/illustrator-settings.ts` (+45 -0) 📝 `src/engine/generation/start-generation.ts` (+2 -4) 📝 `src/features/catalog/agents/components/AgentEditor.tsx` (+25 -16) 📝 `vitest.config.ts` (+1 -1) </details> ### 📄 Description ## Linked issue #2488 #2489 ## Why this change - Align built-in agent defaults so risky/optional helpers are not implicitly on. - Keep existing Illustrator chats/presets compatible when they used old chat-level avatar-reference metadata. ## What changed - Disabled Immersive HTML by default. - Removed the Illustrator agent's default `useAvatarReferences` setting. - Centralized Illustrator avatar-reference resolution so explicit agent settings win, while old chat metadata still works when the setting is absent. - Added a focused Vitest guard for the default and legacy metadata behavior. - Included `src/**/*.spec.{ts,tsx}` in the Vitest config so the new spec runs. ## Refactor impact Primary owner: engine generation Impact areas reviewed: - Built-in agent defaults and fallback config creation. - Illustrator reference loading before agent execution. - Illustration image attachment generation. - Agent editor settings persistence. - Chat settings active-agent flow. - Separate game illustration path. Boundary notes: - Engine-only behavior change. No React, Tauri, shared API, remote-runtime, or Rust boundary changes. Pressure points touched: - Runtime generation agent resolution. - Illustrator image generation settings. - Vitest test discovery config. ## Validation - [x] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [x] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - `git diff --check` - `pnpm exec vitest run src/engine/generation/illustrator-settings.spec.ts` - `pnpm test` - `pnpm typecheck` - `pnpm check:architecture` - `pnpm check` Durable test rationale: - Regression/risky invariant: Illustrator avatar references should default off for new configs, but old chat-level `illustrationUseAvatarReferences` metadata must still enable references when the agent setting is absent. - Existing proof was insufficient because the behavior spans default settings plus runtime generation paths. - The test is narrow: it exercises only built-in defaults and the shared Illustrator avatar-reference resolver. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [x] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - Existing agent behavior/default parity fix; no new discoverable user workflow. ## Docs and release impact - [x] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [x] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence Not applicable; no visible UI changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:17:54 +07:00
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#5621
No description provided.