Merged
Conversation
Adds a native widget to display the Claude Code session name set via the /rename command. The widget reads the transcript file and extracts the customTitle from custom-title entries. - New SessionName widget with rawValue support - 9 unit tests - README documentation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Owner
|
Thanks for this, it'll go out in the next release |
Closed
Contributor
Author
|
I think how claude code handles this may have changed. Ill take a look and file another fix if so. Its also handled natively in CC so less needed in statusline, but a good option nonetheless if it works.
…On Sat, Feb 21, 2026 at 8:35 AM, Matthew Breedlove < ***@***.*** > wrote:
*sirmalloc* left a comment (sirmalloc/ccstatusline#142) (
#142 (comment)
)
Thanks for this, it'll go out in the next release
—
Reply to this email directly, view it on GitHub (
#142 (comment)
) , or unsubscribe (
https://github.com/notifications/unsubscribe-auth/AAAQCVP4UXDRIHM6INTMKED4NCCNJAVCNFSM6AAAAACSXZRY5OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTSMZZGA3DCMJUGI
).
You are receiving this because you authored the thread. Message ID: <sirmalloc/ccstatusline/pull/142/c3939061142
@ github. com>
|
Owner
@arjunlall I tested it briefly with a |
Contributor
Author
|
Oh great, I was using a custom script as a workaround (until this merged), and that recently broke. Glad the code you tested is still good.
They didn't add it to the statusline, but instead the whole prompt input border turns blue when renamed and shows the label at the upper right of the prompt. It's perhaps redundant in the statusline, but doesn't hurt to give users the option to include it.
…On Sat, Feb 21, 2026 at 9:05 AM, Matthew Breedlove < ***@***.*** > wrote:
*sirmalloc* left a comment (sirmalloc/ccstatusline#142) (
#142 (comment)
)
>
>
> I think how claude code handles this may have changed. Ill take a look and
> file another fix if so. Its also handled natively in CC so less needed in
> statusline, but a good option nonetheless if it works.
>
>
@arjunlall ( https://github.com/arjunlall ) I tested it briefly with a /rename
in v2.1.50 of CC and it seemed to pick it up just fine. Did they add it to
the statusline json or something recently?
—
Reply to this email directly, view it on GitHub (
#142 (comment)
) , or unsubscribe (
https://github.com/notifications/unsubscribe-auth/AAAQCVNCQNZMZSQFLW2R6HL4NCF6TAVCNFSM6AAAAACSXZRY5OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTSMZZGA4TSNBSGM
).
You are receiving this because you were mentioned. Message ID: <sirmalloc/ccstatusline/pull/142/c3939099423
@ github. com>
|
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
Adds a native Session Name widget that displays the Claude Code session name set via the
/renamecommand.Currently, displaying session names requires a custom-command workaround with a bash script that parses the session file. This PR adds native support, making it simpler to configure and more performant (direct file read vs spawning a subprocess).
Implementation
transcript_pathfrom the status JSON (already available in context)custom-titleentriesrawValuemode like other widgetsnullwhen no session name is set (widget hidden)Changes
src/widgets/SessionName.ts- New widget implementationsrc/widgets/__tests__/SessionName.test.ts- 9 unit testssrc/widgets/index.ts- Exportsrc/utils/widgets.ts- Registry entryREADME.md- DocumentationTest plan
🤖 Generated with Claude Code