Skip to content

feat(ui): show project title in pane headers - #238

Merged
j35dev merged 1 commit into
mainfrom
feat/ui-pane-project-title
Sep 28, 2026
Merged

j35dev merged 1 commit into
mainfrom
feat/ui-pane-project-title

Conversation

@j35dev

@j35dev j35dev commented Sep 20, 2026 •

Copy link
Copy Markdown
Owner

Split pane headers currently show only the session title. When two panes from different projects are open, that is not enough to tell them apart.

What changed

  • Pane chrome now labels a session as Project title - Session title (e.g. Ari - New session).
  • Unfiled / ad-hoc sessions keep the session title alone.
  • Truncated headers expose the full label on hover.
  • Close buttons and pane menus use the same combined name.

Why

A split layout with more than one project needs the project name in the pane head so the session is identifiable at a glance.

How verified

VITEST_MAX_WORKERS=2 pnpm verify green (typecheck + lint + tests).
Desktop: 155 passed, 3 skipped (1411 tests).

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

Comment on lines +989 to +992
const projectName =
session.projectId === UNFILED_GROUP_ID
? null
: (projects.find((p) => p.id === session.projectId)?.name ?? null)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Closed projects remain in pane titles

When a project is closed, titleOf still prefixes its sessions with that project's name. Closed projects remain in projects, although their sessions are Unfiled.

Learn more

A closed project stays in the project registry with open: false. Its sessions are grouped under Unfiled by sidebarGroups, but this lookup matches every registry entry. The pane therefore retains a project prefix after the user closes that project.

Example: Closing the “Docs” project moves “Draft notes” beneath Unfiled. Its pane still reads “Docs - Draft notes” instead of “Draft notes”.

Recommended fix: Restrict the name lookup to open projects, matching the sidebar's filing rule.

Suggested change
const projectName =
session.projectId === UNFILED_GROUP_ID
? null
: (projects.find((p) => p.id === session.projectId)?.name ?? null)
const projectName =
session.projectId === UNFILED_GROUP_ID
? null
: (projects.find((p) => p.open && p.id === session.projectId)?.name ??
null)

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

@j35dev
j35dev merged commit e63ce1a into main Sep 28, 2026
5 of 7 checks passed
@j35dev
j35dev deleted the feat/ui-pane-project-title branch September 28, 2026 07:11
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.

2 participants