Skip to content

Comments

feat(cortex-tui): subagent navigation and improved tool summaries#540

Merged
echobt merged 3 commits intomasterfrom
feat/subagent-nav-and-tool-formatting
Feb 1, 2026
Merged

feat(cortex-tui): subagent navigation and improved tool summaries#540
echobt merged 3 commits intomasterfrom
feat/subagent-nav-and-tool-formatting

Conversation

@echobt
Copy link
Contributor

@echobt echobt commented Feb 1, 2026

Summary

This PR adds subagent conversation navigation and improves tool result summary formatting in the TUI.

Changes

Subagent Navigation

  • Add SubagentConversation view for viewing subagent conversations
  • 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

Tool Result Summary Formatting

  • Use prefix consistently across all tool summaries
  • LS tool shows items instead of generic lines
  • Glob shows Found N files for clarity
  • Grep shows Found N matches for clarity
  • Add specific handling for Create, MultiEdit, TodoWrite, Task, FetchUrl tools
  • Default fallback shows items instead of lines

Testing

  • Unit tests added for new summary formats
  • All existing tests pass
  • cargo check passes

- 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
@echobt echobt merged commit 0f82b85 into master Feb 1, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant