Skip to content

Conversation

@linw1995
Copy link
Owner

@linw1995 linw1995 commented Jan 4, 2026

No description provided.

- Extend ComboAction::Execute to include args parameter
- Update CLI argument parsing to accept trailing varargs for combo run command
- Add shell escaping utilities for safe command line display
- Display executed command line with syntax highlighting in combo UI
- Pass args through to StarterCommand execution
- Update tests to include command_line field in ComboEvent::Executing
- Add `resolve_command_display` to show relative paths for workspace combos
- Enhance command line rendering with shell prompt and proper padding
- Fix layout calculations for command display area with prompt spacing
- Update tests to reflect new height calculations with padding
@linw1995 linw1995 added the enhancement New feature or request label Jan 4, 2026
@codecov-commenter
Copy link

codecov-commenter commented Jan 4, 2026

Codecov Report

❌ Patch coverage is 30.58824% with 118 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (dev@a0ebca0). Learn more about missing BASE report.

Files with missing lines Patch % Lines
crates/coco-tui/src/components/messages/combo.rs 40.94% 75 Missing ⚠️
crates/coco-tui/src/components/chat.rs 0.00% 41 Missing ⚠️
crates/coco-tui/src/main.rs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##             dev      #69   +/-   ##
======================================
  Coverage       ?   59.62%           
======================================
  Files          ?       77           
  Lines          ?    15398           
  Branches       ?        0           
======================================
  Hits           ?     9181           
  Misses         ?     6217           
  Partials       ?        0           

☔ 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.

- Remove shell escaping logic that was overly complex for display purposes
- Simplify format_command_line to just join command and args with spaces
- Keep resolve_command_display for workspace path normalization
- Maintain same functionality while reducing code complexity
- Update height calculation for collapsed combos to include command display area
- Render command line in collapsed state to maintain consistency with expanded view
- Ensure users can see executed command even when combo output is collapsed
@linw1995 linw1995 merged commit 4407f66 into dev Jan 4, 2026
3 checks passed
@linw1995 linw1995 deleted the feat/combo-args-passthrough branch January 4, 2026 16:36
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.

3 participants