-
Notifications
You must be signed in to change notification settings - Fork 143
Open
Labels
enhancementNew feature or requestNew feature or requestrunmaestro.aiThese issues are part of the Maestro Symphony program.These issues are part of the Maestro Symphony program.
Description
Summary
Convert file preview from a full-screen overlay to a tab-based interface that coexists with AI conversation tabs in the unified tab bar.
Current Behavior
- File preview consumes the entire main panel
- TabBar is hidden when file preview is open
- Only one file can be previewed at a time
- File preview has its own X close button in the control panel
Desired Behavior
- File preview opens as a tab in the tab bar
- Multiple documents can be open as tabs simultaneously
- Users can easily switch between AI tabs and document tabs
- Tab bar always visible, tabs freely interspersed (drag to reorder)
- File tabs show filename (without extension) + extension badge (e.g.,
.md,.ts) - Remove X from file preview control panel (tab handles closing)
Design Decisions
- Separate array:
filePreviewTabsarray separate fromaiTabs, withunifiedTabOrderfor visual ordering - Future-proofed: Type discriminator (
'ai' | 'file') extensible to'terminal'for future CLI terminal tabs - File tab overlay menu actions:
- Copy File Path
- Copy File Name
- Open in Default App
- Reveal in Finder
- Move to First/Last Position
- Close Tab / Close Other Tabs / Close Tabs to Left/Right
- Keyboard shortcuts:
Cmd+1-9works across unified tab orderCmd+Wcloses current tab (AI or file)
- State preservation: Scroll position, search query, edit mode preserved per tab
- Persistence: File tabs persist across session switches and app restarts
- No limit: Users manage their own tab count
Implementation Phases
Auto Run documents created in Auto Run Docs/2026-02-01-File-Preview-Tabs/:
| Phase | Focus |
|---|---|
| 01 | Data model & type definitions |
| 02 | Tab management logic in App.tsx |
| 03 | Unified TabBar component |
| 04 | MainPanel integration |
| 05 | File content management |
| 06 | Keyboard shortcuts & navigation |
| 07 | File click handler migration |
| 08 | Cleanup & polish |
Files Affected
src/renderer/types/index.ts- New typessrc/renderer/App.tsx- Tab management handlerssrc/renderer/components/TabBar.tsx- Unified renderingsrc/renderer/components/MainPanel.tsx- Integrationsrc/renderer/components/FilePreview.tsx- Remove close buttonsrc/renderer/constants/shortcuts.ts- Cmd+W shortcut
FILE-PREVIEW-TABS-01.md
FILE-PREVIEW-TABS-02.md
FILE-PREVIEW-TABS-03.md
FILE-PREVIEW-TABS-04.md
FILE-PREVIEW-TABS-05.md
FILE-PREVIEW-TABS-06.md
FILE-PREVIEW-TABS-07.md
FILE-PREVIEW-TABS-08.md
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestrunmaestro.aiThese issues are part of the Maestro Symphony program.These issues are part of the Maestro Symphony program.