Skip to content

web: session tab titles (not UUIDs) - #111

Merged
Code4me2 merged 1 commit into
mainfrom
cursor/session-tab-titles-cb06
Sep 1, 2026
Merged

Code4me2 merged 1 commit into
mainfrom
cursor/session-tab-titles-cb06

Conversation

@Code4me2

@Code4me2 Code4me2 commented Sep 1, 2026 •

Copy link
Copy Markdown
Member

Closes #51.

Why #108 did not close this

#108 added sessionLabel and moved session tabs onto TabBar, but never passed a first prompt. History omits user_prompt by design, so after Send the tab had nothing human to show. On a live drive of main 772fef3, creating kerf_coupon left the session tab (and the Chrome tab) looking like the raw id ecec51cc-c398-4811-b0d9-35ad6d77bf18.

The in-app helper already refused to return a UUID (New session / Ask about {part}). The missing piece was wiring the operator's words, and setting document.title to that conversation instead of leaving the browser tab on a URL/id that reads as a truncated UUID.

What changed (web-only)

  • Remember the first prompt line on Send (sessionPrompts.ts). First write wins; later turns do not rename the conversation.
  • Session tabs label from that line (clipped, never session.id.slice), then Ask about {part}, then New session + relative time.
  • document.title is {label} · Hephaestus for the selected tab. UUID stays on title / data-session-id / tooltip only.
  • aria-label is the human label so the accessible name is not the UUID tooltip.
  • copy.ts still says “no parent”, “explode t”, and dumps session UUIDs #66 in-flight holder: if the resolved title is still the session id, fall back to New session instead of dumping the UUID.
  • TabBar reuse stays (arrows / Home / End). Roots still do not say “no parent”.

Locked (untouched)

Tests

web/: pnpm typecheck, pnpm lint, and pnpm test all pass (42 files, 685 tests). New unit coverage: a session with a first prompt does not render the UUID as the accessible/visible name, and document.title is not the raw id. Existing e2e selectors unchanged.

Open in Web Open in Cursor 

#108 shipped sessionLabel but never wired the first prompt, so a live
orchestrator tab stayed a raw id after Send. Remember the opening line
on submit, label the TabBar from that (or Ask about {part} / New session),
and set document.title to the same conversation — never session.id.slice.

Co-authored-by: Vel <Code4me2@users.noreply.github.com>
@Code4me2
Code4me2 merged commit 6f20d36 into main Sep 1, 2026
18 checks passed
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.

Session tabs are truncated UUIDs

2 participants