Skip to content

Conversation

@linw1995
Copy link
Owner

@linw1995 linw1995 commented Feb 7, 2026

Summary

Automatically focus the next pending user action after tool approval/cancellation, improving workflow efficiency.

Details

  • Extract focus_next_pending_user_action_or_input helper for unified focus handling
  • Auto-focus next pending action after tool operations; fall back to input if none
  • Fix pending action tracking (add/remove tool_use_action)
  • Add focus_next_waiting_permission in messages module to search next permission request
  • Add 4 test cases for focus behavior verification

@codecov-commenter
Copy link

codecov-commenter commented Feb 7, 2026

Codecov Report

❌ Patch coverage is 91.97080% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 47.26%. Comparing base (55394f6) to head (daaa767).
⚠️ Report is 3 commits behind head on dev.

Files with missing lines Patch % Lines
crates/coco-tui/src/components/chat.rs 90.17% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #179      +/-   ##
==========================================
- Coverage   48.12%   47.26%   -0.87%     
==========================================
  Files         105      108       +3     
  Lines       27916    30196    +2280     
==========================================
+ Hits        13435    14271     +836     
- Misses      14481    15925    +1444     

☔ 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 added the enhancement New feature or request label Feb 7, 2026
@linw1995 linw1995 merged commit b0be710 into dev Feb 7, 2026
3 checks passed
@linw1995 linw1995 deleted the fix/pending-actions-auto-focus branch February 7, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants