Skip to content

Conversation

@petersilberman
Copy link

Summary

This PR adds the ability to open files from the right panel file explorer in tabs alongside AI conversation tabs, allowing users to easily toggle between viewing code and interacting with AI agents.

Changes

File Tabs Feature

  • Extended AITab interface with type discriminator ('conversation' | 'file') and file-specific fields (fileContent, filePath, fileName)
  • Added createFileTab() and findFileTab() helper functions in tabHelpers.ts
  • Updated TabBar to display file icon and filename for file tabs
  • Modified MainPanel to render FilePreview when a file tab is active
  • TabBar now remains visible when any file tabs exist, regardless of input mode (AI/terminal)
  • Double-clicking a file in the file explorer opens it in a new tab (or switches to existing tab if already open)

Keyboard Navigation

  • Added Ctrl+Tab to cycle to the next tab
  • Added Ctrl+Shift+Tab to cycle to the previous tab
  • Works in any mode (AI or terminal) when multiple tabs exist
  • Functions even when modals/overlays are open

Peter Silberman added 2 commits December 23, 2025 17:53
Files clicked in the file explorer now open in tabs instead of taking over
the main panel. Users can toggle between file tabs and AI conversation tabs
using Ctrl+Tab (next) and Ctrl+Shift+Tab (previous).

Changes:
- Extended AITab interface with type discriminator and file-specific fields
- Added createFileTab() and findFileTab() helper functions
- Updated TabBar to show file icon and filename for file tabs
- Modified MainPanel to render FilePreview for file tabs
- TabBar now visible when any file tabs exist (regardless of input mode)
- Added Ctrl+Tab/Ctrl+Shift+Tab keyboard shortcuts for tab switching

Also fixes pre-existing TypeScript error in debug-package by adding
windows-diagnostics.json to PackageContents interface.
@pedramamini
Copy link
Owner

pedramamini commented Dec 23, 2025

Keyboard Navigation
Added Ctrl+Tab to cycle to the next tab
Added Ctrl+Shift+Tab to cycle to the previous tab

Keyboard shortcuts already exist for moving through tabs, they can be customized to whatever you need. I'll pull that part out.

How does this work when you filter by "unread only" (CMD+U) does it hide all the file tabs?

How will this affect the forward/backward navigation for file bread crumbs?

Maybe we make this a setting, for opening files as a tab. I'll tinker some and polish.

What of right click menu for session tabs, are we properly masking those from the file tabs?

@pedramamini pedramamini self-assigned this Dec 23, 2025
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.

2 participants