The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): say "Auto-discovered" in the project row's accessible name
teknium1fc3628883226
diff --git a/apps/desktop/src/app/chat/sidebar/projects/overview-row.test.tsx b/apps/desktop/src/app/chat/sidebar/projects/overview-row.test.tsxindex 0465336629d..baf7ef1fabe 100644--- a/apps/desktop/src/app/chat/sidebar/projects/overview-row.test.tsx+++ b/apps/desktop/src/app/chat/sidebar/projects/overview-row.test.tsx@@ -94,25 +94,17 @@ describe('ProjectOverviewRow', () => {expect(container.querySelector('[data-sessions-project="p1"]')).toBeTruthy()})- it('renders the folder-library lead glyph for explicit projects', () => {- const explicit = { id: 'p1', label: 'Explicit', isAuto: false } as unknown as SidebarProjectTree-- const { container } = render(<ProjectOverviewRow project={explicit} />)-- expect(container.querySelector('.codicon-folder-library')).toBeTruthy()- expect(container.querySelector('.codicon-repo')).toBeNull()- })-- it('defaults to the folder-library lead glyph when isAuto is absent (explicit nodes omit it)', () => {+ it('explicit projects keep the folder-library glyph and a plain accessible name', () => {const explicit = { id: 'p1', label: 'Explicit' } as unknown as SidebarProjectTreeconst { container } = render(<ProjectOverviewRow project={explicit} />)expect(container.querySelector('.codicon-folder-library')).toBeTruthy()expect(container.querySelector('.codicon-repo')).toBeNull()+ expect(screen.getByRole('button', { name: 'Enter Explicit' })).toBeTruthy()})- it('renders the repo lead glyph and an "Auto-discovered" tooltip for auto projects', () => {+ it('auto-discovered repos get the repo glyph, an "Auto-discovered" tooltip, and an accessible name that says so', () => {const auto = { id: '/Users/dev/my-repo', label: 'my-repo', isAuto: true } as unknown as SidebarProjectTreeconst { container } = render(<ProjectOverviewRow project={auto} />)@@ -120,7 +112,7 @@ describe('ProjectOverviewRow', () => {expect(container.querySelector('.codicon-repo')).toBeTruthy()expect(container.querySelector('.codicon-folder-library')).toBeNull()- const link = screen.getByRole('button', { name: 'Enter my-repo' })+ const link = screen.getByRole('button', { name: 'Enter my-repo (Auto-discovered)' })expect(tipTrigger(link)).toBeTruthy()})})diff --git a/apps/desktop/src/app/chat/sidebar/projects/overview-row.tsx b/apps/desktop/src/app/chat/sidebar/projects/overview-row.tsxindex acc40f8903b..88577de1e56 100644--- a/apps/desktop/src/app/chat/sidebar/projects/overview-row.tsx+++ b/apps/desktop/src/app/chat/sidebar/projects/overview-row.tsx@@ -124,7 +124,13 @@ export function ProjectOverviewRow({const labelLink = (<SidebarRowLink- aria-label={s.projects.enter(project.label)}+ // The glyph is aria-hidden and the tooltip only speaks on hover, so the+ // link's own name carries the auto cue — screen readers get it too.+ aria-label={+ project.isAuto+ ? `${s.projects.enter(project.label)} (${s.projects.autoDiscovered})`+ : s.projects.enter(project.label)+ }labelClassName={cn('hover:text-foreground hover:underline', isActive && 'text-foreground')}onClick={() => onEnter?.(project.id)}>