feat: add setting to keep AI groups expanded after context navigation#173
Conversation
Navigating from the Visible Context panel temporarily expands the target AI group, but it collapses again after the 2s highlight fades. A new "Keep expanded after context navigation" toggle in Appearance settings persists the expansion via expandAIGroupForTab so the group stays open until manually collapsed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Code Review
This pull request introduces a new configuration setting, keepContextNavExpanded, which allows AI response groups to remain expanded after navigating to them from the Visible Context panel. The implementation includes updates to configuration validation, default settings, the settings UI, and the navigation logic within the chat history component. Review feedback suggests refactoring the repeated state access for this new setting into a memoized variable or custom hook to improve code maintainability and readability.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (9)
📝 WalkthroughWalkthroughA new boolean configuration setting Changes
Suggested labels
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Navigating from the Visible Context panel temporarily expands the target AI group to show the highlighted turn or tool, but it collapses again once the 2-second highlight fades. This makes it hard to inspect the content you just navigated to.
A new "Keep expanded after context navigation" toggle (Settings > General, off by default) calls
expandAIGroupForTabalongside the highlight so the group stays open until manually collapsed.Changes
keepContextNavExpandedtoDisplayConfigwith defaultfalseChatHistory, read the flag during turn and tool navigation handlers and persist expansion when enabledonDisplayTogglehandlerTest plan
Summary by CodeRabbit
Release Notes