diff --git a/run_agent.py b/run_agent.py index 854d9b9f..e29ee85e 100644 --- a/run_agent.py +++ b/run_agent.py @@ -1207,6 +1207,19 @@ class AIAgent: logging.getLogger('openai._base_client').setLevel(logging.ERROR) logging.getLogger('httpx').setLevel(logging.ERROR) logging.getLogger('httpcore').setLevel(logging.ERROR) + if self.quiet_mode: + # In quiet mode (CLI default), suppress all tool/infra log + # noise. The TUI has its own rich display for status; logger + # INFO/WARNING messages just clutter it. + for quiet_logger in [ + 'tools', # all tools.* (terminal, browser, web, file, etc.) + 'minisweagent', # mini-swe-agent execution backend + 'run_agent', # agent runner internals + 'trajectory_compressor', + 'cron', # scheduler (only relevant in daemon mode) + 'hermes_cli', # CLI helpers + ]: + logging.getLogger(quiet_logger).setLevel(logging.ERROR) # Initialize OpenAI client - defaults to OpenRouter client_kwargs = {} diff --git a/tools/terminal_tool.py b/tools/terminal_tool.py index 6b06d342..eec2b673 100644 --- a/tools/terminal_tool.py +++ b/tools/terminal_tool.py @@ -93,8 +93,8 @@ def _get_scratch_dir() -> Path: logger.info("Using /scratch for sandboxes: %s", user_scratch) return user_scratch - # Fall back to /tmp - logger.warning("/scratch not available, using /tmp (limited space)") + # Fall back to /tmp (only relevant for Singularity/HPC sandboxes) + logger.debug("/scratch not available, using /tmp for sandboxes") return Path(tempfile.gettempdir())