feat(sidebar): add window navigation and user tmux config import#45
Open
redlotusaustin wants to merge 4 commits into
Open
feat(sidebar): add window navigation and user tmux config import#45redlotusaustin wants to merge 4 commits into
redlotusaustin wants to merge 4 commits into
Conversation
added 4 commits
April 2, 2026 21:31
Windows were only fetched once on expand, so newly created or deleted tmux windows wouldn't appear until restarting AV. Now polls every 3s for all currently-expanded sessions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two enhancements to the session management sidebar:
Window navigation — Tmux windows appear as expandable sub-items under sessions in the sidebar. Press Right arrow or Enter to expand, Left arrow to collapse. Window indent indicators (
▶/▼) show expand/collapse state. Active windows show a●dot. TheexpandSidebarconfig auto-expands all sessions on load.Import user tmux config — A config toggle (
c→ "Import user tmux config") that sources the user's~/.tmux.confinto Agent View's isolated tmux server. The user's config is sourced last so it takes full precedence over Agent View's default status bar, colors, and settings.Both features are off by default — no behavior change for existing users.
Changes
src/core/types.ts— AddedTmuxWindowinterfacesrc/core/tmux.ts— AddedlistWindows(),selectWindowSync(),setUserTmuxImport()src/core/tmux.conf— Added conditionalsource-file ~/.tmux.confat endsrc/core/config.ts— AddedimportUserTmuxConfigandexpandSidebarconfig fieldssrc/tui/util/groups.ts— ExtendedGroupedItemwithwindowtypesrc/tui/routes/home.tsx— Window expansion, navigation, indicators, collapse behaviorsrc/tui/component/dialog-settings.tsx— Settings entries for both new togglesKeybinds
Notes
listWindows()usesexecFileAsyncto avoid shell escaping issues with tmux format stringsrenderFlatItem()function instead of nested<Show>to avoid OpenTUI invisible text rendering bugsexpandSidebarauto-expand respects manual collapses via acollapsedSessionssignal