Skip to content

Conversation

@linw1995
Copy link
Owner

@linw1995 linw1995 commented Jan 5, 2026

  • Add error response parsing in Anthropic client to provide better error messages
  • Implement tool output truncation to prevent context overflow (80KB limit)
  • Add proper error handling for chat API failures in TUI components
  • Fix message locking issue in agent to avoid deadlock scenarios
  • Add comprehensive tests for truncation logic and error handling

- Add error response parsing in Anthropic client to provide better error messages
- Implement tool output truncation to prevent context overflow (80KB limit)
- Add proper error handling for chat API failures in TUI components
- Fix message locking issue in agent to avoid deadlock scenarios
- Add comprehensive tests for truncation logic and error handling
@linw1995 linw1995 added the bug Something isn't working label Jan 5, 2026
@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 46.59686% with 102 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.14%. Comparing base (fad69e0) to head (e9ff67a).
⚠️ Report is 3 commits behind head on dev.

Files with missing lines Patch % Lines
crates/coco-tui/src/components/chat.rs 55.97% 70 Missing ⚠️
crates/anthropic/src/client/messages.rs 0.00% 18 Missing ⚠️
src/agent.rs 0.00% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev      #74      +/-   ##
==========================================
- Coverage   59.25%   59.14%   -0.11%     
==========================================
  Files          77       77              
  Lines       15488    15666     +178     
==========================================
+ Hits         9177     9266      +89     
- Misses       6311     6400      +89     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@linw1995 linw1995 merged commit 265ae83 into dev Jan 5, 2026
3 checks passed
@linw1995 linw1995 deleted the fix/bash-tool-output-context-overflow branch January 5, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants