Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
fix(chat): make the temporary home's project picker a quiet caption
vastsa412f695badda
diff --git a/apps/desktop/src/components/HomeProjectSwitcher.tsx b/apps/desktop/src/components/HomeProjectSwitcher.tsxindex 6fe7856a5..cd327a284 100644--- a/apps/desktop/src/components/HomeProjectSwitcher.tsx+++ b/apps/desktop/src/components/HomeProjectSwitcher.tsx@@ -46,7 +46,7 @@ const TEMPORARY_KEY = "temporary";/*** The empty home's project picker. Inside a project it is the underlined* project name in the title; for a temporary conversation (or no session) it- * is a "Choose project" chip under the title. Both list "No project" first so+ * is a quiet "No project" caption under the title. Both list "No project" first so* the next task can leave or join a project from the same place (#2455).*/export function HomeProjectSwitcher({@@ -288,14 +288,14 @@ export function HomeProjectSwitcher({type="button"className="home-project-chip"data-testid="home-project-switcher"+ aria-label={`${t("project.switchProject")}: ${t("project.noProject")}`}aria-haspopup="menu"aria-expanded={open}disabled={busy}onClick={toggle}>- <IconFolder size={14} aria-hidden />- <span>{t("project.chooseProject")}</span>- <IconChevronDown size={13} aria-hidden />+ <span>{t("project.noProject")}</span>+ <IconChevronDown size={12} aria-hidden /></button>) : (<buttondiff --git a/apps/desktop/src/styles/chat-shell.css b/apps/desktop/src/styles/chat-shell.cssindex 488200e72..ec3124155 100644--- a/apps/desktop/src/styles/chat-shell.css+++ b/apps/desktop/src/styles/chat-shell.css@@ -826,25 +826,30 @@border-radius: var(--radius-3xs);}+/* A caption, not a control: it states the scope and only reveals itself on hover. */.empty-hero .home-project-chip {display: inline-flex;align-items: center;- gap: 6px;- padding: 4px 10px;- border: 1px solid var(--ds-border-subtle);- border-radius: var(--radius-full);+ gap: 3px;+ margin-top: -4px;+ padding: 2px 6px;+ border: 0;+ border-radius: var(--radius-3xs);background: transparent;- color: var(--ds-text-secondary);+ color: var(--ds-text-faint);font-size: var(--text-sm);line-height: var(--leading-compact);cursor: pointer;- transition: background-color 150ms ease, color 150ms ease;+ transition: color 150ms ease;+}++.empty-hero .home-project-chip svg {+ opacity: 0.7;}.empty-hero .home-project-chip:hover,.empty-hero .home-project-chip[aria-expanded="true"] {- background: var(--ds-bg-hover);- color: var(--ds-text-primary);+ color: var(--ds-text-secondary);}.empty-hero .home-project-chip:focus-visible {diff --git a/apps/desktop/test/home-project-switcher.test.mjs b/apps/desktop/test/home-project-switcher.test.mjsindex 4b61367da..8a0594132 100644--- a/apps/desktop/test/home-project-switcher.test.mjs+++ b/apps/desktop/test/home-project-switcher.test.mjs@@ -80,9 +80,11 @@ test("home project switcher lists No project first and has a chip for temporaryassert.match(switcher, /if \(project\.temporary\) return selectTemporary\(\);/);assert.match(switcher, /await newSession\(\{ projectPath: null \}\)/);assert.match(switcher, /className="home-project-chip"/);- assert.match(switcher, /t\("project\.chooseProject"\)/);+ // The temporary home states its scope quietly instead of a bordered chip.+ assert.match(switcher, /<span>\{t\("project\.noProject"\)\}<\/span>/);// A temporary or projectless home offers the chip; a project home keeps// the underlined name in its title.assert.match(chatSurface, /\{heroProject \? null : <HomeProjectSwitcher variant="chip" \/>\}/);- assert.match(styles, /\.empty-hero \.home-project-chip \{[\s\S]*?border-radius:\s*var\(--radius-full\);/);+ assert.match(styles, /\.empty-hero \.home-project-chip \{[\s\S]*?color:\s*var\(--ds-text-faint\);/);+ assert.doesNotMatch(styles, /\.empty-hero \.home-project-chip \{[^}]*border:\s*1px/);});diff --git a/docs/spec/04-ux/01-ui-ia.md b/docs/spec/04-ux/01-ui-ia.mdindex 8c0d83a30..68ada0595 100644--- a/docs/spec/04-ux/01-ui-ia.md+++ b/docs/spec/04-ux/01-ui-ia.md@@ -503,8 +503,9 @@ shared capability contract:open project with no session yet names the hero the same way, because thatempty home already belongs to it and a task started there lands in theproject. A temporary session shows dedicated temporary-chat copy, and with- no project open the generic welcome title stands; both show a "Choose- project" chip under the title that opens the same switcher. The switcher+ no project open the generic welcome title stands; both show a quiet,+ borderless "No project" caption under the title that opens the same+ switcher. The switcherlists "No project" first, so the next task can leave or join a project fromthe empty home.- New task resolves the temporary group by its most recent session: if thatdiff --git a/packages/i18n/src/locales/de/index.ts b/packages/i18n/src/locales/de/index.tsindex efb0718f7..f891bebd9 100644--- a/packages/i18n/src/locales/de/index.ts+++ b/packages/i18n/src/locales/de/index.ts@@ -2152,7 +2152,6 @@ sklm: {"switchProject": "Projekt wechseln","noProject": "Kein Projekt","noProjectHint": "Temporärer Chat außerhalb von Projekten",- "chooseProject": "Projekt wählen","clone": "Git-Projekt klonen","cloneUrlPlaceholder": "https://github.com/org/repo.git","cloneUrlHint": "Fügen Sie eine Repository-URL ein und wählen Sie dann einen Ordner.",diff --git a/packages/i18n/src/locales/en/index.ts b/packages/i18n/src/locales/en/index.tsindex 475e03a45..efe039712 100644--- a/packages/i18n/src/locales/en/index.ts+++ b/packages/i18n/src/locales/en/index.ts@@ -2172,7 +2172,6 @@ sklm: {switchProject: "Switch project",noProject: "No project",noProjectHint: "Temporary chat outside any project",- chooseProject: "Choose project",clone: "Clone git project",cloneUrlPlaceholder: "https://github.com/org/repo.git",cloneUrlHint: "Paste a repository URL, then pick a folder.",diff --git a/packages/i18n/src/locales/es/index.ts b/packages/i18n/src/locales/es/index.tsindex 1f7b6b784..b8221cca6 100644--- a/packages/i18n/src/locales/es/index.ts+++ b/packages/i18n/src/locales/es/index.ts@@ -2152,7 +2152,6 @@ sklm: {"switchProject": "Cambiar de proyecto","noProject": "Sin proyecto","noProjectHint": "Chat temporal fuera de cualquier proyecto",- "chooseProject": "Elegir proyecto","clone": "Clonar proyecto git","cloneUrlPlaceholder": "https://github.com/org/repo.git","cloneUrlHint": "Pega la URL del repositorio y elige una carpeta.",diff --git a/packages/i18n/src/locales/fr/index.ts b/packages/i18n/src/locales/fr/index.tsindex 878a4eb61..d9de75c96 100644--- a/packages/i18n/src/locales/fr/index.ts+++ b/packages/i18n/src/locales/fr/index.ts@@ -2152,7 +2152,6 @@ sklm: {"switchProject": "Changer de projet","noProject": "Aucun projet","noProjectHint": "Discussion temporaire hors de tout projet",- "chooseProject": "Choisir un projet","clone": "Cloner un projet git","cloneUrlPlaceholder": "https://github.com/org/repo.git","cloneUrlHint": "Collez l’URL du dépôt, puis choisissez un dossier.",diff --git a/packages/i18n/src/locales/ko/index.ts b/packages/i18n/src/locales/ko/index.tsindex d93edb107..b9589f5a2 100644--- a/packages/i18n/src/locales/ko/index.ts+++ b/packages/i18n/src/locales/ko/index.ts@@ -2168,7 +2168,6 @@ sklm: {switchProject: "프로젝트 전환",noProject: "프로젝트 없음",noProjectHint: "어떤 프로젝트에도 속하지 않는 임시 대화",- chooseProject: "프로젝트 선택",clone: "Git 프로젝트 클론",cloneUrlPlaceholder: "https://github.com/org/repo.git",cloneUrlHint: "저장소 URL을 붙여넣은 다음 폴더를 선택하세요.",diff --git a/packages/i18n/src/locales/pt-BR/index.ts b/packages/i18n/src/locales/pt-BR/index.tsindex 27bed3307..d108dd456 100644--- a/packages/i18n/src/locales/pt-BR/index.ts+++ b/packages/i18n/src/locales/pt-BR/index.ts@@ -2122,7 +2122,6 @@ export const ptBR = {switchProject: "Alternar projeto",noProject: "Sem projeto",noProjectHint: "Conversa temporária fora de qualquer projeto",- chooseProject: "Escolher projeto",clone: "Clonar projeto git",cloneUrlPlaceholder: "https://github.com/org/repo.git",cloneUrlHint: "Cole a URL do repositório e escolha uma pasta.",diff --git a/packages/i18n/src/locales/tr/index.ts b/packages/i18n/src/locales/tr/index.tsindex de25734ef..1cc7d7c21 100644--- a/packages/i18n/src/locales/tr/index.ts+++ b/packages/i18n/src/locales/tr/index.ts@@ -2162,7 +2162,6 @@ sklm: {switchProject: "Projeyi değiştir",noProject: "Proje yok",noProjectHint: "Herhangi bir projeye ait olmayan geçici sohbet",- chooseProject: "Proje seç",clone: "Git projesi kopyala",cloneUrlPlaceholder: "https://github.com/org/repo.git",cloneUrlHint: "Depo URL’sini yapıştırın, ardından bir klasör seçin.",diff --git a/packages/i18n/src/locales/zh-CN/index.ts b/packages/i18n/src/locales/zh-CN/index.tsindex 1ce596a59..d75a0819d 100644--- a/packages/i18n/src/locales/zh-CN/index.ts+++ b/packages/i18n/src/locales/zh-CN/index.ts@@ -2147,7 +2147,6 @@ sklm: {switchProject: "切换项目",noProject: "不使用项目",noProjectHint: "不属于任何项目的临时会话",- chooseProject: "选择项目",clone: "克隆 Git 项目",cloneUrlPlaceholder: "https://github.com/org/repo.git",cloneUrlHint: "粘贴仓库地址,然后选择保存位置。",diff --git a/packages/i18n/src/locales/zh-TW/index.ts b/packages/i18n/src/locales/zh-TW/index.tsindex 7e744103b..7ce89e530 100644--- a/packages/i18n/src/locales/zh-TW/index.ts+++ b/packages/i18n/src/locales/zh-TW/index.ts@@ -2147,7 +2147,6 @@ sklm: {switchProject: "切換專案",noProject: "不使用專案",noProjectHint: "不屬於任何專案的臨時對話",- chooseProject: "選擇專案",clone: "克隆 Git 專案",cloneUrlPlaceholder: "https://github.com/org/repo.git",cloneUrlHint: "貼上儲存庫網址,然後選擇儲存位置。",