Skip to content
This repository was archived by the owner on May 24, 2026. It is now read-only.

Fix/ debug mode console logging - contract mismatch#40

Draft
Promansis wants to merge 1 commit into
Pasta-Devs:mainfrom
Promansis:bug/issue-34-debug-mode
Draft

Fix/ debug mode console logging - contract mismatch#40
Promansis wants to merge 1 commit into
Pasta-Devs:mainfrom
Promansis:bug/issue-34-debug-mode

Conversation

@Promansis
Copy link
Copy Markdown
Collaborator

@Promansis Promansis commented May 21, 2026

What changed

This patch makes Debug mode match the documented contract by routing LLM request/response payload logging through the shared llmApi wrapper. When Debug mode is enabled, the browser console now shows redacted request and response groups for both complete and streamed calls, while the existing in-app agent debug panel remains tied to the same setting.

Why

Linked to issue #34

The Settings UI promised console logging, but the actual behavior was mostly limited to the in-app agent debug panel. That left the documented Debug mode contract inconsistent with runtime behavior.

Impact

This affects shared LLM callers across generation, game helpers, summary flows, scene services, maker flows, connected commands, and agent runtime paths, because they all go through the shared llmApi gateway.

Validation

  • pnpm typecheck
  • pnpm check

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 21, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 46a93c5e-3fdd-4000-a167-3d5396a116e4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Promansis Promansis changed the title [codex] debug mode console logging Fix/ debug mode console logging - contract mismatch May 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants