[PR #8463] [CLOSED] Connections: agents say which model they need, and docs for the account-first flow #8618

Closed
opened 2026-11-07 16:46:01 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8463
Author: @Promansis
Created: 10/29/2026
Status: ❌ Closed

Base: feat/connections-accounts ← Head: soup-connections


📝 Commits (5)

  • db3f27f Agents say which model they need and offer to set it up
  • 5014ec1 Add window: drop the unread first-run state and the unused FirstRunIntro
  • 1b4fc6d Set up opens the job's model picker; the chat toast opens the Connections sidebar
  • 74c29be Docs: Connections guides describe accounts, the Jobs box and starred models
  • 54d6907 Review fixes: package schema accepts requiresConnection, chip edge cases

📊 Changes

26 files changed (+419 additions, -261 deletions)

View changed files

📝 docs/chats/chat-settings.md (+1 -1)
📝 docs/connections/connecting-to-a-provider.md (+49 -53)
📝 docs/connections/organizing-connections.md (+45 -57)
📝 docs/settings/settings-overview.md (+1 -1)
📝 packages/client/src/components/agents/AgentEditor.tsx (+2 -0)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+17 -21)
📝 packages/client/src/components/connections/ConnectionDefaults.tsx (+23 -1)
📝 packages/client/src/components/connections/JobRow.tsx (+16 -6)
📝 packages/client/src/components/connections/ModelRow.tsx (+3 -1)
➕ packages/client/src/components/connections/NeedsModelChip.tsx (+108 -0)
📝 packages/client/src/components/game/GameSetupWizard.tsx (+4 -19)
📝 packages/client/src/components/modals/create-connection/CreateConnectionModalContent.tsx (+0 -6)
📝 packages/client/src/components/modals/create-connection/shared.tsx (+0 -24)
📝 packages/client/src/components/panels/AgentsPanel.tsx (+32 -20)
📝 packages/client/src/components/ui/AvatarGenerationModal.tsx (+2 -3)
📝 packages/client/src/components/ui/SpriteGenerationModal.tsx (+2 -5)
📝 packages/client/src/hooks/use-generate.ts (+34 -24)
📝 packages/client/src/localization/locales/en.json (+5 -10)
📝 packages/server/src/routes/generate.routes.ts (+3 -2)
📝 packages/server/src/routes/generate/retry-agents-route.ts (+2 -1)

...and 6 more files

📄 Description

Important

Stacked on #8456 (feat/connections-accounts). Base is that branch so the diff shows only this work; retarget to staging once #8456 merges.

Linked issue

No issue yet: one should be opened for "agents don't say they need an image model". Follow-up to #8456. Package side: Pasta-Devs/Marinara-Agents#1883.

Why this change

A new user who wants pictures in chat adds Illustrator and nothing tells them it needs an image model. The messages that do exist point at "Settings → Connections" or "Settings → Agents", which are sidebars, not Settings pages. The Add-agent window never checks at all.

