[GH-ISSUE #3931] [Issue]: Debug mode dose not output failed agent responses #2126

Closed
opened 2026-10-21 05:45:36 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Sciguy429 on GitHub (Jul 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3931

Originally assigned to: @SpicyMarinara on GitHub.

Summary

When debug mode is enabled and an agent response fails (like from a malformed JSON response), only a warning is printed, not the malformed response.

Expected behavior

The malformed response should be displayed to allow for debugging. I can't tell why the agent failed without seeing it's broken response. My local model might legitimately be screwing it up, or it could be a problem with the configuration, no way to tell as it stands.

Actual behavior

Only the following is printed in the console:

{"level":40,"time":1784684171724,"pid":12404,"hostname":"(REMOVED)","msg":"[agent] html returned invalid JSON; retrying once with strict JSON reminder"}

Successful responses do print entirely however!

Steps to reproduce

  1. Enable debug mode.
  2. Cause any model to fail an agent request.
  3. Look in console.

Environment

  • Marinara Engine version: V2.3.3
  • Install type: Zip from releases page
  • OS + version: Window 11
  • Browser or app shell: Firefox
  • Model: MiMo-V2.5 on local LLama.cpp server

Template check

Please uncheck (untick) 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 @Sciguy429 on GitHub (Jul 22, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3931 Originally assigned to: @SpicyMarinara on GitHub. ## Summary When debug mode is enabled and an agent response fails (like from a malformed JSON response), only a warning is printed, not the malformed response. ## Expected behavior The malformed response should be displayed to allow for debugging. I can't tell *why* the agent failed without seeing it's broken response. My local model might legitimately be screwing it up, or it could be a problem with the configuration, no way to tell as it stands. ## Actual behavior Only the following is printed in the console: ``` {"level":40,"time":1784684171724,"pid":12404,"hostname":"(REMOVED)","msg":"[agent] html returned invalid JSON; retrying once with strict JSON reminder"} ``` Successful responses do print entirely however! ## Steps to reproduce 1. Enable debug mode. 2. Cause any model to fail an agent request. 3. Look in console. ## Environment - Marinara Engine version: V2.3.3 - Install type: Zip from releases page - OS + version: Window 11 - Browser or app shell: Firefox - Model: MiMo-V2.5 on local LLama.cpp server ## Template check Please **uncheck (untick)** 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-21 05:45:36 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 22, 2026):

It does it in the browser console, but I'll mirror those in the console running the code, too.

<!-- gh-comment-id:5043263294 --> @SpicyMarinara commented on GitHub (Jul 22, 2026): It does it in the browser console, but I'll mirror those in the console running the code, too.
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#2126
No description provided.