Skip to content

perf: gate verbose client logs in ai chat panel#44

Merged
charlesrhoward merged 1 commit intomainfrom
codex/feat-32-gate-ai-chat-debug-logs
Feb 21, 2026
Merged

perf: gate verbose client logs in ai chat panel#44
charlesrhoward merged 1 commit intomainfrom
codex/feat-32-gate-ai-chat-debug-logs

Conversation

@charlesrhoward
Copy link
Contributor

@charlesrhoward charlesrhoward commented Feb 21, 2026

Summary

  • add a debug logging gate in AIChatPanel (NODE_ENV !== production or NEXT_PUBLIC_CHAT_DEBUG=1)
  • route verbose chat flow logs through the debug logger
  • keep error logging unchanged for operational visibility

Closes #32


Note

Low Risk
Logging-only change gated by env flags; main risk is reduced production observability if a debug log was previously relied on.

Overview
Adds a gated debugLog helper in AIChatPanel that only emits verbose client logs when not in production or when NEXT_PUBLIC_CHAT_DEBUG=1 is set.

Routes existing high-volume console.log statements (tool call lifecycle, background diagram runs, session load/create, and image upload flow) through debugLog, while leaving error logs as-is for operational visibility.

Written by Cursor Bugbot for commit 7055e10. This will update automatically on new commits. Configure here.

@charlesrhoward charlesrhoward enabled auto-merge (squash) February 21, 2026 21:30
@vercel
Copy link

vercel bot commented Feb 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
drawit Ready Ready Preview, Comment Feb 21, 2026 10:20pm

Request Review

@charlesrhoward charlesrhoward force-pushed the codex/feat-32-gate-ai-chat-debug-logs branch from 8609433 to 7055e10 Compare February 21, 2026 22:19
@charlesrhoward charlesrhoward merged commit 6c7213b into main Feb 21, 2026
4 checks passed
@charlesrhoward charlesrhoward deleted the codex/feat-32-gate-ai-chat-debug-logs branch February 21, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Performance: Gate verbose client logs in AI chat panel

1 participant