What changed

  • One chip, one action. New NeedsModelChip ("Needs an image model" + Set up, opening the same Model for window as the Jobs box, where any catalog model can be picked or Add account used; #8456's Add window no longer assigns jobs). It shows on Agents panel cards, Chat Settings custom-agent rows, the Add-agent window, the Illustrator image field and the Agent editor, and hides once the agent's own model or the job default exists (same order the server uses).
  • Agents declare it. requiresConnection on agent manifests and the packaged-agent schema; agentRequiredConnection() infers it for Illustrator and custom agents with trigger_image_generation until packages declare it (ponytail: marked). Regression: agent-required-connection.
  • Stray messages retired. Game setup, sprite, avatar and Chat Settings video fields use the chip instead of "Add one in Settings → Connections"; dead keys removed from en.json.
  • Server. Missing-image errors name the Connections sidebar's Images default and carry code: "image_connection_missing"; the chat toast then offers Set up (opens the Connections sidebar) instead of a retry that would fail again.
  • Add window. Removed the unread firstRun state and unused FirstRunIntro.
  • Docs. connecting-to-a-provider.md and organizing-connections.md rewritten for accounts, the Jobs box and starred models; two inbound anchors fixed. Translations: #8464.
  • ModelRow.tsx: one line reformatted so pnpm check passes (format drift already on the base branch).

Not included: the planned "Pick your main model" box, held back so the Connections panel layout stays as in #8456.

Validation

  • pnpm check passes locally
  • pnpm regression:node -- --filter agent-required-connection
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Manually verify: with no Images default, the Illustrator card in the Agents panel, its Chat Settings image field, the Add-agent window and the Agent editor all show "Needs an image model".
  • Manually verify: Set up opens Model for Images; picking a model there clears every chip while the window stays open for If it fails. With no image account, its Add account row works.
  • Manually verify: a custom agent with "trigger image generation" shows the chip; giving it its own image model clears it for that agent only.
  • Manually verify: in a roleplay with Illustrator active and no image model, the toast names the Connections sidebar and its Set up opens it.
  • Manually verify: game setup wizard, sprite and avatar generation with no image/video models show the chip.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (#8464) (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

Local review

CodeRabbit CLI is not installed on this machine, so it was not run. A Claude code review (high) of the branch raised 8 findings; 6 fixed in 54d690799 (schema, drawer own-model, picker unmount, built-in Main, drag bubbling, lazy picker). Not changed: Set up in game setup / sprite / avatar windows sets the global job default rather than a per-window pick (those windows inherit that default, so this is intended); the toast offers Set up instead of Try again for a missing image model (a retry fails until one is set). Known gaps: the chip reads row flags only, so an audio chip ignores the TTS card connection and a default on a blocked account still counts as set.

UI evidence (if applicable)

To add.

🤖 Generated with Claude Code


🔄 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/8463 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/29/2026 **Status:** ❌ Closed **Base:** `feat/connections-accounts` ← **Head:** `soup-connections` --- ### 📝 Commits (5) - [`db3f27f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/db3f27f7a5df2ac25b20761b120f85ba637626a0) Agents say which model they need and offer to set it up - [`5014ec1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5014ec14777ecebb6b5c7b2c19df37b1734ead45) Add window: drop the unread first-run state and the unused FirstRunIntro - [`1b4fc6d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1b4fc6d1d26ef84c160b00d6c9ad887daa8c0bfd) Set up opens the job's model picker; the chat toast opens the Connections sidebar - [`74c29be`](https://github.com/Pasta-Devs/Marinara-Engine/commit/74c29be5e8d336346469853adaccdce91757426e) Docs: Connections guides describe accounts, the Jobs box and starred models - [`54d6907`](https://github.com/Pasta-Devs/Marinara-Engine/commit/54d690799e248467ebc2f4b0197f4d80667a51a7) Review fixes: package schema accepts requiresConnection, chip edge cases ### 📊 Changes **26 files changed** (+419 additions, -261 deletions) <details> <summary>View changed files</summary> 📝 `docs/chats/chat-settings.md` (+1 -1) 📝 `docs/connections/connecting-to-a-provider.md` (+49 -53) 📝 `docs/connections/organizing-connections.md` (+45 -57) 📝 `docs/settings/settings-overview.md` (+1 -1) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+2 -0) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+17 -21) 📝 `packages/client/src/components/connections/ConnectionDefaults.tsx` (+23 -1) 📝 `packages/client/src/components/connections/JobRow.tsx` (+16 -6) 📝 `packages/client/src/components/connections/ModelRow.tsx` (+3 -1) ➕ `packages/client/src/components/connections/NeedsModelChip.tsx` (+108 -0) 📝 `packages/client/src/components/game/GameSetupWizard.tsx` (+4 -19) 📝 `packages/client/src/components/modals/create-connection/CreateConnectionModalContent.tsx` (+0 -6) 📝 `packages/client/src/components/modals/create-connection/shared.tsx` (+0 -24) 📝 `packages/client/src/components/panels/AgentsPanel.tsx` (+32 -20) 📝 `packages/client/src/components/ui/AvatarGenerationModal.tsx` (+2 -3) 📝 `packages/client/src/components/ui/SpriteGenerationModal.tsx` (+2 -5) 📝 `packages/client/src/hooks/use-generate.ts` (+34 -24) 📝 `packages/client/src/localization/locales/en.json` (+5 -10) 📝 `packages/server/src/routes/generate.routes.ts` (+3 -2) 📝 `packages/server/src/routes/generate/retry-agents-route.ts` (+2 -1) _...and 6 more files_ </details> ### 📄 Description > [!IMPORTANT] > Stacked on #8456 (`feat/connections-accounts`). Base is that branch so the diff shows only this work; retarget to `staging` once #8456 merges. ## Linked issue No issue yet: one should be opened for "agents don't say they need an image model". Follow-up to #8456. Package side: Pasta-Devs/Marinara-Agents#1883. ## Why this change A new user who wants pictures in chat adds Illustrator and nothing tells them it needs an image model. The messages that do exist point at "Settings → Connections" or "Settings → Agents", which are sidebars, not Settings pages. The Add-agent window never checks at all. ## What changed - **One chip, one action.** New `NeedsModelChip` ("Needs an image model" + **Set up**, opening the same **Model for <job>** window as the Jobs box, where any catalog model can be picked or **Add account** used; #8456's Add window no longer assigns jobs). It shows on Agents panel cards, Chat Settings custom-agent rows, the Add-agent window, the Illustrator image field and the Agent editor, and hides once the agent's own model or the job default exists (same order the server uses). - **Agents declare it.** `requiresConnection` on agent manifests and the packaged-agent schema; `agentRequiredConnection()` infers it for Illustrator and custom agents with `trigger_image_generation` until packages declare it (`ponytail:` marked). Regression: `agent-required-connection`. - **Stray messages retired.** Game setup, sprite, avatar and Chat Settings video fields use the chip instead of "Add one in Settings → Connections"; dead keys removed from `en.json`. - **Server.** Missing-image errors name the Connections sidebar's Images default and carry `code: "image_connection_missing"`; the chat toast then offers **Set up** (opens the Connections sidebar) instead of a retry that would fail again. - **Add window.** Removed the unread `firstRun` state and unused `FirstRunIntro`. - **Docs.** `connecting-to-a-provider.md` and `organizing-connections.md` rewritten for accounts, the Jobs box and starred models; two inbound anchors fixed. Translations: #8464. - `ModelRow.tsx`: one line reformatted so `pnpm check` passes (format drift already on the base branch). Not included: the planned "Pick your main model" box, held back so the Connections panel layout stays as in #8456. ## Validation - [ ] `pnpm check` passes locally - [ ] `pnpm regression:node -- --filter agent-required-connection` - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Manually verify: with no Images default, the Illustrator card in the Agents panel, its Chat Settings image field, the Add-agent window and the Agent editor all show "Needs an image model". - Manually verify: **Set up** opens **Model for Images**; picking a model there clears every chip while the window stays open for **If it fails**. With no image account, its **Add account** row works. - Manually verify: a custom agent with "trigger image generation" shows the chip; giving it its own image model clears it for that agent only. - Manually verify: in a roleplay with Illustrator active and no image model, the toast names the Connections sidebar and its **Set up** opens it. - Manually verify: game setup wizard, sprite and avatar generation with no image/video models show the chip. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (#8464) (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ### Local review CodeRabbit CLI is not installed on this machine, so it was not run. A Claude code review (high) of the branch raised 8 findings; 6 fixed in 54d690799 (schema, drawer own-model, picker unmount, built-in Main, drag bubbling, lazy picker). Not changed: Set up in game setup / sprite / avatar windows sets the global job default rather than a per-window pick (those windows inherit that default, so this is intended); the toast offers Set up instead of Try again for a missing image model (a retry fails until one is set). Known gaps: the chip reads row flags only, so an audio chip ignores the TTS card connection and a default on a blocked account still counts as set. ## UI evidence (if applicable) To add. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:46:01 +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#8618
No description provided.