Skip to content

Commit 4949e73

Browse files
jwesleyeclaude
andcommitted
chore: code cleanup - linting, formatting, and type checking
- Fixed ruff line length violations in chat_loop.py - Shortened comment to fit 88 character limit - All linting checks passing - All formatting checks passing - Mypy type checking passing (18 source files) - All 318 tests passing, 13 skipped Changes: - Line 2002: Shortened comment "Skip if harmony will post-process" - Lines 2052-2056: Ruff auto-formatted multi-line condition - Updated uv.lock with dependency refresh 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 8c3422a commit 4949e73

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/basic_agent_chat_loop/chat_loop.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1999,7 +1999,7 @@ async def _stream_agent_response(self, query: str) -> dict[str, Any]:
19991999
response_text.append(text_to_add)
20002000
if not self.use_rich and not self.harmony_processor:
20012001
# Apply colorization for tool messages during streaming
2002-
# Skip streaming display if harmony will post-process the response
2002+
# Skip if harmony will post-process the response
20032003
formatted_text = Colors.format_agent_response(text_to_add)
20042004
print(formatted_text, end="", flush=True)
20052005
else:
@@ -2050,7 +2050,9 @@ async def _stream_agent_response(self, query: str) -> dict[str, Any]:
20502050
# Track if we already printed during streaming (to prevent duplicates)
20512051
# Note: Don't consider it printed if harmony will transform the output
20522052
already_printed_streaming = (
2053-
first_token_received and not self.use_rich and not self.harmony_processor
2053+
first_token_received
2054+
and not self.use_rich
2055+
and not self.harmony_processor
20542056
)
20552057

20562058
# Process through Harmony if available

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)