Skip to content

feat: show session title in header, allow renaming it there - #70

Open
Elompenta wants to merge 1 commit into
deflating:mainfrom
Elompenta:header-session-title
Open

feat: show session title in header, allow renaming it there#70
Elompenta wants to merge 1 commit into
deflating:mainfrom
Elompenta:header-session-title

Conversation

@Elompenta

Copy link
Copy Markdown
Contributor

Summary

  • Adds the current session's title to the top bar, editable inline by clicking it.
  • Reuses the existing set_session_name RPC (same one the sidebar's context-menu rename already calls).
  • Moves the model dropdown and thinking-level tag to the right side of the header to make room for the title on the left.

Note on scope

pi.setSessionName() always renames whichever session pi currently has live/open - it has no concept of "rename this other historical session". Until #69 is merged, selecting an older session in the sidebar only loads it read-only without actually switching pi to it, so renaming from the header only works for the current primary/live session - the header disables the rename affordance (shows as read-only, with a tooltip) while viewing any other, historical session, rather than silently renaming the wrong one. Once #69 lands and selecting a sidebar session actually resumes it in pi, renaming from the header will work for any session you've switched to, not just the primary one.

Test plan

  • Header shows the active session's name on load and updates live via the session_name broadcast (auto-title).
  • Clicking the title renames the live session; sidebar entry updates to match.
  • Renamed title persists across reload and across switching to a different session.
  • Selecting a historical session shows its own name/preview in the header, with the rename affordance disabled.
  • New session resets the header title.
  • Verified on a narrow viewport that the title truncates instead of pushing the header layout.

Adds a title element to the top bar showing the current session's
name, editable inline on click. Renaming only persists for the
currently live session, since pi.setSessionName() always targets
whatever session pi has open, not an arbitrary historical one being
previewed - the same constraint the sidebar's context-menu rename
already has.

Also moves the model dropdown and thinking-level tag to the right
side of the header to make room for the title on the left.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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