feat(cortex-tui): subagent navigation and improved tool summaries#540
Merged
feat(cortex-tui): subagent navigation and improved tool summaries#540
Conversation
- Add SubagentConversation(String) variant to AppView enum for viewing subagent conversations - Add viewing_subagent: Option<String> field to AppState to track current subagent - Add view_subagent_conversation(), return_to_main_conversation(), is_viewing_subagent(), get_viewing_subagent() methods - Add SubagentView context to HintContext with hints for Esc (back to main) and scroll - Add render_back_to_main_hint() function for displaying back navigation hint - Update match expressions to handle new SubagentConversation variant
- Use '↳' prefix consistently across all tool summaries - LS tool shows 'items' instead of generic 'lines' - Glob/Grep show 'Found N files/matches' for clarity - Add specific handling for Create, MultiEdit, TodoWrite, Task tools - Default fallback shows 'items' instead of 'lines' - Add unit tests for new summary formats
- ESC key returns from subagent conversation to main conversation - Display '← Back to main (Esc)' hint when viewing subagent - Add SubagentView context for appropriate key hints
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds subagent conversation navigation and improves tool result summary formatting in the TUI.
Changes
Subagent Navigation
SubagentConversationview for viewing subagent conversations← Back to main (Esc)hint when viewing subagentSubagentViewcontext for appropriate key hintsTool Result Summary Formatting
↳prefix consistently across all tool summariesitemsinstead of genericlinesFound N filesfor clarityFound N matchesfor clarityitemsinstead oflinesTesting
cargo checkpasses