Skip to content

fix: make agent debug callback logging opt-in everywhere#87

Closed
DavidJBianco wants to merge 2 commits into
batch-a-quick-fixesfrom
batch-c-logging-opt-in
Closed

fix: make agent debug callback logging opt-in everywhere#87
DavidJBianco wants to merge 2 commits into
batch-a-quick-fixesfrom
batch-c-logging-opt-in

Conversation

@DavidJBianco

Copy link
Copy Markdown
Collaborator

Summary

Stops msgs.txt / results.txt being written on every agent run by making the preprocess/postprocess_messages_logging callbacks opt-in rather than the default.

Two changes, no file overlap between them:

Streamlit UI (peak_assistant/streamlit/util/ui.py):

  • Changes debug_agents default from TrueFalse in peak_assistant_chat(). No callers pass the argument explicitly, so the default change covers all UI paths. This is a cleaner fix than hardcoding False at each call site as PR fix: disable callback tracing in Streamlit UI runs by default #72 proposed — the main branch had already threaded debug_agents as a parameter, but left the default wrong.

CLIs (data_assistant/__main__.py, planning_assistant/__main__.py, hypothesis_assistant/hypothesis_refiner_cli.py):

Closes #72 and #73 (superseded).

Test plan

  • Run each CLI without --debug-agents and confirm no msgs.txt/results.txt are created
  • Run a CLI with --debug-agents and confirm the files are created as before
  • Run the Streamlit app and confirm no debug files appear during normal UI use

🤖 Generated with Claude Code

DavidJBianco and others added 2 commits April 23, 2026 09:50
Changes the debug_agents default from True to False in peak_assistant_chat()
so prompt/response content is not written to msgs.txt/results.txt on every
Streamlit interaction. No callers pass debug_agents explicitly, so the
default change covers all UI paths.

Supersedes PR #72.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@DavidJBianco

Copy link
Copy Markdown
Collaborator Author

Merged into dev via fast-forward (batch-d-refiner-fixes chain).

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.

1 participant