[PR #1171] [MERGED] fix/wire in agents debug mode logging #4956

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1171
Author: @ghost
Created: 5/24/2026
Status: ✅ Merged
Merged: 5/25/2026
Merged by: @cha1latte

Base: refactor ← Head: fix/refactor-pr-57-agent-debug-logging


📝 Commits (2)

  • 5c78c47 Migrate Refactor PR #57: Wire agent debug logging
  • 283f616 Merge refactor into PR 1171

📊 Changes

12 files changed (+251 additions, -45 deletions)

View changed files

📝 src/app/shell/AppShell.tsx (+2 -0)
📝 src/engine/agents-runtime/executor/agent-executor.ts (+99 -10)
📝 src/engine/agents-runtime/knowledge/knowledge-router.ts (+11 -0)
📝 src/engine/agents-runtime/pipeline/agent-pipeline.ts (+47 -6)
📝 src/engine/contracts/types/agent.ts (+31 -0)
📝 src/engine/generation/agent-runner.ts (+4 -0)
📝 src/engine/generation/start-generation.ts (+5 -1)
📝 src/features/catalog/agents/components/AgentDebugPanel.tsx (+42 -2)
📝 src/features/catalog/agents/shell.ts (+1 -0)
📝 src/features/runtime/generation/hooks/use-generate.ts (+7 -1)
📝 src/features/shell/settings/components/SettingsPanel.tsx (+1 -1)
📝 src/shared/stores/agent.store.ts (+1 -24)

📄 Description

Migrated from Pasta-Devs/Marinara-Engine-Refactor#57: https://github.com/Pasta-Devs/Marinara-Engine-Refactor/pull/57
Original author: @Promansis
Target base: Pasta-Devs/Marinara-Engine refactor
Source draft state: True
Verification after port: pnpm typecheck
Port note: the source branch included an inherited avatar-crop commit; this target branch ports the debug-logging work only because Refactor PR #55 is migrated separately.


Linked issue

Fixes #34

Why this change

This adds visible debug-mode output for agent execution so prompt, response, tool-call, tool-result, and batch details can be inspected in the in-app agent debug panel during generation.

What changed

  • Wired debugMode and debugSink through the TypeScript generation/agent runtime.
  • Added structured agent debug entries in the engine so debug information is collected centrally instead of being silent.
  • Updated the settings help text to describe the in-app debug panel.
  • Moved the agent debug entry type into the shared engine contract.

Validation

  • pnpm typecheck
  • pnpm build
  • cargo check --manifest-path src-tauri/Cargo.toml
  • pnpm check:docs when docs, skills, or repo guidance changed
  • Ran pnpm tauri dev and tested the app path manually
  • Verified the affected feature in the right mode(s): chat, roleplay, game, settings/providers, imports/exports, or assets

Manual verification notes

Not run in this handoff.

Docs impact

  • No docs changes needed
  • Updated docs/developer/* or repo guidance as needed

UI evidence


🔄 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/1171 **Author:** [@ghost](https://github.com/ghost) **Created:** 5/24/2026 **Status:** ✅ Merged **Merged:** 5/25/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/refactor-pr-57-agent-debug-logging` --- ### 📝 Commits (2) - [`5c78c47`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5c78c47a0c4037ea3bfcf2783b7a21264aba24a5) Migrate Refactor PR #57: Wire agent debug logging - [`283f616`](https://github.com/Pasta-Devs/Marinara-Engine/commit/283f616bff3c91e33483daee42d9446caa8d941b) Merge refactor into PR 1171 ### 📊 Changes **12 files changed** (+251 additions, -45 deletions) <details> <summary>View changed files</summary> 📝 `src/app/shell/AppShell.tsx` (+2 -0) 📝 `src/engine/agents-runtime/executor/agent-executor.ts` (+99 -10) 📝 `src/engine/agents-runtime/knowledge/knowledge-router.ts` (+11 -0) 📝 `src/engine/agents-runtime/pipeline/agent-pipeline.ts` (+47 -6) 📝 `src/engine/contracts/types/agent.ts` (+31 -0) 📝 `src/engine/generation/agent-runner.ts` (+4 -0) 📝 `src/engine/generation/start-generation.ts` (+5 -1) 📝 `src/features/catalog/agents/components/AgentDebugPanel.tsx` (+42 -2) 📝 `src/features/catalog/agents/shell.ts` (+1 -0) 📝 `src/features/runtime/generation/hooks/use-generate.ts` (+7 -1) 📝 `src/features/shell/settings/components/SettingsPanel.tsx` (+1 -1) 📝 `src/shared/stores/agent.store.ts` (+1 -24) </details> ### 📄 Description Migrated from Pasta-Devs/Marinara-Engine-Refactor#57: https://github.com/Pasta-Devs/Marinara-Engine-Refactor/pull/57 Original author: @Promansis Target base: Pasta-Devs/Marinara-Engine refactor Source draft state: True Verification after port: `pnpm typecheck` Port note: the source branch included an inherited avatar-crop commit; this target branch ports the debug-logging work only because Refactor PR #55 is migrated separately. --- ## Linked issue Fixes #34 ## Why this change This adds visible debug-mode output for agent execution so prompt, response, tool-call, tool-result, and batch details can be inspected in the in-app agent debug panel during generation. ## What changed - Wired `debugMode` and `debugSink` through the TypeScript generation/agent runtime. - Added structured agent debug entries in the engine so debug information is collected centrally instead of being silent. - Updated the settings help text to describe the in-app debug panel. - Moved the agent debug entry type into the shared engine contract. ## Validation - [x] `pnpm typecheck` - [x] `pnpm build` - [x] `cargo check --manifest-path src-tauri/Cargo.toml` - [x] `pnpm check:docs` when docs, skills, or repo guidance changed - [x] Ran `pnpm tauri dev` and tested the app path manually - [x] Verified the affected feature in the right mode(s): chat, roleplay, game, settings/providers, imports/exports, or assets ### Manual verification notes Not run in this handoff. ## Docs impact - [x] No docs changes needed - [ ] Updated `docs/developer/*` or repo guidance as needed ## UI evidence --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:12: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#4956
No description provided.