Skip to content

feat: add SessionName widget#150

Open
wenerme wants to merge 1 commit intosirmalloc:mainfrom
wenerme:feat/session-name
Open

feat: add SessionName widget#150
wenerme wants to merge 1 commit intosirmalloc:mainfrom
wenerme:feat/session-name

Conversation

@wenerme
Copy link

@wenerme wenerme commented Jan 30, 2026

Summary

Add a new SessionName widget that displays the custom session name set via the /rename command in Claude Code.

Implementation Details

  • The widget reads the sessions-index.json file from the same directory as the transcript file
  • It looks up the customTitle field by matching the session_id
  • Supports raw value mode: displays just the session name or Session: <name>
  • Returns null if no custom title is set (widget won't render)

Changes

  • New file: src/widgets/SessionName.ts - Widget implementation
  • Modified: src/widgets/index.ts - Export the new widget
  • Modified: src/utils/widgets.ts - Register session-name in the widget registry

Testing

  • Lint passes (bun run lint)
  • TypeScript compiles without errors

Add a new SessionName widget that displays the custom session name
set via the /rename command in Claude Code.

The widget reads the sessions-index.json file from the transcript
directory and looks up the customTitle field by session_id.

- New file: src/widgets/SessionName.ts
- Register session-name widget in the widget registry
- Export SessionNameWidget from widgets index
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.

1 participant

Comments