Skip to content

Conversation

@xlyk
Copy link
Contributor

@xlyk xlyk commented Jan 27, 2026

Summary

  • Previously each tab maintained its own file editor state (open files, recent files, editor settings)
  • Now the file editor uses a single global state shared across all tabs
  • Files remain open when switching between main app tabs

Changes

  • Flatten sessions map to single global state in file-editor-sidebar.ts store
  • Remove sessionId parameters from useFileEditorSidebar hook
  • Remove sessionId prop from FileEditorSidebarPanel component
  • Update consumers (FilePathLink, StaticTerminalOutput, Markdown) to use simplified hook

Test plan

  • Open file editor panel and open a file
  • Switch to a different tab
  • Verify file is still open in editor panel
  • Verify editor settings (vim mode, wrap, etc.) persist across tab switches

Previously each tab maintained its own file editor state (open files, recent
files, editor settings). Now the file editor uses a single global state shared
across all tabs, so files remain open when switching between main app tabs.

- Flatten sessions map to single global state in store
- Remove sessionId parameters from hook and component props
- Simplify store subscription in App.tsx
@xlyk xlyk merged commit 5c7e935 into main Jan 28, 2026
3 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.

2 participants