[PR #2552] [MERGED] [codex] Refine agent exports and debug controls #5653

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2552
Author: @SpicyMarinara
Created: 6/13/2026
Status: ✅ Merged
Merged: 6/14/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/agent-debug-export-notifications


📝 Commits (3)

  • de509db Refine agent exports and debug controls
  • 52f55b1 Address CodeRabbit agent export review
  • 5e93aea Report batch agent debug token budget

📊 Changes

47 files changed (+2347 additions, -642 deletions)

View changed files

📝 packages/client/src/App.tsx (+2 -1)
📝 packages/client/src/components/agents/AgentDebugPanel.tsx (+72 -2)
📝 packages/client/src/components/agents/AgentEditor.tsx (+287 -28)
📝 packages/client/src/components/agents/ToolEditor.tsx (+22 -9)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+155 -26)
📝 packages/client/src/components/modals/ImportPresetModal.tsx (+32 -16)
📝 packages/client/src/components/panels/AgentsPanel.tsx (+235 -68)
📝 packages/client/src/components/panels/PresetsPanel.tsx (+33 -26)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+132 -49)
📝 packages/client/src/components/panels/settings/SettingControls.tsx (+11 -0)
📝 packages/client/src/hooks/use-generate.ts (+38 -5)
📝 packages/client/src/stores/agent.store.ts (+35 -4)
📝 packages/client/src/stores/ui.store.ts (+12 -2)
📝 packages/server/src/routes/agents.routes.ts (+4 -1)
📝 packages/server/src/routes/generate.routes.ts (+41 -4)
📝 packages/server/src/routes/generate/retry-agents-route.ts (+38 -4)
📝 packages/server/src/routes/prompts.routes.ts (+45 -40)
📝 packages/server/src/services/agents/agent-executor.ts (+199 -14)
📝 packages/server/src/services/import/marinara.importer.ts (+38 -8)
📝 packages/shared/package.json (+3 -3)

...and 27 more files

📄 Description

What changed

  • Adds folder-style agent/function registry scaffolding so built-in agents and function calls can be imported/exported from discrete package folders.
  • Adds agent author metadata, named prompt-template options, and per-chat prompt selection for agents.
  • Adds richer agent debug events for normal generation and manual retry-agent calls, including prompts, model, token usage, timing, batch membership, and browser-console output.
  • Updates the Agents tab with custom-agent selection mode, bulk export/delete, and single-agent export from the editor.
  • Moves toast notifications to top-center under the topbar and adds a Game mode notification sound setting that plays after a turn finishes loading.

Why

This continues the settings/agent refactor by making agent packages easier to maintain and share, improving debug visibility for model/agent calls, and aligning the Agents tab with the bulk-management behavior users already have in other tabs.

Validation

  • pnpm check

Manual verification still needed

  • Manually verify agent import/export round-trips in the browser.
  • Manually verify Debug Mode shows agent prompt/model/token details in the in-app Agent Debug panel and full payloads in DevTools.
  • Manually verify Game mode notification sound plays once after a turn loads.
  • Manually verify top-center toasts do not overlap the topbar on narrow and desktop layouts.

Summary by CodeRabbit

  • New Features

    • Agent debug panel with per-call cards; per-agent named prompt templates and selection (editor + chat)
    • Agent editor: Author field and Export button; multi-select export/delete for custom agents
    • Many new tools (dice, game-state, lorebook, chat-variable, summary) plus Spotify controls (playback, playlists, search, play, set volume)
    • Folder-style import/export for presets, themes, extensions, agents, and tools
  • UI/UX Improvements

    • Toasts moved to top-center
    • Notification sounds: new “Game mode” toggle and refined game-mode playback behavior

🔄 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/2552 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 6/13/2026 **Status:** ✅ Merged **Merged:** 6/14/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/agent-debug-export-notifications` --- ### 📝 Commits (3) - [`de509db`](https://github.com/Pasta-Devs/Marinara-Engine/commit/de509dbbe16f400efc8f7e45163260140f609d25) Refine agent exports and debug controls - [`52f55b1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/52f55b1229e9ebaa13c94890d8afb3da02152c71) Address CodeRabbit agent export review - [`5e93aea`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5e93aea439f36548529fb8f91e4d202d145f164a) Report batch agent debug token budget ### 📊 Changes **47 files changed** (+2347 additions, -642 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/App.tsx` (+2 -1) 📝 `packages/client/src/components/agents/AgentDebugPanel.tsx` (+72 -2) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+287 -28) 📝 `packages/client/src/components/agents/ToolEditor.tsx` (+22 -9) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+155 -26) 📝 `packages/client/src/components/modals/ImportPresetModal.tsx` (+32 -16) 📝 `packages/client/src/components/panels/AgentsPanel.tsx` (+235 -68) 📝 `packages/client/src/components/panels/PresetsPanel.tsx` (+33 -26) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+132 -49) 📝 `packages/client/src/components/panels/settings/SettingControls.tsx` (+11 -0) 📝 `packages/client/src/hooks/use-generate.ts` (+38 -5) 📝 `packages/client/src/stores/agent.store.ts` (+35 -4) 📝 `packages/client/src/stores/ui.store.ts` (+12 -2) 📝 `packages/server/src/routes/agents.routes.ts` (+4 -1) 📝 `packages/server/src/routes/generate.routes.ts` (+41 -4) 📝 `packages/server/src/routes/generate/retry-agents-route.ts` (+38 -4) 📝 `packages/server/src/routes/prompts.routes.ts` (+45 -40) 📝 `packages/server/src/services/agents/agent-executor.ts` (+199 -14) 📝 `packages/server/src/services/import/marinara.importer.ts` (+38 -8) 📝 `packages/shared/package.json` (+3 -3) _...and 27 more files_ </details> ### 📄 Description ## What changed - Adds folder-style agent/function registry scaffolding so built-in agents and function calls can be imported/exported from discrete package folders. - Adds agent author metadata, named prompt-template options, and per-chat prompt selection for agents. - Adds richer agent debug events for normal generation and manual retry-agent calls, including prompts, model, token usage, timing, batch membership, and browser-console output. - Updates the Agents tab with custom-agent selection mode, bulk export/delete, and single-agent export from the editor. - Moves toast notifications to top-center under the topbar and adds a Game mode notification sound setting that plays after a turn finishes loading. ## Why This continues the settings/agent refactor by making agent packages easier to maintain and share, improving debug visibility for model/agent calls, and aligning the Agents tab with the bulk-management behavior users already have in other tabs. ## Validation - `pnpm check` ## Manual verification still needed - Manually verify agent import/export round-trips in the browser. - Manually verify Debug Mode shows agent prompt/model/token details in the in-app Agent Debug panel and full payloads in DevTools. - Manually verify Game mode notification sound plays once after a turn loads. - Manually verify top-center toasts do not overlap the topbar on narrow and desktop layouts. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Agent debug panel with per-call cards; per-agent named prompt templates and selection (editor + chat) * Agent editor: Author field and Export button; multi-select export/delete for custom agents * Many new tools (dice, game-state, lorebook, chat-variable, summary) plus Spotify controls (playback, playlists, search, play, set volume) * Folder-style import/export for presets, themes, extensions, agents, and tools * **UI/UX Improvements** * Toasts moved to top-center * Notification sounds: new “Game mode” toggle and refined game-mode playback behavior <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:18:10 +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#5653
No description provided.