Skip to content

Commit 1d5e2ca

Browse files
jwesleyeclaude
andcommitted
style: fix line length linting issues
Wrap long lines to comply with 88 character limit. Changes: - Wrapped comment lines in chat_config.py - Wrapped help_text in config_wizard.py - Wrapped docstring in response_streamer.py - Wrapped comments in response_streamer.py - Wrapped template text in template_manager.py 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 2fd41df commit 1d5e2ca

4 files changed

Lines changed: 19 additions & 11 deletions

File tree

src/basic_agent_chat_loop/chat_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ class ChatConfig:
5454
"retry_delay": 2.0,
5555
"timeout": 120.0,
5656
"spinner_style": "dots",
57-
"suppress_agent_stdout": True, # Suppress agent library stdout during streaming
57+
# Suppress agent library stdout during streaming
58+
"suppress_agent_stdout": True,
5859
},
5960
"ui": {
6061
"show_banner": True,

src/basic_agent_chat_loop/components/config_wizard.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,10 @@ def _configure_behavior(self):
646646
self.config["behavior"]["suppress_agent_stdout"] = self._prompt_bool(
647647
"\nSuppress agent library streaming output?",
648648
default=current_suppress,
649-
help_text="Prevents double-output from some agent libraries (recommended: yes)",
649+
help_text=(
650+
"Prevents double-output from some agent libraries "
651+
"(recommended: yes)"
652+
),
650653
)
651654

652655
def _configure_paths(self):

src/basic_agent_chat_loop/components/response_streamer.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ def __init__(
9797
show_tokens: Whether to show token usage
9898
harmony_processor: Optional Harmony processor for OpenAI format
9999
status_bar: Optional status bar for real-time updates
100-
suppress_agent_stdout: Whether to suppress agent library stdout during streaming
100+
suppress_agent_stdout: Whether to suppress agent library stdout
101+
during streaming
101102
"""
102103
self.agent = agent
103104
self.agent_name = agent_name
@@ -188,12 +189,13 @@ async def stream_agent_response(
188189

189190
# Check if agent supports streaming
190191
if hasattr(self.agent, "stream_async"):
191-
# WORKAROUND: Suppress stdout during streaming to prevent agent libraries
192-
# from printing accumulated response text as a side effect
193-
# (Discovered in beta.8 diagnostics - text appears between event loop iterations)
194-
# NOTE: Suppression is only active BETWEEN iterations (during yield back to
195-
# stream_async). During our event processing, stdout is restored so tool calls
196-
# and logging work normally.
192+
# WORKAROUND: Suppress stdout during streaming to prevent
193+
# agent libraries from printing accumulated response text as
194+
# a side effect (discovered in beta.8 diagnostics - text
195+
# appears between event loop iterations)
196+
# NOTE: Suppression is only active BETWEEN iterations (during
197+
# yield back to stream_async). During our event processing,
198+
# stdout is restored so tool calls and logging work normally.
197199
old_stdout = None
198200
if self.suppress_agent_stdout:
199201
old_stdout = sys.stdout

src/basic_agent_chat_loop/components/template_manager.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,11 @@ def _initialize_templates(self):
133133
"load",
134134
"""# Load Markdown Files
135135
136-
Please load all markdown (.md) files from the current directory or specified directory into context for analysis and reference.
136+
Please load all markdown (.md) files from the current directory or
137+
specified directory into context for analysis and reference.
137138
138-
**Important**: Only load files directly in the specified directory, NOT in any subdirectories.
139+
**Important**: Only load files directly in the specified directory,
140+
NOT in any subdirectories.
139141
140142
**Process**:
141143
1. Use glob to find all .md files in the target directory (non-recursive)

0 commit comments

Comments
 (0)