feat: add --group/-g flag to launch TUI scoped to a specific group#475
Open
johnuopini wants to merge 13 commits intoasheshgoplani:mainfrom
Open
feat: add --group/-g flag to launch TUI scoped to a specific group#475johnuopini wants to merge 13 commits intoasheshgoplani:mainfrom
johnuopini wants to merge 13 commits intoasheshgoplani:mainfrom
Conversation
Add --group/-g flag to launch the TUI locked to a specific group, showing only that group's sessions and children. Intended for automation workflows that open dedicated windows per group.
…n, add delete feedback - Add groupScopeDisplayName() helper on Home, used in all 5 scope-name display sites - Replace two wrong strings.LastIndex usages with the helper (group tree lookup is correct) - Pass raw groupScope to SetGroupScope() so normalization happens exactly once - Show "cannot delete the scoped root group" error when pressing d on the scope root
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
Add
--group/-gCLI flag to launch the TUI locked to a specific group, showing only that group's sessions and children. Intended for automation workflows that open dedicated windows per group.--group <name>filters the session list, group tree, and all hotkey operations to the specified group and its childrenn/Ncreate sessions under the scope root,gcreates subgroups under the scope,Monly shows in-scope move targets,dprevents deleting the scope root (with feedback)!,@, etc.)Usage
Test plan
TestExtractGroupFlagcovers all flag forms (short, long, equals, space-separated, combined with-p)TestSetGroupScopeandTestGroupScopeNormalizationverify field setting and normalizationTestRebuildFlatItemsGroupScopeverifies filtering excludes out-of-scope groupsTestRebuildFlatItemsGroupScopeComposesWithStatusFilterverifies scope + status filter compose correctlygo vetclean, all tests pass oncmd/agent-deckandinternal/uipackages