Repository navigation
feat: implement session grouping using prefixes - #194
Open
ariane-emory wants to merge 42 commits into
Open
ariane-emory wants to merge 42 commits into
ariane-emory wants to merge 42 commits into
Conversation
Sessions with titles containing a pipe character (e.g., 'Features | Some description') are now grouped by their prefix. Grouped sessions appear above regular date-grouped sessions, with each group sorted by last update time. - Add shortDateTime() utility for abbreviated date/time display - Parse session titles to extract group prefix and display title - Separate sessions into grouped and ungrouped categories - Grouped sessions show full date/time, ungrouped show just time Resolves #187
Restores the session title formatting that was accidentally removed during cleanup of the feat/session-grouping branch. Grouped session titles (e.g. 'foo|bar') are now displayed with the group capitalized and a colon: 'Foo: bar'. - Creates packages/opencode/src/cli/cmd/tui/util/session-title.ts with formatSessionTitle() and parseSessionTitleParts() helpers - Updates sidebar.tsx to render group in bold with colon - Updates index.tsx to use formatted title in terminal title bar
Sessions with titles like 'integrations|foo' and 'Integrations|bar' were being sorted into separate groups due to case differences in the first character. This change normalizes group names by capitalizing only the first character, so 'integrations' and 'Integrations' both map to the 'Integrations' group. Case differences in other characters are preserved.
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.
What does this PR do?
Sessions with titles containing a pipe character (e.g., 'features | Some description') are now grouped by their prefix. Grouped sessions appear above regular date-grouped sessions, with each group sorted by last update time.
In the
session_listdialuge, grouped session titles are displayed beneath a group header created by splitting the part before the pipe character from the part after, trimming the whitespace from both parts, capitalizing the part before the pipe character, and suffixing it with a colon. For example, a session whose title isfoo | barwill appear under a group headerFoo:with the titlebarin thesession_listdialogue.In the sidebar (and any header, if visible), grouped session titles are rendered by splitting the part before the pipe character from the part after, trimming the whitespace from both parts, capitalizing the part before the pipe, and suffixing it with a colon. For example, a session whose title is
foo | barwill in the sidebar as if its title wereFoo: bar.In the
session_list, the name of the group in the individual group headers is capitalized and suffixed with a colon (foo|baris displayed under a "Foo:" group header) and the portion of the session title before the colon is never displayed (the title offoo|baris displayed in thesession_listasbar).Resolves anomalyco#9688
Resolves #187