From 847de275f84bd840917ed6c525b17d7b6bc0f077 Mon Sep 17 00:00:00 2001 From: James Long Date: Thu, 19 Nov 2026 13:38:00 -0500 Subject: [PATCH 1/6] fix(app): drop the background work subtitle from subagent rows (#64951) --- packages/app/src/runtime/i18n/am.ts | 1 - packages/app/src/runtime/i18n/ar.ts | 1 - packages/app/src/runtime/i18n/az.ts | 1 - packages/app/src/runtime/i18n/bg.ts | 1 - packages/app/src/runtime/i18n/bn.ts | 1 - packages/app/src/runtime/i18n/br.ts | 1 - packages/app/src/runtime/i18n/bs.ts | 1 - packages/app/src/runtime/i18n/ca.ts | 1 - packages/app/src/runtime/i18n/cs.ts | 1 - packages/app/src/runtime/i18n/da.ts | 1 - packages/app/src/runtime/i18n/de.ts | 1 - packages/app/src/runtime/i18n/dv.ts | 1 - packages/app/src/runtime/i18n/dz.ts | 1 - packages/app/src/runtime/i18n/el.ts | 1 - packages/app/src/runtime/i18n/en.ts | 1 - packages/app/src/runtime/i18n/es.ts | 1 - packages/app/src/runtime/i18n/et.ts | 1 - packages/app/src/runtime/i18n/fa.ts | 1 - packages/app/src/runtime/i18n/fi.ts | 1 - packages/app/src/runtime/i18n/fo.ts | 1 - packages/app/src/runtime/i18n/fr.ts | 1 - packages/app/src/runtime/i18n/he.ts | 1 - packages/app/src/runtime/i18n/hi.ts | 1 - packages/app/src/runtime/i18n/hr.ts | 1 - packages/app/src/runtime/i18n/hu.ts | 1 - packages/app/src/runtime/i18n/hy.ts | 1 - packages/app/src/runtime/i18n/id.ts | 1 - packages/app/src/runtime/i18n/is.ts | 1 - packages/app/src/runtime/i18n/it.ts | 1 - packages/app/src/runtime/i18n/ja.ts | 1 - packages/app/src/runtime/i18n/ka.ts | 1 - packages/app/src/runtime/i18n/km.ts | 1 - packages/app/src/runtime/i18n/ko.ts | 1 - packages/app/src/runtime/i18n/language.tsx | 9 --------- packages/app/src/runtime/i18n/lo.ts | 1 - packages/app/src/runtime/i18n/lt.ts | 1 - packages/app/src/runtime/i18n/lv.ts | 1 - packages/app/src/runtime/i18n/mk.ts | 1 - packages/app/src/runtime/i18n/mn.ts | 1 - packages/app/src/runtime/i18n/ms.ts | 1 - packages/app/src/runtime/i18n/my.ts | 1 - packages/app/src/runtime/i18n/ne.ts | 1 - packages/app/src/runtime/i18n/nl.ts | 1 - packages/app/src/runtime/i18n/no.ts | 1 - packages/app/src/runtime/i18n/pa.ts | 1 - packages/app/src/runtime/i18n/pl.ts | 1 - packages/app/src/runtime/i18n/ro.ts | 1 - packages/app/src/runtime/i18n/ru.ts | 1 - packages/app/src/runtime/i18n/si.ts | 1 - packages/app/src/runtime/i18n/sk.ts | 1 - packages/app/src/runtime/i18n/sl.ts | 1 - packages/app/src/runtime/i18n/sq.ts | 1 - packages/app/src/runtime/i18n/sr.ts | 1 - packages/app/src/runtime/i18n/sv.ts | 1 - packages/app/src/runtime/i18n/tg.ts | 1 - packages/app/src/runtime/i18n/th.ts | 1 - packages/app/src/runtime/i18n/tk.ts | 1 - packages/app/src/runtime/i18n/tr.ts | 1 - packages/app/src/runtime/i18n/uk.ts | 1 - packages/app/src/runtime/i18n/ur.ts | 1 - packages/app/src/runtime/i18n/uz.ts | 1 - packages/app/src/runtime/i18n/vi.ts | 1 - packages/app/src/runtime/i18n/zh.ts | 1 - packages/app/src/runtime/i18n/zht.ts | 1 - packages/app/src/session/composer/activity-chips.tsx | 9 --------- packages/app/src/session/requests/background.ts | 7 ------- 66 files changed, 88 deletions(-) diff --git a/packages/app/src/runtime/i18n/am.ts b/packages/app/src/runtime/i18n/am.ts index 4254e900a64..c512ae8b9dd 100644 --- a/packages/app/src/runtime/i18n/am.ts +++ b/packages/app/src/runtime/i18n/am.ts @@ -1094,7 +1094,6 @@ export const dict = { "session.activity.shells.other": "{{count}} ሼሎች", "session.activity.scripts.one": "{{count}} ስክሪፕት", "session.activity.scripts.other": "{{count}} ስክሪፕቶች", - "session.activity.background": "የዳራ ሥራ", "session.activity.shell.back": "ወደ ዳራ ሥራ ተመለስ", "session.activity.shell.stop": "አቁም", "session.activity.shell.stopping": "በማቆም ላይ…", diff --git a/packages/app/src/runtime/i18n/ar.ts b/packages/app/src/runtime/i18n/ar.ts index cd913697d98..ef4300255be 100644 --- a/packages/app/src/runtime/i18n/ar.ts +++ b/packages/app/src/runtime/i18n/ar.ts @@ -1206,7 +1206,6 @@ export const dict = { "session.activity.scripts.few": "{{count}} نصوص برمجية", "session.activity.scripts.many": "{{count}} نصًا برمجيًا", "session.activity.scripts.other": "{{count}} نص برمجي", - "session.activity.background": "العمل في الخلفية", "session.activity.shell.back": "العودة إلى العمل في الخلفية", "session.activity.shell.stop": "إيقاف", "session.activity.shell.stopping": "جارٍ الإيقاف…", diff --git a/packages/app/src/runtime/i18n/az.ts b/packages/app/src/runtime/i18n/az.ts index 9c384267910..49a68cc8cf8 100644 --- a/packages/app/src/runtime/i18n/az.ts +++ b/packages/app/src/runtime/i18n/az.ts @@ -1153,7 +1153,6 @@ export const dict = { "session.activity.shells.other": "{{count}} shell", "session.activity.scripts.one": "{{count}} skript", "session.activity.scripts.other": "{{count}} skript", - "session.activity.background": "Arxa plan işi", "session.activity.shell.back": "Fon işlərinə qayıt", "session.activity.shell.stop": "Dayandır", "session.activity.shell.stopping": "Dayandırılır…", diff --git a/packages/app/src/runtime/i18n/bg.ts b/packages/app/src/runtime/i18n/bg.ts index fede11e6f58..3434e2c69c1 100644 --- a/packages/app/src/runtime/i18n/bg.ts +++ b/packages/app/src/runtime/i18n/bg.ts @@ -1160,7 +1160,6 @@ export const dict = { "session.activity.shells.other": "{{count}} shell процеса", "session.activity.scripts.one": "{{count}} скрипт", "session.activity.scripts.other": "{{count}} скрипта", - "session.activity.background": "Работа във фонов режим", "session.activity.shell.back": "Назад към фоновата работа", "session.activity.shell.stop": "Спиране", "session.activity.shell.stopping": "Спиране…", diff --git a/packages/app/src/runtime/i18n/bn.ts b/packages/app/src/runtime/i18n/bn.ts index a64d94dd9e5..c936b77a746 100644 --- a/packages/app/src/runtime/i18n/bn.ts +++ b/packages/app/src/runtime/i18n/bn.ts @@ -1150,7 +1150,6 @@ export const dict = { "session.activity.shells.other": "{{count}}টি শেল", "session.activity.scripts.one": "{{count}}টি স্ক্রিপ্ট", "session.activity.scripts.other": "{{count}}টি স্ক্রিপ্ট", - "session.activity.background": "পটভূমির কাজ", "session.activity.shell.back": "ব্যাকগ্রাউন্ড কাজে ফিরে যান", "session.activity.shell.stop": "থামান", "session.activity.shell.stopping": "থামানো হচ্ছে…", diff --git a/packages/app/src/runtime/i18n/br.ts b/packages/app/src/runtime/i18n/br.ts index b4cc99a771c..eca5c5e4f4c 100644 --- a/packages/app/src/runtime/i18n/br.ts +++ b/packages/app/src/runtime/i18n/br.ts @@ -1189,7 +1189,6 @@ export const dict = { "session.activity.scripts.one": "{{count}} script", "session.activity.scripts.many": "{{count}} scripts", "session.activity.scripts.other": "{{count}} scripts", - "session.activity.background": "Trabalho em segundo plano", "session.activity.shell.back": "Voltar ao trabalho em segundo plano", "session.activity.shell.stop": "Parar", "session.activity.shell.stopping": "Parando…", diff --git a/packages/app/src/runtime/i18n/bs.ts b/packages/app/src/runtime/i18n/bs.ts index c01fd086201..d22641c5032 100644 --- a/packages/app/src/runtime/i18n/bs.ts +++ b/packages/app/src/runtime/i18n/bs.ts @@ -1227,7 +1227,6 @@ export const dict = { "session.activity.scripts.one": "{{count}} skripta", "session.activity.scripts.few": "{{count}} skripte", "session.activity.scripts.other": "{{count}} skripti", - "session.activity.background": "Rad u pozadini", "session.activity.shell.back": "Nazad na rad u pozadini", "session.activity.shell.stop": "Zaustavi", "session.activity.shell.stopping": "Zaustavljanje…", diff --git a/packages/app/src/runtime/i18n/ca.ts b/packages/app/src/runtime/i18n/ca.ts index 376cb0b0d9d..1d016739f1f 100644 --- a/packages/app/src/runtime/i18n/ca.ts +++ b/packages/app/src/runtime/i18n/ca.ts @@ -1179,7 +1179,6 @@ export const dict = { "session.activity.subagents.other": "{{count}} subagents", "session.activity.shells.one": "{{count}} shell", "session.activity.shells.other": "{{count}} shells", - "session.activity.background": "Feina en segon pla", "session.activity.shell.back": "Torna a la feina en segon pla", "session.activity.shell.stop": "Atura", "session.activity.shell.stopping": "S'està aturant…", diff --git a/packages/app/src/runtime/i18n/cs.ts b/packages/app/src/runtime/i18n/cs.ts index 8cc68a5b39d..1093bfc387d 100644 --- a/packages/app/src/runtime/i18n/cs.ts +++ b/packages/app/src/runtime/i18n/cs.ts @@ -1180,7 +1180,6 @@ export const dict = { "session.activity.scripts.few": "{{count}} skripty", "session.activity.scripts.many": "{{count}} skriptu", "session.activity.scripts.other": "{{count}} skriptů", - "session.activity.background": "Práce na pozadí", "session.activity.shell.back": "Zpět na práci na pozadí", "session.activity.shell.stop": "Zastavit", "session.activity.shell.stopping": "Zastavování…", diff --git a/packages/app/src/runtime/i18n/da.ts b/packages/app/src/runtime/i18n/da.ts index a6c6e61662a..467dbadbe72 100644 --- a/packages/app/src/runtime/i18n/da.ts +++ b/packages/app/src/runtime/i18n/da.ts @@ -1202,7 +1202,6 @@ export const dict = { "session.activity.shells.other": "{{count}} shells", "session.activity.scripts.one": "{{count}} script", "session.activity.scripts.other": "{{count}} scripts", - "session.activity.background": "Baggrundsarbejde", "session.activity.shell.back": "Tilbage til baggrundsarbejde", "session.activity.shell.stop": "Stop", "session.activity.shell.stopping": "Stopper…", diff --git a/packages/app/src/runtime/i18n/de.ts b/packages/app/src/runtime/i18n/de.ts index 85308cf0471..2739bb4dddc 100644 --- a/packages/app/src/runtime/i18n/de.ts +++ b/packages/app/src/runtime/i18n/de.ts @@ -1184,7 +1184,6 @@ export const dict = { "session.activity.shells.other": "{{count}} Shells", "session.activity.scripts.one": "{{count}} Skript", "session.activity.scripts.other": "{{count}} Skripte", - "session.activity.background": "Hintergrundarbeit", "session.activity.shell.back": "Zurück zur Hintergrundarbeit", "session.activity.shell.stop": "Stoppen", "session.activity.shell.stopping": "Wird gestoppt…", diff --git a/packages/app/src/runtime/i18n/dv.ts b/packages/app/src/runtime/i18n/dv.ts index 4838e927717..b6171332e0a 100644 --- a/packages/app/src/runtime/i18n/dv.ts +++ b/packages/app/src/runtime/i18n/dv.ts @@ -1188,7 +1188,6 @@ export const dict = { "session.activity.shells.other": "⁨{{count}}⁩ ޝެލްތައް", "session.activity.scripts.one": "⁨{{count}}⁩ ސްކްރިޕްޓް", "session.activity.scripts.other": "⁨{{count}}⁩ ސްކްރިޕްޓްތައް", - "session.activity.background": "ފަސްބިމުގެ މަސައްކަތް", "session.activity.shell.back": "ބެކްގްރައުންޑް މަސައްކަތަށް އެނބުރި", "session.activity.shell.stop": "ހުއްޓާލާ", "session.activity.shell.stopping": "ހުއްޓާލަމުން…", diff --git a/packages/app/src/runtime/i18n/dz.ts b/packages/app/src/runtime/i18n/dz.ts index 852f2a969e3..4958f9369e6 100644 --- a/packages/app/src/runtime/i18n/dz.ts +++ b/packages/app/src/runtime/i18n/dz.ts @@ -1173,7 +1173,6 @@ export const dict = { "session.activity.shells.other": "Shell {{count}}", "session.activity.scripts.one": "Script {{count}}", "session.activity.scripts.other": "Script {{count}}", - "session.activity.background": "རྒྱབ་ལྗོངས་ལཱ་", "session.activity.shell.back": "རྒྱབ་གཞིའི་ལཱ་ལུ་ལོག", "session.activity.shell.stop": "བཀག", "session.activity.shell.stopping": "བཀག་དོ…", diff --git a/packages/app/src/runtime/i18n/el.ts b/packages/app/src/runtime/i18n/el.ts index 54777e93f44..fd3b4c1d364 100644 --- a/packages/app/src/runtime/i18n/el.ts +++ b/packages/app/src/runtime/i18n/el.ts @@ -1177,7 +1177,6 @@ export const dict = { "session.activity.shells.other": "{{count}} κελύφη", "session.activity.scripts.one": "{{count}} σενάριο", "session.activity.scripts.other": "{{count}} σενάρια", - "session.activity.background": "Εργασία στο παρασκήνιο", "session.activity.shell.back": "Πίσω στην εργασία παρασκηνίου", "session.activity.shell.stop": "Διακοπή", "session.activity.shell.stopping": "Διακοπή…", diff --git a/packages/app/src/runtime/i18n/en.ts b/packages/app/src/runtime/i18n/en.ts index 9153cd04b02..a9b527976a7 100644 --- a/packages/app/src/runtime/i18n/en.ts +++ b/packages/app/src/runtime/i18n/en.ts @@ -702,7 +702,6 @@ export const dict = { "session.activity.shells.other": "{{count}} shells", "session.activity.scripts.one": "{{count}} script", "session.activity.scripts.other": "{{count}} scripts", - "session.activity.background": "Background work", "session.activity.shell.back": "Back to background work", "session.activity.shell.stop": "Stop", "session.activity.shell.stopping": "Stopping…", diff --git a/packages/app/src/runtime/i18n/es.ts b/packages/app/src/runtime/i18n/es.ts index e14e4c24885..160cb7d821e 100644 --- a/packages/app/src/runtime/i18n/es.ts +++ b/packages/app/src/runtime/i18n/es.ts @@ -1238,7 +1238,6 @@ export const dict = { "session.activity.subagents.other": "{{count}} subagentes", "session.activity.shells.one": "{{count}} shell", "session.activity.shells.other": "{{count}} shells", - "session.activity.background": "Trabajo en segundo plano", "session.activity.shell.back": "Volver al trabajo en segundo plano", "session.activity.shell.stop": "Detener", "session.activity.shell.stopping": "Deteniendo…", diff --git a/packages/app/src/runtime/i18n/et.ts b/packages/app/src/runtime/i18n/et.ts index 759bc1fc995..024622edd71 100644 --- a/packages/app/src/runtime/i18n/et.ts +++ b/packages/app/src/runtime/i18n/et.ts @@ -1135,7 +1135,6 @@ export const dict = { "session.activity.shells.other": "{{count}} shelli", "session.activity.scripts.one": "{{count}} skript", "session.activity.scripts.other": "{{count}} skripti", - "session.activity.background": "Taustatöö", "session.activity.shell.back": "Tagasi taustatöö juurde", "session.activity.shell.stop": "Peata", "session.activity.shell.stopping": "Peatamine…", diff --git a/packages/app/src/runtime/i18n/fa.ts b/packages/app/src/runtime/i18n/fa.ts index 7cc40092398..3b39ea91b38 100644 --- a/packages/app/src/runtime/i18n/fa.ts +++ b/packages/app/src/runtime/i18n/fa.ts @@ -1142,7 +1142,6 @@ export const dict = { "session.activity.shells.other": "⁨{{count}}⁩ پوسته", "session.activity.scripts.one": "⁨{{count}}⁩ اسکریپت", "session.activity.scripts.other": "⁨{{count}}⁩ اسکریپت", - "session.activity.background": "کار پس‌زمینه", "session.activity.shell.back": "بازگشت به کارهای پس‌زمینه", "session.activity.shell.stop": "توقف", "session.activity.shell.stopping": "در حال توقف…", diff --git a/packages/app/src/runtime/i18n/fi.ts b/packages/app/src/runtime/i18n/fi.ts index 5025fb406cf..87d72d3ebbc 100644 --- a/packages/app/src/runtime/i18n/fi.ts +++ b/packages/app/src/runtime/i18n/fi.ts @@ -1147,7 +1147,6 @@ export const dict = { "session.activity.shells.other": "{{count}} shelliä", "session.activity.scripts.one": "{{count}} skripti", "session.activity.scripts.other": "{{count}} skriptiä", - "session.activity.background": "Taustatyö", "session.activity.shell.back": "Takaisin taustatyöhön", "session.activity.shell.stop": "Pysäytä", "session.activity.shell.stopping": "Pysäytetään…", diff --git a/packages/app/src/runtime/i18n/fo.ts b/packages/app/src/runtime/i18n/fo.ts index 296dd94f8ee..46bd7ad9001 100644 --- a/packages/app/src/runtime/i18n/fo.ts +++ b/packages/app/src/runtime/i18n/fo.ts @@ -1142,7 +1142,6 @@ export const dict = { "session.activity.shells.other": "{{count}} shells", "session.activity.scripts.one": "{{count}} skript", "session.activity.scripts.other": "{{count}} skript", - "session.activity.background": "Bakgrundsarbeiði", "session.activity.shell.back": "Aftur til bakgrundsarbeiði", "session.activity.shell.stop": "Steðga", "session.activity.shell.stopping": "Steðgar…", diff --git a/packages/app/src/runtime/i18n/fr.ts b/packages/app/src/runtime/i18n/fr.ts index daab67d27c1..bed317322a0 100644 --- a/packages/app/src/runtime/i18n/fr.ts +++ b/packages/app/src/runtime/i18n/fr.ts @@ -1202,7 +1202,6 @@ export const dict = { "session.activity.scripts.one": "{{count}} script", "session.activity.scripts.many": "{{count}} scripts", "session.activity.scripts.other": "{{count}} scripts", - "session.activity.background": "Travail en arrière-plan", "session.activity.shell.back": "Retour aux tâches en arrière-plan", "session.activity.shell.stop": "Arrêter", "session.activity.shell.stopping": "Arrêt…", diff --git a/packages/app/src/runtime/i18n/he.ts b/packages/app/src/runtime/i18n/he.ts index b8d754b62b4..bf83abda32f 100644 --- a/packages/app/src/runtime/i18n/he.ts +++ b/packages/app/src/runtime/i18n/he.ts @@ -1129,7 +1129,6 @@ export const dict = { "session.activity.scripts.one": "{{count}} סקריפט", "session.activity.scripts.two": "{{count}} סקריפטים", "session.activity.scripts.other": "{{count}} סקריפטים", - "session.activity.background": "עבודה ברקע", "session.activity.shell.back": "חזרה לעבודה ברקע", "session.activity.shell.stop": "עצור", "session.activity.shell.stopping": "עוצר…", diff --git a/packages/app/src/runtime/i18n/hi.ts b/packages/app/src/runtime/i18n/hi.ts index 1d2d0178843..5503af808b7 100644 --- a/packages/app/src/runtime/i18n/hi.ts +++ b/packages/app/src/runtime/i18n/hi.ts @@ -1151,7 +1151,6 @@ export const dict = { "session.activity.shells.other": "{{count}} शेल", "session.activity.scripts.one": "{{count}} स्क्रिप्ट", "session.activity.scripts.other": "{{count}} स्क्रिप्ट", - "session.activity.background": "पृष्ठभूमि कार्य", "session.activity.shell.back": "बैकग्राउंड कार्य पर वापस जाएँ", "session.activity.shell.stop": "रोकें", "session.activity.shell.stopping": "रोका जा रहा है…", diff --git a/packages/app/src/runtime/i18n/hr.ts b/packages/app/src/runtime/i18n/hr.ts index 640e39c4a0f..1973140f967 100644 --- a/packages/app/src/runtime/i18n/hr.ts +++ b/packages/app/src/runtime/i18n/hr.ts @@ -1171,7 +1171,6 @@ export const dict = { "session.activity.scripts.one": "{{count}} skripta", "session.activity.scripts.few": "{{count}} skripte", "session.activity.scripts.other": "{{count}} skripti", - "session.activity.background": "Rad u pozadini", "session.activity.shell.back": "Natrag na pozadinski rad", "session.activity.shell.stop": "Zaustavi", "session.activity.shell.stopping": "Zaustavljanje…", diff --git a/packages/app/src/runtime/i18n/hu.ts b/packages/app/src/runtime/i18n/hu.ts index 7c8092b707d..8eed98502bb 100644 --- a/packages/app/src/runtime/i18n/hu.ts +++ b/packages/app/src/runtime/i18n/hu.ts @@ -1161,7 +1161,6 @@ export const dict = { "session.activity.shells.other": "{{count}} shell", "session.activity.scripts.one": "{{count}} szkript", "session.activity.scripts.other": "{{count}} szkript", - "session.activity.background": "Háttérmunka", "session.activity.shell.back": "Vissza a háttérfolyamatokhoz", "session.activity.shell.stop": "Leállítás", "session.activity.shell.stopping": "Leállítás…", diff --git a/packages/app/src/runtime/i18n/hy.ts b/packages/app/src/runtime/i18n/hy.ts index 8d0f9a1f5e0..4e34e134ee6 100644 --- a/packages/app/src/runtime/i18n/hy.ts +++ b/packages/app/src/runtime/i18n/hy.ts @@ -1146,7 +1146,6 @@ export const dict = { "session.activity.shells.other": "{{count}} shell", "session.activity.scripts.one": "{{count}} սկրիպտ", "session.activity.scripts.other": "{{count}} սկրիպտ", - "session.activity.background": "Ֆոնային աշխատանք", "session.activity.shell.back": "Վերադառնալ ֆոնային աշխատանքին", "session.activity.shell.stop": "Կանգնեցնել", "session.activity.shell.stopping": "Կանգնեցվում է…", diff --git a/packages/app/src/runtime/i18n/id.ts b/packages/app/src/runtime/i18n/id.ts index 0639eb20fd8..595a191d1ea 100644 --- a/packages/app/src/runtime/i18n/id.ts +++ b/packages/app/src/runtime/i18n/id.ts @@ -1213,7 +1213,6 @@ export const dict = { "session.activity.shells.other": "{{count}} shell", "session.activity.scripts.one": "{{count}} skrip", "session.activity.scripts.other": "{{count}} skrip", - "session.activity.background": "Pekerjaan latar belakang", "session.activity.shell.back": "Kembali ke pekerjaan latar belakang", "session.activity.shell.stop": "Hentikan", "session.activity.shell.stopping": "Menghentikan…", diff --git a/packages/app/src/runtime/i18n/is.ts b/packages/app/src/runtime/i18n/is.ts index 1a07521c5e3..a128fc4b47b 100644 --- a/packages/app/src/runtime/i18n/is.ts +++ b/packages/app/src/runtime/i18n/is.ts @@ -1142,7 +1142,6 @@ export const dict = { "session.activity.shells.other": "{{count}} skeljar", "session.activity.scripts.one": "{{count}} skrifta", "session.activity.scripts.other": "{{count}} skriftur", - "session.activity.background": "Bakgrunnsvinna", "session.activity.shell.back": "Til baka í bakgrunnsvinnu", "session.activity.shell.stop": "Stöðva", "session.activity.shell.stopping": "Stöðvar…", diff --git a/packages/app/src/runtime/i18n/it.ts b/packages/app/src/runtime/i18n/it.ts index 4e91f4814e8..a42b027e2a6 100644 --- a/packages/app/src/runtime/i18n/it.ts +++ b/packages/app/src/runtime/i18n/it.ts @@ -1173,7 +1173,6 @@ export const dict = { "session.activity.subagents.other": "{{count}} subagenti", "session.activity.shells.one": "{{count}} shell", "session.activity.shells.other": "{{count}} shell", - "session.activity.background": "Lavoro in background", "session.activity.shell.back": "Torna alle attività in background", "session.activity.shell.stop": "Interrompi", "session.activity.shell.stopping": "Interruzione…", diff --git a/packages/app/src/runtime/i18n/ja.ts b/packages/app/src/runtime/i18n/ja.ts index e1dd0cce2b9..2eed38df315 100644 --- a/packages/app/src/runtime/i18n/ja.ts +++ b/packages/app/src/runtime/i18n/ja.ts @@ -1159,7 +1159,6 @@ export const dict = { "session.activity.shells.other": "シェル{{count}}件", "session.activity.scripts.one": "スクリプト{{count}}件", "session.activity.scripts.other": "スクリプト{{count}}件", - "session.activity.background": "バックグラウンド作業", "session.activity.shell.back": "バックグラウンド作業に戻る", "session.activity.shell.stop": "停止", "session.activity.shell.stopping": "停止中…", diff --git a/packages/app/src/runtime/i18n/ka.ts b/packages/app/src/runtime/i18n/ka.ts index 2bb76b01198..f16ad3620d1 100644 --- a/packages/app/src/runtime/i18n/ka.ts +++ b/packages/app/src/runtime/i18n/ka.ts @@ -1149,7 +1149,6 @@ export const dict = { "session.activity.shells.other": "{{count}} shell", "session.activity.scripts.one": "{{count}} სკრიპტი", "session.activity.scripts.other": "{{count}} სკრიპტი", - "session.activity.background": "ფონური სამუშაო", "session.activity.shell.back": "ფონურ სამუშაოზე დაბრუნება", "session.activity.shell.stop": "შეჩერება", "session.activity.shell.stopping": "ჩერდება…", diff --git a/packages/app/src/runtime/i18n/km.ts b/packages/app/src/runtime/i18n/km.ts index 755fb192fa1..b521bd06966 100644 --- a/packages/app/src/runtime/i18n/km.ts +++ b/packages/app/src/runtime/i18n/km.ts @@ -1137,7 +1137,6 @@ export const dict = { "session.activity.shells.other": "សែល {{count}}", "session.activity.scripts.one": "ស្គ្រីប {{count}}", "session.activity.scripts.other": "ស្គ្រីប {{count}}", - "session.activity.background": "ការងារផ្ទៃខាងក្រោយ", "session.activity.shell.back": "ត្រឡប់ទៅការងារផ្ទៃខាងក្រោយ", "session.activity.shell.stop": "ឈប់", "session.activity.shell.stopping": "កំពុងឈប់…", diff --git a/packages/app/src/runtime/i18n/ko.ts b/packages/app/src/runtime/i18n/ko.ts index 115bcc3598e..a9fd5e9c526 100644 --- a/packages/app/src/runtime/i18n/ko.ts +++ b/packages/app/src/runtime/i18n/ko.ts @@ -1146,7 +1146,6 @@ export const dict = { "session.activity.shells.other": "셸 {{count}}개", "session.activity.scripts.one": "스크립트 {{count}}개", "session.activity.scripts.other": "스크립트 {{count}}개", - "session.activity.background": "백그라운드 작업", "session.activity.shell.back": "백그라운드 작업으로 돌아가기", "session.activity.shell.stop": "중지", "session.activity.shell.stopping": "중지 중…", diff --git a/packages/app/src/runtime/i18n/language.tsx b/packages/app/src/runtime/i18n/language.tsx index 28ad5d6f293..a3d12ce4306 100644 --- a/packages/app/src/runtime/i18n/language.tsx +++ b/packages/app/src/runtime/i18n/language.tsx @@ -361,14 +361,6 @@ export const { use: useLanguage, provider: LanguageProvider } = createSimpleCont "", ) - // "Background work · 1 shell": an idle subagent whose tree still runs work. - const activityBackground = (counts: { subagents: number; scripts: number; shells: number }) => { - const work = activitySummary(counts) - const label = t("session.activity.background") - - return work ? t("session.activity.summary", { subagents: label, shells: work }) : label - } - const tDynamic = >( key: TranslationKey, source: string, @@ -443,7 +435,6 @@ export const { use: useLanguage, provider: LanguageProvider } = createSimpleCont pluralForm, activitySummary, activitySummaryRich, - activityBackground, rich, list, setLocale(next: Locale) { diff --git a/packages/app/src/runtime/i18n/lo.ts b/packages/app/src/runtime/i18n/lo.ts index 7d831e9c807..e24cf0f77b0 100644 --- a/packages/app/src/runtime/i18n/lo.ts +++ b/packages/app/src/runtime/i18n/lo.ts @@ -1130,7 +1130,6 @@ export const dict = { "session.activity.shells.other": "{{count}} shell", "session.activity.scripts.one": "{{count}} script", "session.activity.scripts.other": "{{count}} script", - "session.activity.background": "ວຽກໃນພື້ນຫຼັງ", "session.activity.shell.back": "ກັບໄປທີ່ວຽກເບື້ອງຫຼັງ", "session.activity.shell.stop": "ຢຸດ", "session.activity.shell.stopping": "ກຳລັງຢຸດ…", diff --git a/packages/app/src/runtime/i18n/lt.ts b/packages/app/src/runtime/i18n/lt.ts index 97d28b4ce28..f89a4ccd72e 100644 --- a/packages/app/src/runtime/i18n/lt.ts +++ b/packages/app/src/runtime/i18n/lt.ts @@ -1188,7 +1188,6 @@ export const dict = { "session.activity.scripts.few": "{{count}} scenarijai", "session.activity.scripts.many": "{{count}} scenarijaus", "session.activity.scripts.other": "{{count}} scenarijų", - "session.activity.background": "Foninis darbas", "session.activity.shell.back": "Atgal į foninį darbą", "session.activity.shell.stop": "Stabdyti", "session.activity.shell.stopping": "Stabdoma…", diff --git a/packages/app/src/runtime/i18n/lv.ts b/packages/app/src/runtime/i18n/lv.ts index 715c954322b..8c6e55277ca 100644 --- a/packages/app/src/runtime/i18n/lv.ts +++ b/packages/app/src/runtime/i18n/lv.ts @@ -1175,7 +1175,6 @@ export const dict = { "session.activity.scripts.zero": "{{count}} skriptu", "session.activity.scripts.one": "{{count}} skripts", "session.activity.scripts.other": "{{count}} skripti", - "session.activity.background": "Fona darbs", "session.activity.shell.back": "Atpakaļ uz fona darbiem", "session.activity.shell.stop": "Apturēt", "session.activity.shell.stopping": "Aptur…", diff --git a/packages/app/src/runtime/i18n/mk.ts b/packages/app/src/runtime/i18n/mk.ts index 972bf50b000..b4630dd8a15 100644 --- a/packages/app/src/runtime/i18n/mk.ts +++ b/packages/app/src/runtime/i18n/mk.ts @@ -1157,7 +1157,6 @@ export const dict = { "session.activity.shells.other": "{{count}} школки", "session.activity.scripts.one": "{{count}} скрипта", "session.activity.scripts.other": "{{count}} скрипти", - "session.activity.background": "Работа во позадина", "session.activity.shell.back": "Назад кон позадинската работа", "session.activity.shell.stop": "Запри", "session.activity.shell.stopping": "Се запира…", diff --git a/packages/app/src/runtime/i18n/mn.ts b/packages/app/src/runtime/i18n/mn.ts index b127ed2f6db..553864781c7 100644 --- a/packages/app/src/runtime/i18n/mn.ts +++ b/packages/app/src/runtime/i18n/mn.ts @@ -1157,7 +1157,6 @@ export const dict = { "session.activity.shells.other": "{{count}} shell", "session.activity.scripts.one": "{{count}} скрипт", "session.activity.scripts.other": "{{count}} скрипт", - "session.activity.background": "Арын ажил", "session.activity.shell.back": "Арын ажил руу буцах", "session.activity.shell.stop": "Зогсоох", "session.activity.shell.stopping": "Зогсоож байна…", diff --git a/packages/app/src/runtime/i18n/ms.ts b/packages/app/src/runtime/i18n/ms.ts index 0ab51aeb4a7..af3372dca55 100644 --- a/packages/app/src/runtime/i18n/ms.ts +++ b/packages/app/src/runtime/i18n/ms.ts @@ -1150,7 +1150,6 @@ export const dict = { "session.activity.shells.other": "{{count}} shell", "session.activity.scripts.one": "{{count}} skrip", "session.activity.scripts.other": "{{count}} skrip", - "session.activity.background": "Kerja latar belakang", "session.activity.shell.back": "Kembali ke kerja latar belakang", "session.activity.shell.stop": "Henti", "session.activity.shell.stopping": "Menghentikan…", diff --git a/packages/app/src/runtime/i18n/my.ts b/packages/app/src/runtime/i18n/my.ts index 967112d74ce..f684f7e18a8 100644 --- a/packages/app/src/runtime/i18n/my.ts +++ b/packages/app/src/runtime/i18n/my.ts @@ -1158,7 +1158,6 @@ export const dict = { "session.activity.shells.other": "Shell {{count}} ခု", "session.activity.scripts.one": "Script {{count}} ခု", "session.activity.scripts.other": "Script {{count}} ခု", - "session.activity.background": "နောက်ခံအလုပ်", "session.activity.shell.back": "နောက်ခံအလုပ်များသို့ ပြန်သွားရန်", "session.activity.shell.stop": "ရပ်ရန်", "session.activity.shell.stopping": "ရပ်နေသည်…", diff --git a/packages/app/src/runtime/i18n/ne.ts b/packages/app/src/runtime/i18n/ne.ts index 3bc315c1e1d..fe73c501639 100644 --- a/packages/app/src/runtime/i18n/ne.ts +++ b/packages/app/src/runtime/i18n/ne.ts @@ -1149,7 +1149,6 @@ export const dict = { "session.activity.shells.other": "{{count}} शेलहरू", "session.activity.scripts.one": "{{count}} स्क्रिप्ट", "session.activity.scripts.other": "{{count}} स्क्रिप्टहरू", - "session.activity.background": "पृष्ठभूमि कार्य", "session.activity.shell.back": "पृष्ठभूमि काममा फर्कनुहोस्", "session.activity.shell.stop": "रोक्नुहोस्", "session.activity.shell.stopping": "रोक्दै…", diff --git a/packages/app/src/runtime/i18n/nl.ts b/packages/app/src/runtime/i18n/nl.ts index ce8bb8d278b..5e7c2314d0d 100644 --- a/packages/app/src/runtime/i18n/nl.ts +++ b/packages/app/src/runtime/i18n/nl.ts @@ -1163,7 +1163,6 @@ export const dict = { "session.activity.shells.other": "{{count}} shells", "session.activity.scripts.one": "{{count}} script", "session.activity.scripts.other": "{{count}} scripts", - "session.activity.background": "Achtergrondwerk", "session.activity.shell.back": "Terug naar achtergrondwerk", "session.activity.shell.stop": "Stoppen", "session.activity.shell.stopping": "Stoppen…", diff --git a/packages/app/src/runtime/i18n/no.ts b/packages/app/src/runtime/i18n/no.ts index 2bf9e7b3ff6..696ed785cc6 100644 --- a/packages/app/src/runtime/i18n/no.ts +++ b/packages/app/src/runtime/i18n/no.ts @@ -1211,7 +1211,6 @@ export const dict = { "session.activity.shells.other": "{{count}} shell", "session.activity.scripts.one": "{{count}} skript", "session.activity.scripts.other": "{{count}} skript", - "session.activity.background": "Bakgrunnsarbeid", "session.activity.shell.back": "Tilbake til bakgrunnsarbeid", "session.activity.shell.stop": "Stopp", "session.activity.shell.stopping": "Stopper …", diff --git a/packages/app/src/runtime/i18n/pa.ts b/packages/app/src/runtime/i18n/pa.ts index 1812fe31e96..4c54fa88692 100644 --- a/packages/app/src/runtime/i18n/pa.ts +++ b/packages/app/src/runtime/i18n/pa.ts @@ -1155,7 +1155,6 @@ export const dict = { "session.activity.shells.other": "⁨{{count}}⁩ شیل", "session.activity.scripts.one": "⁨{{count}}⁩ سکرپٹ", "session.activity.scripts.other": "⁨{{count}}⁩ سکرپٹ", - "session.activity.background": "پس منظر دا کم", "session.activity.shell.back": "پس منظر دے کم تے واپس جاؤ", "session.activity.shell.stop": "روکو", "session.activity.shell.stopping": "رُک رہیا اے…", diff --git a/packages/app/src/runtime/i18n/pl.ts b/packages/app/src/runtime/i18n/pl.ts index 8abdfcd264f..0034a389a21 100644 --- a/packages/app/src/runtime/i18n/pl.ts +++ b/packages/app/src/runtime/i18n/pl.ts @@ -1198,7 +1198,6 @@ export const dict = { "session.activity.scripts.few": "{{count}} skrypty", "session.activity.scripts.many": "{{count}} skryptów", "session.activity.scripts.other": "{{count}} skryptu", - "session.activity.background": "Praca w tle", "session.activity.shell.back": "Wróć do pracy w tle", "session.activity.shell.stop": "Zatrzymaj", "session.activity.shell.stopping": "Zatrzymywanie…", diff --git a/packages/app/src/runtime/i18n/ro.ts b/packages/app/src/runtime/i18n/ro.ts index b3158626a7b..b9be8c6a079 100644 --- a/packages/app/src/runtime/i18n/ro.ts +++ b/packages/app/src/runtime/i18n/ro.ts @@ -1174,7 +1174,6 @@ export const dict = { "session.activity.scripts.one": "{{count}} script", "session.activity.scripts.few": "{{count}} scripturi", "session.activity.scripts.other": "{{count}} de scripturi", - "session.activity.background": "Lucru în fundal", "session.activity.shell.back": "Înapoi la activitatea din fundal", "session.activity.shell.stop": "Oprește", "session.activity.shell.stopping": "Se oprește…", diff --git a/packages/app/src/runtime/i18n/ru.ts b/packages/app/src/runtime/i18n/ru.ts index c06da7e8a75..b54c1eaeee6 100644 --- a/packages/app/src/runtime/i18n/ru.ts +++ b/packages/app/src/runtime/i18n/ru.ts @@ -1252,7 +1252,6 @@ export const dict = { "session.activity.scripts.few": "{{count}} скрипта", "session.activity.scripts.many": "{{count}} скриптов", "session.activity.scripts.other": "{{count}} скрипта", - "session.activity.background": "Фоновая работа", "session.activity.shell.back": "Назад к фоновым задачам", "session.activity.shell.stop": "Остановить", "session.activity.shell.stopping": "Остановка…", diff --git a/packages/app/src/runtime/i18n/si.ts b/packages/app/src/runtime/i18n/si.ts index 08389759665..673844cd99f 100644 --- a/packages/app/src/runtime/i18n/si.ts +++ b/packages/app/src/runtime/i18n/si.ts @@ -1150,7 +1150,6 @@ export const dict = { "session.activity.shells.other": "ෂෙල් {{count}}", "session.activity.scripts.one": "ස්ක්‍රිප්ට් {{count}}", "session.activity.scripts.other": "ස්ක්‍රිප්ට් {{count}}", - "session.activity.background": "පසුබිම් වැඩ", "session.activity.shell.back": "පසුබිම් වැඩ වෙත ආපසු", "session.activity.shell.stop": "නවත්වන්න", "session.activity.shell.stopping": "නවත්වමින්…", diff --git a/packages/app/src/runtime/i18n/sk.ts b/packages/app/src/runtime/i18n/sk.ts index 04417f0c429..6a4d7fd85fb 100644 --- a/packages/app/src/runtime/i18n/sk.ts +++ b/packages/app/src/runtime/i18n/sk.ts @@ -1186,7 +1186,6 @@ export const dict = { "session.activity.scripts.few": "{{count}} skripty", "session.activity.scripts.many": "{{count}} skriptu", "session.activity.scripts.other": "{{count}} skriptov", - "session.activity.background": "Práca na pozadí", "session.activity.shell.back": "Späť na prácu na pozadí", "session.activity.shell.stop": "Zastaviť", "session.activity.shell.stopping": "Zastavuje sa…", diff --git a/packages/app/src/runtime/i18n/sl.ts b/packages/app/src/runtime/i18n/sl.ts index afff8a6e1ca..993f3234e07 100644 --- a/packages/app/src/runtime/i18n/sl.ts +++ b/packages/app/src/runtime/i18n/sl.ts @@ -1184,7 +1184,6 @@ export const dict = { "session.activity.scripts.two": "{{count}} skripti", "session.activity.scripts.few": "{{count}} skripte", "session.activity.scripts.other": "{{count}} skript", - "session.activity.background": "Delo v ozadju", "session.activity.shell.back": "Nazaj na delo v ozadju", "session.activity.shell.stop": "Ustavi", "session.activity.shell.stopping": "Ustavljanje …", diff --git a/packages/app/src/runtime/i18n/sq.ts b/packages/app/src/runtime/i18n/sq.ts index 352d9da97af..430c297dcad 100644 --- a/packages/app/src/runtime/i18n/sq.ts +++ b/packages/app/src/runtime/i18n/sq.ts @@ -1152,7 +1152,6 @@ export const dict = { "session.activity.shells.other": "{{count}} shell", "session.activity.scripts.one": "{{count}} skript", "session.activity.scripts.other": "{{count}} skripte", - "session.activity.background": "Punë në sfond", "session.activity.shell.back": "Kthehu te puna në sfond", "session.activity.shell.stop": "Ndalo", "session.activity.shell.stopping": "Po ndalet…", diff --git a/packages/app/src/runtime/i18n/sr.ts b/packages/app/src/runtime/i18n/sr.ts index 605da638d78..1ca0f9cb320 100644 --- a/packages/app/src/runtime/i18n/sr.ts +++ b/packages/app/src/runtime/i18n/sr.ts @@ -1168,7 +1168,6 @@ export const dict = { "session.activity.scripts.one": "{{count}} скрипта", "session.activity.scripts.few": "{{count}} скрипте", "session.activity.scripts.other": "{{count}} скрипти", - "session.activity.background": "Рад у позадини", "session.activity.shell.back": "Назад на рад у позадини", "session.activity.shell.stop": "Заустави", "session.activity.shell.stopping": "Заустављање…", diff --git a/packages/app/src/runtime/i18n/sv.ts b/packages/app/src/runtime/i18n/sv.ts index 49ba25992bd..1c22f31af7f 100644 --- a/packages/app/src/runtime/i18n/sv.ts +++ b/packages/app/src/runtime/i18n/sv.ts @@ -1151,7 +1151,6 @@ export const dict = { "session.activity.shells.other": "{{count}} shells", "session.activity.scripts.one": "{{count}} skript", "session.activity.scripts.other": "{{count}} skript", - "session.activity.background": "Bakgrundsarbete", "session.activity.shell.back": "Tillbaka till bakgrundsarbete", "session.activity.shell.stop": "Stoppa", "session.activity.shell.stopping": "Stoppar…", diff --git a/packages/app/src/runtime/i18n/tg.ts b/packages/app/src/runtime/i18n/tg.ts index 28b34b7ffaa..ddf7dc3a16c 100644 --- a/packages/app/src/runtime/i18n/tg.ts +++ b/packages/app/src/runtime/i18n/tg.ts @@ -1164,7 +1164,6 @@ export const dict = { "session.activity.shells.other": "{{count}} shell", "session.activity.scripts.one": "{{count}} скрипт", "session.activity.scripts.other": "{{count}} скрипт", - "session.activity.background": "Кори пасзамина", "session.activity.shell.back": "Бозгашт ба корҳои заминавӣ", "session.activity.shell.stop": "Қатъ кардан", "session.activity.shell.stopping": "Қатъ карда мешавад…", diff --git a/packages/app/src/runtime/i18n/th.ts b/packages/app/src/runtime/i18n/th.ts index 0095b5e922e..d9cd7060bbb 100644 --- a/packages/app/src/runtime/i18n/th.ts +++ b/packages/app/src/runtime/i18n/th.ts @@ -1182,7 +1182,6 @@ export const dict = { "session.activity.shells.other": "เชลล์ {{count}} ตัว", "session.activity.scripts.one": "สคริปต์ {{count}} ตัว", "session.activity.scripts.other": "สคริปต์ {{count}} ตัว", - "session.activity.background": "งานเบื้องหลัง", "session.activity.shell.back": "กลับไปยังงานเบื้องหลัง", "session.activity.shell.stop": "หยุด", "session.activity.shell.stopping": "กำลังหยุด…", diff --git a/packages/app/src/runtime/i18n/tk.ts b/packages/app/src/runtime/i18n/tk.ts index 67f5d2df831..9eeeb8bb151 100644 --- a/packages/app/src/runtime/i18n/tk.ts +++ b/packages/app/src/runtime/i18n/tk.ts @@ -1143,7 +1143,6 @@ export const dict = { "session.activity.shells.other": "{{count}} shell", "session.activity.scripts.one": "{{count}} skript", "session.activity.scripts.other": "{{count}} skript", - "session.activity.background": "Fon işi", "session.activity.shell.back": "Fon işlerine dolan", "session.activity.shell.stop": "Duruz", "session.activity.shell.stopping": "Duruzylýar…", diff --git a/packages/app/src/runtime/i18n/tr.ts b/packages/app/src/runtime/i18n/tr.ts index b1b0c9f571e..0deb749d0b9 100644 --- a/packages/app/src/runtime/i18n/tr.ts +++ b/packages/app/src/runtime/i18n/tr.ts @@ -1223,7 +1223,6 @@ export const dict = { "session.activity.shells.other": "{{count}} kabuk", "session.activity.scripts.one": "{{count}} betik", "session.activity.scripts.other": "{{count}} betik", - "session.activity.background": "Arka plan işi", "session.activity.shell.back": "Arka plan işlerine dön", "session.activity.shell.stop": "Durdur", "session.activity.shell.stopping": "Durduruluyor…", diff --git a/packages/app/src/runtime/i18n/uk.ts b/packages/app/src/runtime/i18n/uk.ts index 3e5b326d0a1..80aa2858762 100644 --- a/packages/app/src/runtime/i18n/uk.ts +++ b/packages/app/src/runtime/i18n/uk.ts @@ -1252,7 +1252,6 @@ export const dict = { "session.activity.scripts.few": "{{count}} скрипти", "session.activity.scripts.many": "{{count}} скриптів", "session.activity.scripts.other": "{{count}} скрипта", - "session.activity.background": "Фонова робота", "session.activity.shell.back": "Назад до фонової роботи", "session.activity.shell.stop": "Зупинити", "session.activity.shell.stopping": "Зупинення…", diff --git a/packages/app/src/runtime/i18n/ur.ts b/packages/app/src/runtime/i18n/ur.ts index 86bccf6031c..26ff4ea9d65 100644 --- a/packages/app/src/runtime/i18n/ur.ts +++ b/packages/app/src/runtime/i18n/ur.ts @@ -1161,7 +1161,6 @@ export const dict = { "session.activity.shells.other": "⁨{{count}}⁩ شیلز", "session.activity.scripts.one": "⁨{{count}}⁩ اسکرپٹ", "session.activity.scripts.other": "⁨{{count}}⁩ اسکرپٹس", - "session.activity.background": "پس منظر کا کام", "session.activity.shell.back": "پس منظر کے کام پر واپس جائیں", "session.activity.shell.stop": "روکیں", "session.activity.shell.stopping": "روکا جا رہا ہے…", diff --git a/packages/app/src/runtime/i18n/uz.ts b/packages/app/src/runtime/i18n/uz.ts index 81323c7ef57..ca91edb88b9 100644 --- a/packages/app/src/runtime/i18n/uz.ts +++ b/packages/app/src/runtime/i18n/uz.ts @@ -1161,7 +1161,6 @@ export const dict = { "session.activity.shells.other": "{{count}} ta shell", "session.activity.scripts.one": "{{count}} ta skript", "session.activity.scripts.other": "{{count}} ta skript", - "session.activity.background": "Fon ishi", "session.activity.shell.back": "Fon ishlariga qaytish", "session.activity.shell.stop": "To‘xtatish", "session.activity.shell.stopping": "To‘xtatilmoqda…", diff --git a/packages/app/src/runtime/i18n/vi.ts b/packages/app/src/runtime/i18n/vi.ts index c002d0ba6a2..d3a376334ca 100644 --- a/packages/app/src/runtime/i18n/vi.ts +++ b/packages/app/src/runtime/i18n/vi.ts @@ -1147,7 +1147,6 @@ export const dict = { "session.activity.shells.other": "{{count}} shell", "session.activity.scripts.one": "{{count}} script", "session.activity.scripts.other": "{{count}} script", - "session.activity.background": "Công việc nền", "session.activity.shell.back": "Quay lại tác vụ nền", "session.activity.shell.stop": "Dừng", "session.activity.shell.stopping": "Đang dừng…", diff --git a/packages/app/src/runtime/i18n/zh.ts b/packages/app/src/runtime/i18n/zh.ts index c6679b2a60e..1e4477840e4 100644 --- a/packages/app/src/runtime/i18n/zh.ts +++ b/packages/app/src/runtime/i18n/zh.ts @@ -1158,7 +1158,6 @@ export const dict = { "session.activity.shells.other": "{{count}} 个 Shell", "session.activity.scripts.one": "{{count}} 个脚本", "session.activity.scripts.other": "{{count}} 个脚本", - "session.activity.background": "后台工作", "session.activity.shell.back": "返回后台任务", "session.activity.shell.stop": "停止", "session.activity.shell.stopping": "正在停止…", diff --git a/packages/app/src/runtime/i18n/zht.ts b/packages/app/src/runtime/i18n/zht.ts index c986a3be1c1..9b2ec00347b 100644 --- a/packages/app/src/runtime/i18n/zht.ts +++ b/packages/app/src/runtime/i18n/zht.ts @@ -1154,7 +1154,6 @@ export const dict = { "session.activity.shells.other": "{{count}} 個 Shell", "session.activity.scripts.one": "{{count}} 個腳本", "session.activity.scripts.other": "{{count}} 個腳本", - "session.activity.background": "背景工作", "session.activity.shell.back": "返回背景工作", "session.activity.shell.stop": "停止", "session.activity.shell.stopping": "正在停止…", diff --git a/packages/app/src/session/composer/activity-chips.tsx b/packages/app/src/session/composer/activity-chips.tsx index 943cadefe5d..d0af200069a 100644 --- a/packages/app/src/session/composer/activity-chips.tsx +++ b/packages/app/src/session/composer/activity-chips.tsx @@ -26,8 +26,6 @@ export type SessionActivityItem = { | { type: "subagent" sessionID: string - // Set while the subagent is idle and only work it started still runs. - idle?: { subagents: number; scripts: number; shells: number } // Running jobs in its tree, which its Stop cancels. jobs?: readonly string[] } @@ -239,13 +237,6 @@ export function SessionActivityChips(props: { {item.label} - - {(idle) => ( - - {language.activityBackground(idle())} - - )} - {end(item)} diff --git a/packages/app/src/session/requests/background.ts b/packages/app/src/session/requests/background.ts index 3f507fbce30..3939bb35ee4 100644 --- a/packages/app/src/session/requests/background.ts +++ b/packages/app/src/session/requests/background.ts @@ -18,8 +18,6 @@ type Subagent = { label: string agent?: string started: number - // Set while the subagent is idle and only work it started still runs, counted by kind. - idle?: { subagents: number; scripts: number; shells: number } // Running jobs in its tree, which its Stop cancels. jobs?: string[] } @@ -174,9 +172,6 @@ export function createSessionBackground(input: { const latest = current.calls.get(info.id) - const count = (kind: JobInfo["kind"]) => - owned.filter((job) => job.kind === kind && !(job.kind === "subagent" && job.childSessionID === info.id)).length - const item: Subagent = { id: info.id, type: "subagent", @@ -186,8 +181,6 @@ export function createSessionBackground(input: { started: latest?.started ?? info.time.created, } - if (!running) item.idle = { subagents: count("subagent"), scripts: count("codemode"), shells: count("shell") } - if (owned.length > 0) item.jobs = owned.map((job) => job.id) return [item] From 10e5856f051cb7177bb0a4d4ffeb567e68b5ccc8 Mon Sep 17 00:00:00 2001 From: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Date: Thu, 19 Nov 2026 12:45:52 -0600 Subject: [PATCH 2/6] fix(codemode): define Uint8Array BYTES_PER_ELEMENT (#64930) --- packages/codemode/interpreter-support.md | 3 ++- packages/codemode/src/language/stdlib/buffer.ts | 3 +++ packages/codemode/src/language/stdlib/bytes.ts | 3 +++ packages/codemode/test/stdlib.test.ts | 8 ++++++++ 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/packages/codemode/interpreter-support.md b/packages/codemode/interpreter-support.md index e516f78b1d7..7a0189d6dec 100644 --- a/packages/codemode/interpreter-support.md +++ b/packages/codemode/interpreter-support.md @@ -589,7 +589,8 @@ with a hint to encode as text first (`TextDecoder`, `toBase64`, `toHex`). - [x] `new Uint8Array(length | array | iterable | Uint8Array)`, `Uint8Array.from`, `Uint8Array.of`, `fromBase64`, and `fromHex`. Lengths are capped like arrays. The `Uint8Array.from` mapper and `thisArg` see the original - values, so `Uint8Array.from(atob(b64), (c) => c.charCodeAt(0))` decodes base64. + values, so `Uint8Array.from(atob(b64), (c) => c.charCodeAt(0))` decodes base64. `BYTES_PER_ELEMENT` is 1 on + the constructor, its instances, and `Buffer`. - [x] Index reads and writes with JS byte semantics: values wrap modulo 256, out-of-range writes are ignored, indexes cannot be deleted. `length` is a prototype accessor, so `Object.keys` lists only indexes. - [x] `at`, `slice`, `subarray` (a view on the same bytes), `set`, `fill`, `reverse`, `indexOf`, `lastIndexOf`, diff --git a/packages/codemode/src/language/stdlib/buffer.ts b/packages/codemode/src/language/stdlib/buffer.ts index e88f6a6a544..b1d78f81d3b 100644 --- a/packages/codemode/src/language/stdlib/buffer.ts +++ b/packages/codemode/src/language/stdlib/buffer.ts @@ -7,6 +7,7 @@ import { Arr, Bytes, define, + frozen, get, hidden, Obj, @@ -179,6 +180,8 @@ export const bufferGlobal = (ctx: Interpreter) => { construct: (args, newTarget) => withReads(() => new BufferObj(prototypeFrom(newTarget, proto), bytesFrom(args[0], args[1], args[2]))), }) + // Bun inherits this from Uint8Array; Buffer's constructor here does not. + define(buffer, "BYTES_PER_ELEMENT", 1, frozen) methods(builtins, buffer, [ ["from", 3, (_, args) => withReads(() => wrap(bytesFrom(args[0], args[1], args[2])))], [ diff --git a/packages/codemode/src/language/stdlib/bytes.ts b/packages/codemode/src/language/stdlib/bytes.ts index f831dfd1513..6ec34722659 100644 --- a/packages/codemode/src/language/stdlib/bytes.ts +++ b/packages/codemode/src/language/stdlib/bytes.ts @@ -5,6 +5,7 @@ import { IteratorSymbol, rangeError, syntaxError, typeError } from "../runtime/m import { define, defineAccessor, + frozen, get, hidden, Bytes, @@ -84,6 +85,8 @@ export const uint8ArrayGlobal = (ctx: Interpreter) => { ["fromBase64", 1, (_, args) => decode("fromBase64", args, (text) => Uint8Array.fromBase64(text))], ["fromHex", 1, (_, args) => decode("fromHex", args, (text) => Uint8Array.fromHex(text))], ]) + define(uint8Array, "BYTES_PER_ELEMENT", 1, frozen) + define(proto, "BYTES_PER_ELEMENT", 1, frozen) const self = (thisValue: Value, name: string) => receiver(Bytes, thisValue, `Uint8Array.prototype.${name}`) const optNumber = (value: Value): number | undefined => (value === undefined ? undefined : coerceToInteger(value)) diff --git a/packages/codemode/test/stdlib.test.ts b/packages/codemode/test/stdlib.test.ts index ef09e2d3303..258d2126ab4 100644 --- a/packages/codemode/test/stdlib.test.ts +++ b/packages/codemode/test/stdlib.test.ts @@ -1070,6 +1070,14 @@ describe("Uint8Array", () => { expect((await error(`Uint8Array.from(/x/)`)).message).toContain("received a RegExp") }) + test("BYTES_PER_ELEMENT is a read-only 1 on Uint8Array, Buffer and their instances", async () => { + expect( + await value(`const d = Object.getOwnPropertyDescriptor(Uint8Array, "BYTES_PER_ELEMENT") + return [Uint8Array.BYTES_PER_ELEMENT, new Uint8Array(1).BYTES_PER_ELEMENT, Buffer.BYTES_PER_ELEMENT, + Buffer.alloc(1).BYTES_PER_ELEMENT, 4 * Uint8Array.BYTES_PER_ELEMENT, d.writable, d.enumerable, Object.keys(Uint8Array)]`), + ).toEqual([1, 1, 1, 1, 4, false, false, []]) + }) + test("index reads and writes clamp to a byte and ignore out-of-range writes, like JS", async () => { expect( await value(` From d99e203f9742b064539e73a00b3505be5d1044b9 Mon Sep 17 00:00:00 2001 From: usrnk1 <7547651+usrnk1@users.noreply.github.com> Date: Thu, 19 Nov 2026 19:57:37 +0100 Subject: [PATCH 3/6] fix(ui): unify focus ring and add missing focus states (#64909) --- .../app/component-tests/browser-pane.spec.ts | 11 + packages/app/component-tests/composer.spec.ts | 17 + .../component-tests/focus-rescue.fixture.tsx | 30 + .../app/component-tests/focus-rescue.spec.ts | 44 + .../component-tests/input-surfaces.spec.ts | 88 + packages/app/e2e/regression/composer.spec.ts | 37 + packages/app/e2e/regression/home.spec.ts | 81 + .../app/e2e/regression/new-session.spec.ts | 24 + packages/app/e2e/regression/review.spec.ts | 42 + .../app/e2e/regression/session-header.spec.ts | 20 +- .../session-timeline-accessibility.spec.ts | 8 + packages/app/e2e/regression/settings.spec.ts | 22 + .../e2e/regression/timeline-geometry.spec.ts | 4 +- packages/app/src/app.tsx | 13 +- .../components-lab/focus-rings.stories.tsx | 551 ++-- .../focus-visibility.stories.tsx | 2315 ++++++++++++++++- packages/app/src/composer/editor/editor.css | 13 +- packages/app/src/composer/editor/editor.tsx | 17 +- .../app/src/composer/editor/interaction.ts | 19 +- packages/app/src/home/projects/view.css | 20 + packages/app/src/home/projects/view.tsx | 24 +- packages/app/src/home/sessions/view.css | 32 + packages/app/src/home/sessions/view.tsx | 20 +- packages/app/src/index.css | 4 + .../app/src/new-session/project/selector.tsx | 2 +- packages/app/src/new-session/screen.tsx | 2 +- packages/app/src/new-session/view.tsx | 3 +- packages/app/src/providers/connect/dialog.tsx | 18 +- .../app/src/providers/connect/mcp-dialog.tsx | 2 +- packages/app/src/providers/connect/models.css | 3 +- .../src/providers/connect/step-actions.tsx | 2 +- packages/app/src/providers/connect/tip.tsx | 4 +- .../src/providers/models/select-dialog.tsx | 2 +- packages/app/src/providers/models/unpaid.tsx | 6 +- packages/app/src/runtime/i18n/en.ts | 6 +- .../app/src/runtime/plugin/side-region.tsx | 1 + .../src/runtime/plugin/tab-strip-scroll.ts | 12 + .../src/session/composer/activity-chips.tsx | 1 + .../src/session/composer/composer-lane.css | 2 +- packages/app/src/session/composer/focus.tsx | 3 +- .../app/src/session/composer/plugin-pills.tsx | 12 +- .../app/src/session/composer/queue-panel.tsx | 1 + .../composer/session-composer-region.tsx | 1 + .../app/src/session/composer/todo-pill.tsx | 18 +- packages/app/src/session/screen.tsx | 36 +- .../src/session/session-identity-header.css | 18 + .../src/session/session-identity-header.tsx | 24 +- .../src/session/timeline/message-timeline.tsx | 34 +- .../app/src/session/timeline/search-bar.tsx | 4 +- .../app/src/session/timeline/virtualizer.tsx | 21 +- .../settings/experimental/experimental.tsx | 2 +- .../src/settings/general/interface-mode.css | 63 +- .../src/settings/general/interface-mode.tsx | 15 + packages/app/src/settings/list.tsx | 2 +- packages/app/src/settings/model.test.ts | 2 + packages/app/src/settings/navigation.tsx | 24 +- packages/app/src/settings/settings.css | 26 +- packages/app/src/settings/shell.tsx | 1 + packages/app/src/settings/tab-header.ts | 12 + .../src/settings/workspaces/project-row.tsx | 2 +- .../app/src/settings/workspaces/project.css | 9 +- packages/app/src/shell/palette-menu.css | 11 + packages/app/src/shell/search-list.css | 11 + packages/app/src/shell/shell.tsx | 1 + packages/app/src/shell/sidebar-toggle.tsx | 2 +- packages/app/src/shell/titlebar/inbox.tsx | 9 +- .../app/src/shell/titlebar/pinned-area.css | 7 + .../app/src/shell/titlebar/pinned-area.tsx | 13 +- .../shell/titlebar/project-session-row.tsx | 2 +- .../src/shell/titlebar/recent-sessions.tsx | 37 +- .../src/shell/titlebar/recent-view-menu.tsx | 1 + .../src/shell/titlebar/sidebar-customized.tsx | 1 + .../app/src/shell/titlebar/sidebar-pins.tsx | 2 +- .../app/src/shell/titlebar/tab-groups-ui.tsx | 6 +- packages/app/src/shell/titlebar/tab-nav.css | 9 + packages/app/src/shell/titlebar/tab-strip.tsx | 1 + packages/app/src/shell/titlebar/titlebar.css | 12 +- packages/app/src/shell/titlebar/titlebar.tsx | 11 +- packages/gui-plugins/src/browser/bar.css | 5 +- packages/gui-plugins/src/file/pierre-tree.tsx | 5 +- packages/gui-plugins/src/file/tree-focus.css | 6 + .../session-ui/src/components/basic-tool.css | 3 +- packages/session-ui/src/components/file.css | 15 + packages/session-ui/src/components/file.tsx | 2 +- .../session-ui/src/components/markdown.css | 2 +- .../src/components/message-part.css | 21 +- .../question-prompt-experimental.css | 2 +- .../src/components/question-prompt.css | 6 +- .../src/components/session-compaction.css | 2 +- packages/session-ui/src/sources/sources.css | 12 +- .../src/timeline-next/timeline-next.css | 14 +- .../src/v2/components/session-review-v2.css | 7 + packages/ui/src/actions/button/button.css | 4 +- packages/ui/src/actions/button/button.tsx | 1 + .../src/actions/icon-button/icon-button.css | 2 +- packages/ui/src/components/collapsible.css | 9 +- packages/ui/src/components/error-details.css | 3 +- packages/ui/src/components/scroll-view.css | 5 + packages/ui/src/components/scroll-view.tsx | 2 +- .../components/sticky-accordion-header.css | 5 + packages/ui/src/context/dialog-machine.ts | 3 +- packages/ui/src/context/dialog.tsx | 37 +- packages/ui/src/context/field-focus.tsx | 55 + packages/ui/src/context/focus-rescue.tsx | 211 ++ packages/ui/src/context/overlay-focus.tsx | 90 + .../src/data-display/accordion/accordion.css | 11 +- packages/ui/src/feedback/toast/toast.tsx | 2 + packages/ui/src/forms/checkbox/checkbox.css | 4 +- packages/ui/src/forms/field/field.css | 2 +- packages/ui/src/forms/radio/radio.css | 15 +- packages/ui/src/forms/select/select.css | 10 +- packages/ui/src/forms/select/select.tsx | 9 + packages/ui/src/forms/switch/switch.css | 21 +- .../ui/src/forms/text-input/text-input.css | 2 +- packages/ui/src/navigation/menu/menu.tsx | 82 +- .../segmented-control/segmented-control.css | 2 +- .../ui/src/navigation/tabs/tabs-current.css | 11 +- packages/ui/src/navigation/tabs/tabs.css | 9 + packages/ui/src/overlays/dialog/dialog.tsx | 1 + packages/ui/src/styles/base.css | 18 + packages/ui/src/styles/tokens/theme.css | 4 +- packages/ui/src/theme/themes/oc-2.json | 2 +- packages/ui/src/theme/v2/mapping.ts | 2 +- packages/ui/src/theme/v2/resolve.test.ts | 21 + 124 files changed, 4200 insertions(+), 545 deletions(-) create mode 100644 packages/app/component-tests/focus-rescue.fixture.tsx create mode 100644 packages/app/component-tests/focus-rescue.spec.ts create mode 100644 packages/app/src/settings/tab-header.ts create mode 100644 packages/gui-plugins/src/file/tree-focus.css create mode 100644 packages/ui/src/context/field-focus.tsx create mode 100644 packages/ui/src/context/focus-rescue.tsx create mode 100644 packages/ui/src/context/overlay-focus.tsx diff --git a/packages/app/component-tests/browser-pane.spec.ts b/packages/app/component-tests/browser-pane.spec.ts index 45541a7e865..4a8acde86e8 100644 --- a/packages/app/component-tests/browser-pane.spec.ts +++ b/packages/app/component-tests/browser-pane.spec.ts @@ -1130,8 +1130,19 @@ story("resizes a device with the RTL side grip by pointer and keyboard", async ( await expect(root.getByTestId("native-Alpha")).toHaveAttribute("data-visible", "true") await expect(root.locator('img[elementtiming="embed-snapshot"]')).toHaveCount(0) await page.mouse.up() + + const bottomGrip = root.getByRole("separator", { name: "Resize viewport height", exact: true }) + + await expect(grip).toHaveCSS("outline-style", "none") + await bottomGrip.press("Shift+Tab") + await expect(grip).toBeFocused() + await expect(grip).toHaveCSS("outline-offset", "-2px") await grip.press("Shift+ArrowRight") await expect(width).toHaveValue("398") + + await page.keyboard.press("Tab") + await expect(bottomGrip).toBeFocused() + await expect(bottomGrip).toHaveCSS("outline-offset", "-2px") }) story("pins the responsive dimensions when a manual preview scale is selected", async ({ page }) => { diff --git a/packages/app/component-tests/composer.spec.ts b/packages/app/component-tests/composer.spec.ts index 3fb3fde481d..028652b408f 100644 --- a/packages/app/component-tests/composer.spec.ts +++ b/packages/app/component-tests/composer.spec.ts @@ -1,5 +1,22 @@ import { expect, story } from "../../stories/playwright/story" +story("outsets the Send ring without changing the scrolling toolbar rings", async ({ mount, page }) => { + const component = await mount("opencode-composer-flow--toolbar-overflow", { args: { alternate: "none" } }) + + const send = component.locator('[data-action="composer-submit"]') + + const variant = component.getByRole("button", { name: "Choose model variant" }) + + await expect(send).toBeEnabled() + await send.press("Shift+Tab") + await expect(variant).toBeFocused() + await expect(variant).toHaveCSS("outline-offset", "-2px") + await page.keyboard.press("Tab") + await expect(send).toBeFocused() + await expect(send).toHaveCSS("outline-style", "solid") + await expect(send).toHaveCSS("outline-offset", "2px") +}) + story("cycles full prompts with plain arrows without opening the picker", async ({ mount, page }) => { const component = await mount("opencode-composer-flow--prompt-history") const input = component.getByRole("textbox", { name: "Prompt", exact: true }) diff --git a/packages/app/component-tests/focus-rescue.fixture.tsx b/packages/app/component-tests/focus-rescue.fixture.tsx new file mode 100644 index 00000000000..313cdbd7b9c --- /dev/null +++ b/packages/app/component-tests/focus-rescue.fixture.tsx @@ -0,0 +1,30 @@ +import { installFocusRescue } from "@opencode/ui/context/focus-rescue" + +/** Scopes whose buttons remove themselves when pressed, all but the opener. */ +export function mountFocusRescue() { + const host = document.createElement("div") + host.dataset.testid = "focus-rescue-fixture" + host.innerHTML = ` +
+ + + +
+ +
+ +
+
+
+ + + +
+
+ ` + host.addEventListener("click", (event) => { + if (event.target instanceof HTMLButtonElement && event.target.dataset.testid !== "opener") event.target.remove() + }) + document.body.appendChild(host) + installFocusRescue() +} diff --git a/packages/app/component-tests/focus-rescue.spec.ts b/packages/app/component-tests/focus-rescue.spec.ts new file mode 100644 index 00000000000..3fd89a10d98 --- /dev/null +++ b/packages/app/component-tests/focus-rescue.spec.ts @@ -0,0 +1,44 @@ +import type { Locator } from "@playwright/test" +import { expect, sourceURL, story } from "../../stories/playwright/story" + +const fixture = sourceURL(new URL("./focus-rescue.fixture.tsx", import.meta.url)) + +story.beforeEach(async ({ mount, page }) => { + // Any story loads the app's styles; the fixture mounts its scopes beside it. + await mount("ui-line-comment--editor") + await page.evaluate(async (fixture) => { + const { mountFocusRescue } = await import(fixture) + mountFocusRescue() + }, fixture) +}) + +const ringed = (locator: Locator) => locator.evaluate((element) => element.matches(":focus-visible")) + +story("moves focus to the next item, or to the previous one after the last", async ({ page }) => { + const list = page.getByTestId("list") + + await list.getByRole("button", { name: "Two" }).focus() + await page.keyboard.press("Enter") + await expect(list.getByRole("button", { name: "Three" })).toBeFocused() + expect(await ringed(list.getByRole("button", { name: "Three" }))).toBe(true) + + await page.keyboard.press("Enter") + await expect(list.getByRole("button", { name: "One" })).toBeFocused() +}) + +story("returns focus to what had it before when a scope is left empty", async ({ page }) => { + await page.getByTestId("opener").focus() + await page.getByTestId("toasts").getByRole("button", { name: "Toast" }).focus() + await page.keyboard.press("Enter") + + await expect(page.getByTestId("opener")).toBeFocused() +}) + +story("never moves focus into a tab list", async ({ page }) => { + await page.getByTestId("opener").focus() + await page.getByTestId("strip").getByRole("tab", { name: "Tab B" }).focus() + await page.keyboard.press("Enter") + + // Tab A and Add tab are still there, but a tab list's tabs select themselves on focus. + await expect(page.getByTestId("opener")).toBeFocused() +}) diff --git a/packages/app/component-tests/input-surfaces.spec.ts b/packages/app/component-tests/input-surfaces.spec.ts index 1cce08660c4..eac17f90785 100644 --- a/packages/app/component-tests/input-surfaces.spec.ts +++ b/packages/app/component-tests/input-surfaces.spec.ts @@ -1,5 +1,93 @@ import { expect, story } from "../../stories/playwright/story" +story("active search options keep their system highlight in forced colours", async ({ mount, page }) => { + await page.emulateMedia({ forcedColors: "active" }) + + const root = await mount("review-focus-visibility--all-surfaces", { args: { forced: false } }) + + const highlight = await page.evaluate(() => { + const probe = document.createElement("span") + + probe.style.backgroundColor = "Highlight" + probe.style.color = "HighlightText" + document.body.append(probe) + const style = getComputedStyle(probe) + + const result = { background: style.backgroundColor, color: style.color } + + probe.remove() + + return result + }) + + for (const name of [ + "Palette: active option loses contrast", + "Search list: active option loses contrast", + "Home search results: Shift+Tab reaches", + ]) { + const card = root.locator("figure").filter({ hasText: name }) + + const active = card.locator("[data-active]") + + const input = card.getByRole("combobox") + + await expect(active).toHaveCSS("background-color", highlight.background) + await expect(active.getByText("Active option")).toHaveCSS("color", highlight.color) + await input.press("ArrowDown") + await expect(input).toBeFocused() + await expect(active).toHaveText("Next option") + await expect(active).toHaveCSS("background-color", highlight.background) + } +}) + +story("focus-only outlines stay off at rest in forced colours", async ({ mount, page }) => { + await page.emulateMedia({ forcedColors: "active" }) + + const root = await mount("review-focus-visibility--all-surfaces", { args: { forced: false, locator: false } }) + + const controls = [ + { + card: "Switch: a black ring flashes", + target: '[data-slot="switch-input"]', + ring: '[data-slot="switch-control"]', + hasBorder: true, + }, + { + card: "Radio: forced colours show a ring", + target: '[data-slot="radio-v2-item-input"][value="text"]', + ring: '[data-slot="radio-v2-item"][data-checked] [data-slot="radio-v2-item-control"]', + hasBorder: true, + }, + { + card: "Language: inline select", + target: '[data-component="select-v2"]', + ring: '[data-component="select-v2"]', + hasBorder: false, + }, + ] + + for (const control of controls) { + const card = root.locator("figure").filter({ hasText: control.card }) + + const target = card.locator(control.target) + + const ring = card.locator(control.ring) + + await expect(ring).toHaveCSS("outline-style", "none") + + if (control.hasBorder) await expect(ring).toHaveCSS("border-top-width", "1px") + + await target.press("Shift+Tab") + await page.keyboard.press("Tab") + await expect(target).toBeFocused() + await expect(ring).toHaveCSS("outline-style", "solid") + await expect(ring).toHaveCSS("outline-width", "2px") + await expect(ring).not.toHaveCSS("transition-property", /outline|all/) + await page.keyboard.press("Shift+Tab") + await expect(ring).toHaveCSS("outline-style", "none") + } +}) + for (const control of ["text-input", "textarea"]) { story(`${control} supports its surfaces with inset feedback and stable geometry`, async ({ mount, page }) => { const root = await mount(`ui-${control}--surfaces`) diff --git a/packages/app/e2e/regression/composer.spec.ts b/packages/app/e2e/regression/composer.spec.ts index 4e819b704ae..9b0a93c42ec 100644 --- a/packages/app/e2e/regression/composer.spec.ts +++ b/packages/app/e2e/regression/composer.spec.ts @@ -5,6 +5,43 @@ import { mockPluginsActivating, type MockServerConfig } from "../utils/mock-serv test.use({ permissions: ["clipboard-read", "clipboard-write"] }) +test("the composer preserves its ring on dialog return and leaves autofocus and clicks quiet", async ({ page }) => { + const view = await openSession(page, { name: "ComposerKeyboardFocus" }) + + const frame = page.locator('[data-component="composer"]').filter({ has: view.editor }) + + await expect(view.editor).toBeFocused() + await expect(frame).toHaveCSS("outline-style", "none") + + await page.keyboard.press("Shift+Tab") + await expect(view.editor).not.toBeFocused() + await page.keyboard.press("Tab") + await expect(view.editor).toBeFocused() + await expect(frame).toHaveCSS("outline-style", "solid") + + const modifier = await page.evaluate(() => (/Mac/i.test(navigator.platform) ? "Meta" : "Control")) + + const dialog = page.getByRole("dialog") + + await page.keyboard.press(`${modifier}+Shift+p`) + await expect(dialog.getByRole("combobox")).toBeFocused() + await page.keyboard.press("Escape") + await expect(view.editor).toBeFocused() + await expect(frame).toHaveCSS("outline-style", "solid") + + await view.editor.click() + await expect(view.editor).toBeFocused() + await expect(frame).toHaveCSS("outline-style", "none") + await page.keyboard.type("Still quiet") + await expect(frame).toHaveCSS("outline-style", "none") + await page.keyboard.press(`${modifier}+Shift+p`) + await expect(dialog.getByRole("combobox")).toBeFocused() + await page.mouse.click(20, 200) + await expect(dialog).toBeHidden() + await expect(view.editor).toBeFocused() + await expect(frame).toHaveCSS("outline-style", "none") +}) + test("mention a session by title, send its stable token, and open its own tab", async ({ page }) => { const target = "ses_0123456789abcdefghijklmnop" const prompts: Parameters>[0]["body"][] = [] diff --git a/packages/app/e2e/regression/home.spec.ts b/packages/app/e2e/regression/home.spec.ts index 4967863850c..93cc35b3b34 100644 --- a/packages/app/e2e/regression/home.spec.ts +++ b/packages/app/e2e/regression/home.spec.ts @@ -28,6 +28,76 @@ async function openHome(page: Page, input: Parameters await page.goto("/") } +test("Home projects, utility rows, search and recent sessions show keyboard focus", async ({ page }) => { + const workspace = await mockWorkspace(page, { name: "HomeFocus" }) + + await seed(page, { usedProjects: { local: [workspace.projectID] } }) + await page.goto("/") + + const projects = page.getByRole("complementary", { name: "Projects" }) + + const viewport = page.getByRole("main").getByRole("region", { name: "scrollable content", exact: true }) + + const projectButton = projects.getByRole("button", { name: /HomeFocus/ }) + + const settings = projects.getByRole("button", { name: "Settings", exact: true }) + + const help = projects.getByRole("button", { name: "Help", exact: true }) + + await expect(projectButton).toBeVisible() + await expect(viewport).toHaveAttribute("tabindex", "-1") + await projects.getByRole("button", { name: "Add project", exact: true }).press("Tab") + await expect(projectButton).toBeFocused() + await expect + .poll(() => + projectButton.evaluate((button) => { + const row = button.closest("[data-home-row]") + + return row && getComputedStyle(row, "::after").outlineStyle + }), + ) + .toBe("solid") + + // The two project row actions come before the utility buttons. + await page.keyboard.press("Tab") + await page.keyboard.press("Tab") + await page.keyboard.press("Tab") + await expect(settings).toBeFocused() + await expect(settings).toHaveCSS("outline-style", "solid") + await page.keyboard.press("Tab") + await expect(help).toBeFocused() + await expect(help).toHaveCSS("outline-style", "solid") + + const search = page.getByRole("textbox", { name: "Search sessions", exact: true }) + + const field = page.locator('[data-slot="home-session-search-field"]') + + await page.keyboard.press("Tab") + await expect(search).toBeFocused() + await expect(field).toHaveCSS("outline-style", "solid") + await search.click() + await expect(search).toBeFocused() + await expect(field).toHaveCSS("outline-style", "none") + + const recent = page.getByRole("region", { name: "Recent sessions" }) + + const sessionRow = row(page, "HomeFocus") + + await sessionRow.hover() + await expect(sessionRow).toHaveCSS("outline-style", "none") + await recent.getByRole("button", { name: "New session", exact: true }).press("Tab") + await expect(sessionRow).toBeFocused() + await expect(sessionRow).toHaveCSS("outline-style", "solid") + await expect(sessionRow).toHaveCSS("outline-offset", "-2px") + + await page.setViewportSize({ width: 1280, height: 200 }) + await expect(viewport).toHaveAttribute("tabindex", "0") + await viewport.press("Shift+Tab") + await page.keyboard.press("Tab") + await expect(viewport).toBeFocused() + await expect(viewport).toHaveCSS("outline-offset", "-2px") +}) + test("Home keeps the session list in every interface mode", async ({ page }) => { const earlier = { id: "ses_home_earlier", title: "Finished earlier" } await mockWorkspace(page, { name: "Home", sessions: [earlier] }) @@ -230,6 +300,17 @@ test("tabbing out of session search closes its results, and tabbing back reopens await page.keyboard.press("Shift+Tab") await expect(search).toBeFocused() await expect(panel.getByRole("option")).toContainText(earlier.title) + + // The results are active descendants, not independent Tab stops before the search input. + await search.press("Shift+Tab") + await expect(panel).toHaveCount(0) + + const modifier = await page.evaluate(() => (/Mac/i.test(navigator.platform) ? "Meta" : "Control")) + + await page.keyboard.press(`${modifier}+f`) + await expect(search).toBeFocused() + await expect(page.locator('[data-slot="home-session-search-field"]')).toHaveCSS("outline-style", "solid") + await expect(panel.getByRole("option")).toContainText(earlier.title) }) test("Escape cancels an inline rename whose save does not answer", async ({ page }) => { diff --git a/packages/app/e2e/regression/new-session.spec.ts b/packages/app/e2e/regression/new-session.spec.ts index 8930e77fce1..c4f0d001b94 100644 --- a/packages/app/e2e/regression/new-session.spec.ts +++ b/packages/app/e2e/regression/new-session.spec.ts @@ -33,6 +33,30 @@ const editor = (page: Page) => page.locator('[data-component="composer-editor"]' const submit = (page: Page) => page.locator('[data-action="composer-submit"]') +test("new-session project picker and provider tip show keyboard focus", async ({ page }) => { + await openDraft(page, { name: "DraftFocus", provider: NO_PROVIDER }) + + const projectPicker = newSessionLocation(page) + + const tip = page.locator('[data-component="new-session-tip"]') + + const connect = tip.getByRole("button", { name: /Connect to 75\+ providers/ }) + + const dismiss = tip.getByRole("button", { name: "Dismiss", exact: true }) + + await newSessionWorktree(page).press("Shift+Tab") + await expect(projectPicker).toBeFocused() + await expect(projectPicker).toHaveCSS("outline-style", "solid") + + await expect(connect).toBeVisible() + await dismiss.press("Shift+Tab") + await expect(connect).toBeFocused() + await expect(connect).toHaveCSS("outline-style", "solid") + await page.keyboard.press("Tab") + await expect(dismiss).toBeFocused() + await expect(dismiss).toHaveCSS("outline-style", "solid") +}) + const tabLink = (page: Page, sessionID: string) => page.locator(`[data-titlebar-tab-link][href="${sessionHref(sessionID)}"]`) diff --git a/packages/app/e2e/regression/review.spec.ts b/packages/app/e2e/regression/review.spec.ts index de8333f93c1..b458df8c7f6 100644 --- a/packages/app/e2e/regression/review.spec.ts +++ b/packages/app/e2e/regression/review.spec.ts @@ -37,6 +37,48 @@ test("review toggle shows its tooltip with the side panel open or closed", async await expect(tooltip).toBeVisible() }) +test("review rings stay visible on the mode trigger, file tree, and diff", async ({ page }) => { + await openSession(page, { + name: "ReviewModeFocus", + vcsDiff: [fileDiff("alpha.ts"), fileDiff("beta.ts")], + }) + await page.getByRole("button", { name: "Toggle review", exact: true }).click() + + const panel = page.getByRole("complementary", { name: "Review and files" }) + + await openReviewLauncher(panel) + + const tree = panel.getByRole("button", { name: "Toggle file tree", exact: true }) + + const mode = panel.getByRole("button", { name: "Git changes", exact: true }) + + await expect(mode).toBeVisible() + await tree.press("Tab") + await expect(mode).toBeFocused() + await expect(mode).toHaveCSS("outline-offset", "-2px") + + const alpha = panel.getByRole("treeitem", { name: "alpha.ts", exact: true }) + + const beta = panel.getByRole("treeitem", { name: "beta.ts", exact: true }) + + await alpha.press("ArrowDown") + await expect(beta).toHaveCSS("outline-style", "solid") + await expect(beta).toHaveCSS("outline-offset", "-2px") + + await tree.click() + await expect(tree).toHaveAttribute("aria-expanded", "false") + await tree.press("Tab") + await expect(mode).toBeFocused() + await expect(mode).toHaveCSS("outline-offset", "-2px") + + const diff = panel.locator('[data-component="file"][data-mode="diff"]') + + await diff.press("Shift+Tab") + await page.keyboard.press("Tab") + await expect(diff).toBeFocused() + await expect.poll(() => diff.evaluate((element) => getComputedStyle(element, "::after").outlineOffset)).toBe("-2px") +}) + for (const view of ["desktop", "mobile"] as const) { test(`offers Git initialization for a project without VCS (${view})`, async ({ page }) => { if (view === "mobile") await page.setViewportSize({ width: 390, height: 844 }) diff --git a/packages/app/e2e/regression/session-header.spec.ts b/packages/app/e2e/regression/session-header.spec.ts index 42f91ae01e7..183788bfbad 100644 --- a/packages/app/e2e/regression/session-header.spec.ts +++ b/packages/app/e2e/regression/session-header.spec.ts @@ -43,9 +43,13 @@ for (const direction of ["ltr", "rtl"] as const) { expect(heights).toEqual([28, 28, 28, 28, 28, 28]) + const rename = header.getByRole("heading").getByRole("button", { name: fixture.expected.targetTitle, exact: true }) + for (const editing of [false, true]) { if (editing) { - await header.getByRole("heading").click() + await project.press("Tab") + await expect(rename).toBeFocused() + await page.keyboard.press("Enter") await expect(header.getByRole("textbox")).toHaveValue(fixture.expected.targetTitle) await expect(header.getByRole("textbox")).toBeFocused() } @@ -77,6 +81,13 @@ for (const direction of ["ltr", "rtl"] as const) { await header.getByRole("textbox").press("Escape") await expect(header.getByRole("heading")).toHaveText(fixture.expected.targetTitle) + await expect(rename).toBeFocused() + await page.keyboard.press("Shift+Tab") + await expect(project).toBeFocused() + await details.press("Tab") + await expect(review).toBeFocused() + await page.keyboard.press("Shift+Tab") + await expect(details).toBeFocused() // The header stays one row at every width. for (const width of [900, 1440]) { @@ -254,7 +265,12 @@ test.describe("location", () => { await expect(usageMenu).toBeVisible({ visible: !state.usage }) await expect(header.locator(".session-location-worktree-icon")).toBeVisible() await expect - .poll(() => header.getByRole("heading").evaluate((element) => element.scrollWidth > element.clientWidth)) + .poll(() => + header + .getByRole("heading") + .getByRole("button") + .evaluate((element) => element.scrollWidth > element.clientWidth), + ) .toBe(state.truncated) await expect(header.getByRole("button", { name: "More options", exact: true })).toBeInViewport() await header.getByRole("heading").hover() diff --git a/packages/app/e2e/regression/session-timeline-accessibility.spec.ts b/packages/app/e2e/regression/session-timeline-accessibility.spec.ts index 2375e103b53..f72acb4309f 100644 --- a/packages/app/e2e/regression/session-timeline-accessibility.spec.ts +++ b/packages/app/e2e/regression/session-timeline-accessibility.spec.ts @@ -68,6 +68,14 @@ test("jump to latest is reachable only while it is shown", async ({ page }) => { await expect(latest).toBeInViewport() // The click focused the button; hiding it must not leave focus on an invisible control. await expect(jump).not.toBeFocused() + + // From the keyboard, focus continues in the prompt instead of falling to the page. + await page.mouse.wheel(0, -3000) + await expect(latest).not.toBeInViewport() + await jump.focus() + await page.keyboard.press("Enter") + await expect(latest).toBeInViewport() + await expect(page.getByRole("textbox", { name: "Prompt", exact: true })).toBeFocused() }) function lines(count: number) { diff --git a/packages/app/e2e/regression/settings.spec.ts b/packages/app/e2e/regression/settings.spec.ts index de954e17bd2..4b57e72f236 100644 --- a/packages/app/e2e/regression/settings.spec.ts +++ b/packages/app/e2e/regression/settings.spec.ts @@ -1168,6 +1168,22 @@ test.describe("pages open before slow data", () => { refresh.release() }) + test("extensions keeps the empty MCP panel's keyboard ring inside the tabs", async ({ page }) => { + const { settings } = await open(page) + + await settings.getByRole("tab", { name: "Extensions", exact: true }).click() + + const tab = settings.getByRole("tab", { name: "MCPs", exact: true }) + + const panel = settings.getByRole("tabpanel", { name: "Extensions", exact: true }).getByRole("tabpanel") + + await expect(panel.getByText("Available to all projects")).toBeVisible() + await tab.press("Tab") + await expect(panel).toBeFocused() + await expect(panel).toHaveCSS("outline-style", "solid") + await expect(panel).toHaveCSS("outline-offset", "-2px") + }) + test("extensions", async ({ page }) => { const { settings } = await open(page, { mcp: [{ name: "demo-mcp", status: { status: "connected" } }], @@ -1853,6 +1869,12 @@ test("providers: OpenCode Go connects with its own methods, not the Console sign .click() const dialog = page.getByRole("dialog", { name: "Connect OpenCode Go", exact: true }) await expect(dialog.getByPlaceholder("API key")).toBeVisible() + + const connect = dialog.getByRole("navigation").getByRole("button", { name: "Connect", exact: true }) + + await dialog.getByRole("button", { name: "Close", exact: true }).press("Shift+Tab") + await expect(connect).toBeFocused() + await expect(connect).toHaveCSS("outline-style", "solid") expect(attempts).toEqual([]) }) diff --git a/packages/app/e2e/regression/timeline-geometry.spec.ts b/packages/app/e2e/regression/timeline-geometry.spec.ts index f87b30f755a..f1ae1869225 100644 --- a/packages/app/e2e/regression/timeline-geometry.spec.ts +++ b/packages/app/e2e/regression/timeline-geometry.spec.ts @@ -340,7 +340,7 @@ for (const outline of [ }, ) - // A second turn adds the fixed turn gap, which must not get the paint-rounding margin. + // A second turn adds the fixed turn gap, which must not get the paint margin the other rows keep. await setupTimeline(page, { messages: [ userMessage(undefined, { @@ -376,7 +376,7 @@ for (const outline of [ })), ) - expect(rows.filter((row) => row.tag !== "TurnGap").every((row) => row.clipMargin === "0.5px")).toBe(true) + expect(rows.filter((row) => row.tag !== "TurnGap").every((row) => row.clipMargin === "5px")).toBe(true) expect(rows.filter((row) => row.tag === "TurnGap")).toEqual([{ tag: "TurnGap", clipMargin: "0px" }]) const part = page.locator(`[data-timeline-part-id="${partID}"]`) diff --git a/packages/app/src/app.tsx b/packages/app/src/app.tsx index 78083534acf..5b092c24196 100644 --- a/packages/app/src/app.tsx +++ b/packages/app/src/app.tsx @@ -3,12 +3,21 @@ import { VoiceProvider } from "@/voice/context" import { VoiceOverlay } from "@/voice/composer" import { DialogProvider } from "@opencode/ui/context/dialog" import { FileComponentProvider } from "@opencode/ui/context/file" +import { installFocusRescue } from "@opencode/ui/context/focus-rescue" import { Font } from "@opencode/ui/font" import { ThemeProvider } from "@opencode/ui/theme/context" import { MetaProvider, Title } from "@solidjs/meta" import { type BaseRouterProps, Router } from "@solidjs/router" import { QueryClient, QueryClientProvider } from "@tanstack/solid-query" -import { type Component, createRenderEffect, ErrorBoundary, type JSX, type ParentProps } from "solid-js" +import { + type Component, + createRenderEffect, + ErrorBoundary, + type JSX, + onCleanup, + onMount, + type ParentProps, +} from "solid-js" import { Dynamic } from "solid-js/web" import { CommandProvider } from "@/shell/commands/command" import { DesktopCommands } from "@/shell/commands/desktop" @@ -55,6 +64,8 @@ export function AppBaseProviders( onThemeApplied?: (mode: "light" | "dark", scheme: "system" | "light" | "dark") => void }>, ) { + onMount(() => onCleanup(installFocusRescue())) + return ( OpenCode diff --git a/packages/app/src/components-lab/focus-rings.stories.tsx b/packages/app/src/components-lab/focus-rings.stories.tsx index 2e604d9e0f9..13a4747b1d6 100644 --- a/packages/app/src/components-lab/focus-rings.stories.tsx +++ b/packages/app/src/components-lab/focus-rings.stories.tsx @@ -19,6 +19,7 @@ import { Icon } from "@opencode/ui/icon" import { IconButton } from "@opencode/ui/icon-button" import { InlineInput } from "@opencode/ui/inline-input" import { LineComment, LineCommentOverflowIcon } from "@opencode/ui/line-comment" +import { ProjectAvatar } from "@opencode/ui/project-avatar" import { RadioGroup, RadioItem } from "@opencode/ui/radio" import { SegmentedControl, SegmentedControlItem } from "@opencode/ui/segmented-control" import { Select } from "@opencode/ui/select" @@ -27,7 +28,7 @@ import { Switch } from "@opencode/ui/switch" import { Tabs } from "@opencode/ui/tabs" import { TextInput } from "@opencode/ui/text-input" import { Textarea } from "@opencode/ui/textarea" -import { createEffect, For, onCleanup, type JSX } from "solid-js" +import { createEffect, For, onCleanup, Show, type JSX } from "solid-js" import { focusTarget, forceFocusStyles } from "./force-focus" type Specimen = { @@ -36,9 +37,11 @@ type Specimen = { render: () => JSX.Element // The element that would hold focus. Defaults to the first focusable element in the specimen. target?: string + // What changed to bring it in line with the focus decisions (design review, 18 Nov). + note?: string } -type Group = { name: string; css: string; specimens: Specimen[] } +type Group = { name: string; css: string; note?: string; specimens: Specimen[] } const schemes = ["lab", "light", "dark"] as const @@ -61,8 +64,9 @@ const iconButtonVariants = ["neutral", "contrast", "submit", "ghost", "ghost-mut const groups: Group[] = [ { - name: "Outline 2px, offset 2.5px", - css: "outline: 2px solid var(--v2-border-border-focus); outline-offset: 2.5px", + name: "Outline 2px, offset 2px (default)", + css: "outline: 2px solid var(--v2-border-border-focus); outline-offset: 2px", + note: "The default for every control with room around it. Keyboard and screen reader focus only (:focus-visible), never a mouse click. Offsets were 2.5px, 2px and 1px; 2.5px became 2px, which also stays crisp at 1x.", specimens: [ ...buttonVariants.map((variant) => ({ name: `Button ${variant}`, @@ -74,6 +78,61 @@ const groups: Group[] = [ source: "ui/src/actions/icon-button/icon-button.css", render: () => } aria-label="Add" />, })), + { + name: "Timeline jump to latest", + source: "app/src/session/timeline/virtualizer.tsx", + note: "A Tab stop while it shows, the only quick way back down a long timeline from the keyboard. Its container is inert while it's hidden.", + render: () => ( + + ), + }, + { + name: "Button loading", + source: "ui/src/actions/button/button.css", + note: "Keeps the ring while it keeps focus. aria-busy and its loading text say it is working.", + render: () => , + }, + { + name: "New session project selector", + source: "app/src/new-session/view.tsx", + render: () => ( + + ), + }, + { + name: "Session header project", + source: "app/src/session/session-identity-header.tsx", + note: "Was background only. Keyboard focus now uses the default ring; the background still indicates hover and an open menu.", + render: () => ( + + ), + }, + { + name: "Editable session title", + source: "app/src/session/timeline/message-timeline.tsx", + note: "Was a clickable heading outside the tab order. The heading now contains a native button with the default ring.", + render: () => ( +

+ +

+ ), + }, { name: "Composer lane pill", source: "app/src/session/composer/composer-lane.css", @@ -83,12 +142,115 @@ const groups: Group[] = [ ), }, - ], - }, - { - name: "Outline 2px, offset 2px", - css: "outline: 2px solid var(--v2-border-border-focus); outline-offset: 2px", - specimens: [ + { + name: "Checkbox standard (legacy)", + source: "ui/src/forms/checkbox/checkbox.css", + note: "Was a box-shadow ring (--shadow-xs-border-focus) with a blue border. Now the default outline.", + render: () => Standard checkbox, + }, + { + name: "Switch standard (legacy)", + source: "ui/src/forms/switch/switch.css", + note: "Was a box-shadow ring (--shadow-xs-border-focus) with a blue border. Now the default outline.", + render: () => ( + + Standard switch + + ), + }, + { + name: "Project colour swatch", + source: "app/src/settings/workspaces/project.css", + note: "Was a blue box-shadow ring shared with selection. Focus is now the default outline and selection a neutral ring.", + render: () => ( + + ), + }, + { + name: "Session compaction toggle", + source: "session-ui/src/components/session-compaction.css", + note: "Was 1px in --v2-text-text-accent at a 2px offset.", + render: () => ( +
+ +
+ ), + }, + { + name: "Markdown session link", + source: "session-ui/src/components/markdown.css", + note: "Was 2px currentColor at a 2px offset.", + render: () => ( + + Session link + + ), + }, + { + name: "Prompt link", + source: "session-ui/src/components/message-part.css", + note: "Had no authored rule, so it showed the browser default ring.", + render: () => ( + + ), + }, + { + name: "External link, and anything else without its own rule", + source: "ui/src/styles/base.css", + note: "Showed the browser's ring, in the system accent colour (orange with an orange macOS accent). base.css now makes the shared ring the default for every :focus-visible element, and gives links the 4px radius the other rings have.", + render: () => ( + + Help & feedback + + + ), + }, + { + name: "Collapsible trigger", + source: "ui/src/components/collapsible.css", + note: "Was background only, like a list row, though it is a standalone disclosure (Settings › Timeline › Advanced). Now the default ring, with a 4px radius. The new timeline's tool rows ring their line of text instead (timeline-next.css).", + render: () => ( + + + Advanced + + + Content + + ), + }, + { + name: "Select inline", + source: "ui/src/forms/select/select.css", + note: "Had no ring: inline appearance removes the outline that focus recolours. Now the default outline.", + render: () => undefined} + /> + } + /> + } + /> + + ), + }, { name: "Tab strip: End puts the last tab under the sticky Add tab", failure: "Occluded", @@ -161,6 +869,7 @@ const surfaces: Surface[] = [ sizing: "Side panel 360px wide with 13 tabs open.", source: "app/src/runtime/plugin/side-region.tsx:333 (sticky +), ui tabs.css:605–621 (strip mask), tabs.css:100 (no ring)", + fix: 'Kobalte moved focus without scrolling, so End left the tab where it was. The strip now scrolls a keyboard-focused tab into view (tab-strip-scroll.ts), and its scroll-padding-inline, --tab-strip-add plus the 24px fade (tabs.css), keeps it clear of the "+". The ring covers the whole tab, close button included.', from: { scroller: '[data-slot="tabs-list"]', edge: "start" }, render: () => , }, @@ -171,6 +880,7 @@ const surfaces: Surface[] = [ keys: "From any tab, press Home.", sizing: "Any panel width.", source: "ui/src/navigation/tabs/tabs.css:100–103 (outline: none, box-shadow: none)", + fix: "The tab draws the 2px ring inset (offset -2px) around its label and close button, since the strip scrolls and would clip a ring outside.", from: { scroller: '[data-slot="tabs-list"]', edge: "end" }, render: () => , }, @@ -179,13 +889,108 @@ const surfaces: Surface[] = [ "Review header at a 164px preview: Previous and Next overlap the line buttons, and Split diff is cut off.", "CSV preview at 80px: Copy content overflows the header.", "Line comment More options runs past the panel edge at 360px.", - "Files and Review trees: ArrowDown from the selected file moves focus with no visible change (pierre-tree.tsx:41–42, 84–92).", - "Git changes inline select, and the source and diff viewers: no visible focus (same pattern as the Language select below).", ], }, { name: "Settings", cases: [ + { + name: "Interface layout: selection and focus use the same blue", + failure: "Inconsistent", + target: "input", + keys: "Tab onto the selected Interface layout card.", + sizing: "The card has a separate selected border and an outset focus ring.", + source: "app/src/settings/general/interface-mode.css", + fix: "Selection is a 2px neutral border, a check outside the corner and a faded sketch on the other cards. Blue is only the keyboard ring.", + render: () => , + }, + ...(["Work account", "Add account"] as const).map( + (label): Case => ({ + name: `Connect: ${label} has only a background change`, + failure: "Inconsistent", + target: "button", + keys: "Open a provider with saved accounts in Connect and Tab through the accounts and Add account.", + sizing: "Each button is a separate Tab stop in the scrolling dialog.", + source: "app/src/providers/connect/dialog.tsx", + fix: "Show a shared inset ring, rather than reusing the hover background as the only cue.", + render: () => ( + + ), + }), + ), + { + name: "Extensions tab panel: the ring loses both sides", + failure: "Clipped", + target: '[role="tabpanel"]', + keys: "Open Settings › Extensions › MCPs and Tab from the selected tab onto its panel.", + sizing: "The panel stretches edge to edge inside a clipping tabs root.", + source: "app/src/settings/settings.css (.settings-subtabs)", + fix: "Keep the tab panel reachable, including when it has no interactive content. Draw its ring inset, independently of the rings on its children.", + render: () => ( +
+ + + MCPs + Plugins + + +
+ Available to all projects + Manage in opencode.json +
+
+ Manage plugins +
+
+ ), + }, + { + name: "Connect provider dialog: breadcrumb focus only changes text colour", + failure: "Inconsistent", + target: "nav button", + keys: "Open Connect, choose a provider, then Tab or Shift+Tab to the Connect breadcrumb.", + sizing: "The breadcrumb is a compact text button, not a full-width row.", + source: "app/src/providers/connect/dialog.tsx", + fix: "Both interactive breadcrumbs use the shared outset keyboard ring with a 4px radius. Non-interactive breadcrumb labels remain plain text.", + render: () => ( +
+ +
+ ), + }, + { + name: "Providers: Show more providers draws a full-width square ring", + failure: "Inconsistent", + target: ".settings-providers-view-all", + keys: "In Settings › Providers, Tab from the last Connect button to Show more providers.", + sizing: "The section is a column; by default its children stretch across the panel.", + source: "app/src/settings/settings.css (.settings-providers-view-all)", + fix: "Size the text action to its label, give it a 4px corner radius, and use the shared 2px outset ring.", + render: () => ( +
+

Popular providers

+ + + + + + +
+ ), + }, { name: "Models: Shift+Tab hides the focused switch under the sticky header", failure: "Occluded", @@ -193,35 +998,34 @@ const surfaces: Surface[] = [ keys: "Click the last row's name, then press Shift+Tab until a row scrolls up.", sizing: "Audited at 1280×800 and 390×680. The panel has no scroll padding for its sticky header.", source: "app/src/settings/settings.css:587–611 (.settings-panel, sticky .settings-tab-header)", + fix: "tab-header.ts writes the header's height to --settings-tab-header-height; focusable controls in .settings-tab-body take it, plus the 24px fade, as their top scroll-margin.", from: { scroller: ".settings-panel", edge: "end" }, + render: () => , + }, + { + name: "Extensions: Check for updates and How to add skills cut at the right", + failure: "Clipped", + target: ".settings-extension-link", + keys: "Open Extensions › Skills (or Plugins), press Tab until the link (or Check for updates) is focused.", + sizing: "Any width. Both sit flush with the sub-tab panel's end edge.", + source: + "ui tabs-current.css (tabs-v2 root overflow: clip), settings.css (.settings-subtabs panel overflow: auto), extensions.tsx", + fix: "The tabs root clips with a 5px overflow-clip-margin, and the scrolling sub-tab panel pads its sides by 5px and takes it back with a negative margin, so a ring at either edge shows.", render: () => ( -
-
-
-
-

Models

- - Choose which models appear in the model picker. - +
+ + + Skills + + +
+ Available to all projects + + How to add skills +
-
- undefined} /> -
-
- - - {(name) => ( - -
- - {name} - -
-
- )} -
-
-
+ +
), }, @@ -232,6 +1036,7 @@ const surfaces: Surface[] = [ keys: "Click the path, press Tab.", sizing: "Audited at 1280×800. Delete is the row's top-right control.", source: "app/src/settings/settings.css:1919–27 (row overflow: hidden), workspaces.tsx:543–553", + fix: "The row clips with overflow: clip and a 5px overflow-clip-margin instead of overflow: hidden, so the removal animation still clips and the ring shows.", render: () => (
@@ -267,6 +1072,7 @@ const surfaces: Surface[] = [ keys: "Click the row title, press Tab.", sizing: "Any width. Inline appearance sets outline: none, and focus only recolours that outline.", source: "ui/src/forms/select/select.css:100–103, 193–204", + fix: "Inline Select draws the default ring immediately on keyboard focus, with no outline at rest. A transparent rest outline would show in forced colours. Bordered selects keep their normal field border.", render: () => (
@@ -290,6 +1096,7 @@ const surfaces: Surface[] = [ keys: "Click the row title, press Tab three times.", sizing: "Any width. Focus and selection share one ring.", source: "app/src/settings/workspaces/project.css:328–332", + fix: "Focus is the default outline and selection a neutral ring in --v2-border-border-inverse, so the two read apart.", render: () => (
@@ -321,15 +1128,899 @@ const surfaces: Surface[] = [
), }, + { + name: "Navigation and sub-tabs: square ring on a rounded tab", + failure: "Inconsistent", + target: '[data-slot="tabs-v2-trigger"]', + keys: "Click the page title, press Shift+Tab to the navigation (or Tab to a sub-tab), then the arrow keys.", + sizing: "Any width.", + source: "ui/src/navigation/tabs/tabs-current.css", + fix: "The trigger inside the tab has no radius, so its ring was square. The ring now goes on the tab's wrapper (:has(trigger:focus-visible)), inset 2px, and follows the tab's radius. It also shows only for the keyboard (:focus-visible), not after a click.", + render: () => ( +
+ + + MCPs + Plugins + Skills + + +
+ ), + }, + { + name: "Timeline › Advanced: background only", + failure: "Inconsistent", + target: '[data-slot="collapsible-trigger"]', + keys: "Open Settings › Timeline, Tab to Advanced.", + sizing: "Any width.", + source: "ui/src/components/collapsible.css", + fix: "A standalone disclosure, not a list row, so it takes the default ring (2px offset) with a 4px radius instead of the hover background.", + render: () => ( +
+ + + Advanced + + + Content + +
+ ), + }, + { + name: "Projects: thin square ring inside the row's highlight", + failure: "Inconsistent", + target: ".settings-project-card > button", + keys: "Open Settings › Projects, press Tab to a project row.", + sizing: "Any width.", + source: "app/src/settings/settings.css, settings/workspaces/project-row.tsx", + fix: "The row's inner button drew a 1px inset box-shadow with square corners inside the row's highlight. The ring is now on the whole row (.settings-project-card:has(> button:first-child:focus-visible)), 2px, inset 2px, with its radius. The options button keeps its own ring.", + render: () => ( +
+
+ +
+
+ ), + }, ], also: [ + "Fixed: the sticky header's scroll margin (Models, above) now applies on every Settings page, not just Models (navigation.tsx).", "Section headings and Timeline detail controls lose their bottom stroke at the scrollport edge.", - "The selected Settings navigation tab looks the same focused and blurred.", + "Fixed: the selected Settings navigation tab looked the same focused and blurred. The tab ring above covers it.", ], }, + { + name: "Consolidated navigation and other dev changes", + cases: [ + { + name: "Sidebar actions: New session, Sessions and Settings draw an outset ring", + failure: "Inconsistent", + target: '[data-action="vertical-tabs-home"]', + keys: "With Consolidated navigation, Tab from Toggle sidebar to Sessions.", + sizing: "Full-width 28px rows; the outset ring ran 2px past the row into the sidebar's padding.", + source: "app/src/shell/titlebar/titlebar.tsx (SidebarAction), tab-nav.css", + fix: "[data-titlebar-tab-action] rows draw the shared ring inset (-2px), as the session tabs below them do. That covers the sidebar actions, the recently closed list and project session rows.", + render: () => ( +
+ + {([action, icon, label]) => ( + + )} + +
+ ), + }, + { + name: "Toggle sidebar: the ring loses 1px on the right", + failure: "Clipped", + target: '[aria-label="Toggle sidebar"]', + keys: "Tab from New session to Toggle sidebar in the sidebar header.", + sizing: "The 32px button sits flush with the sidebar's end edge, which clips.", + source: "app/src/shell/sidebar-toggle.tsx", + fix: "The toggle draws the shared ring inset (-2px), wherever it sits.", + render: () => ( +
+ } + /> +
+ ), + }, + { + name: "Recent and Inbox Show more: a full-width button with an outset ring cut at both sides", + failure: "Clipped", + target: '[data-component="button-v2"]', + keys: "Tab past the last Recent row to Show more.", + sizing: "w-full in the sidebar's scroller; the ring reached 4px past each side.", + source: "app/src/shell/titlebar/recent-sessions.tsx, inbox.tsx", + fix: "Show more, Show less and Archived draw the shared ring inset (-2px).", + render: () => ( +
+ +
+ ), + }, + { + name: "Inbox rows and headings: keyboard focus only changes the background", + failure: "Inconsistent", + target: '[data-slot="sidebar-inbox-item"]', + keys: "With the Inbox layout, Tab into the list and move with the arrow keys.", + sizing: "Roving focus: one row is the Tab stop, arrows move between rows.", + source: "app/src/shell/titlebar/inbox.tsx", + fix: "Roving focus shows a ring on the focused row. Rows and section headings take the shared ring inset (-2px); the selected row keeps its pressed background, so selection stays distinct.", + render: () => ( +
+ + +
+ ), + }, + { + name: "Tab groups: the header, colour swatches and menu draw no ring", + failure: "Invisible", + target: "[data-tab-group-header] button", + keys: "With tab groups on, Tab to a group's header, then open its menu and Tab to the colours.", + sizing: "The header fills its row; the swatches sit in a menu; the menu trigger is 20px.", + source: "app/src/shell/titlebar/tab-groups-ui.tsx", + fix: "All three suppressed the outline. The header and its menu trigger take the shared ring inset (-2px); swatches take the default ring, over the selected swatch's neutral ring.", + render: () => ( +
+ + +
+ ), + }, + { + name: "Mobile tabs drawer: New session, Home, Settings and Help only change the background", + failure: "Inconsistent", + target: '[data-action="mobile-tabs-new-session"]', + keys: "Below the mobile breakpoint, open the tabs drawer and Tab past the tabs.", + sizing: "Full-width rows in the drawer.", + source: "app/src/shell/titlebar/titlebar.tsx", + fix: "The rows take the shared ring inset (-2px); hover keeps its background.", + render: () => ( + + ), + }, + { + name: "Model picker and MCP error: rows and Back only change the background", + failure: "Inconsistent", + target: '[data-component="settings-row"]', + keys: "Open the model picker and Tab into the list; or open an MCP's error and Tab to Back.", + sizing: "Full-width catalog rows; a 20px back button in the dialog header.", + source: "app/src/providers/models/select-dialog.tsx, providers/connect/mcp-dialog.tsx", + fix: "Rows that are Tab stops take the shared ring inset (-2px); the arrow-key highlight stays a background. Back takes the default ring.", + render: () => ( +
+ + + +
+ ), + }, + { + name: "Pinned group: keyboard focus only changes the background", + failure: "Inconsistent", + target: '[data-slot="pinned-group-trigger"]', + keys: "With Consolidated navigation, pin sessions into a group, then Tab to the group.", + sizing: "A 28px square in the clipped titlebar row; a full-width row in side tabs.", + source: "app/src/shell/titlebar/pinned-area.tsx, pinned-area.css", + fix: "The group takes the shared ring inset (-2px), like the pinned tabs beside it, and sits above the group's outline so it covers none of the ring.", + render: () => ( +
+ +
+ ), + }, + { + name: "Pinned group menu: Escape drops focus on the page", + failure: "Lost", + target: '[data-slot="pinned-group-trigger"]', + keys: "In top tabs, focus a group and press Shift+F10 or right-click it, then Escape.", + sizing: "The top-tabs menu's only trigger is a hidden span, so Kobalte had nothing to return to.", + source: "app/src/shell/titlebar/pinned-area.tsx", + fix: "The menu records how it opened (createOverlayFocus) and returns focus to the control that opened it: the group, or the ⋯ in side tabs.", + render: () => ( + + ), + }, + { + name: "Recent group heading: keyboard focus only changes the background", + failure: "Inconsistent", + target: "button[aria-expanded]", + keys: "With Recent grouped by date, status or project, Tab to a heading.", + sizing: "A full-width heading in the sidebar's scroller.", + source: "app/src/shell/titlebar/recent-sessions.tsx", + fix: "The heading takes the shared ring inset (-2px).", + render: () => ( +
+ +
+ ), + }, + { + name: "Recent view options: the ring loses its top edge", + failure: "Clipped", + target: '[data-slot="recent-view-trigger"]', + keys: "With nothing pinned, Tab to the options button beside the Recent heading.", + sizing: "A 20px button centred in a 24px heading at the top of the scroller.", + source: "app/src/shell/titlebar/recent-view-menu.tsx", + fix: "The trigger draws the shared ring inset (-2px), inside the scroller's edge.", + render: () => ( +
+ Recent + } + /> +
+ ), + }, + { + name: "Find previous and next: a 1px ring on an outline that is always there", + failure: "Inconsistent", + target: "button", + keys: "Press ⌘F in a session, then Tab from the field to the arrows.", + sizing: "20px buttons inside the compact Find field.", + source: "app/src/session/timeline/search-bar.tsx", + fix: "No outline at rest; the shared ring inset (-2px) with a 4px radius on keyboard focus, as the close button beside them does.", + render: () => ( +
+ + {(label, index) => ( + + )} + +
+ ), + }, + { + name: "Navigation mode: the selected card looks focused", + failure: "Inconsistent", + target: "input", + keys: "In Settings › General with Consolidated on, look at the Tabs and List cards, then Tab onto one.", + sizing: "The selected card had a focus-blue border and a focus-blue inset shadow.", + source: "app/src/settings/general/interface-mode.css", + fix: "As with the layout cards: a 2px neutral border, a check outside the corner and a faded sketch on the other card. Blue is only the keyboard ring.", + render: () => , + }, + { + name: "Home sessions: Shift+Tab hides the row under the sticky date header", + failure: "Occluded", + target: '[data-component="home-session-row"]', + keys: "Scroll Home down, then Shift+Tab up through the sessions.", + sizing: + "The sticky search (68, 84 or 108px) and the 28px date header now stay at the top while the list scrolls.", + source: "app/src/home/sessions/view.css", + fix: "Rows take a top scroll-margin of 100, 116 or 140px, so focus scrolls them clear of both.", + render: () => ( + + ), + }, + ], + also: [ + "Rebased onto origin/dev, which retired the Projects sidebar (sidebar-organized.tsx) and added Consolidated navigation, Home's sticky date headers and Find's previous and next buttons. The Home project scope trigger it added also takes the ring and createOverlayFocus.", + ], + }, + { + name: "Focus after removal", + cases: [ + { + name: "Tab strip: closing a background tab drops focus on the page", + failure: "Lost", + target: '[aria-label="Close Draft"]', + keys: "Tab to a tab's close button and press Enter. Focus moves to the next tab, or the previous one after the last.", + sizing: "Titlebar and sidebar tab strips. The right panel's Kobalte tabs select themselves on focus, so rescue stays out of them.", + source: "ui/src/context/focus-rescue.tsx, app/src/shell/titlebar/tab-strip.tsx", + fix: "Chromium leaves focus on when the focused element goes, with no event. focus-rescue watches what had focus and, inside a [data-focus-scope], moves it to the next item, or the previous one after the last. The tab strips, the sidebar, the titlebar and the right panel are scopes.", + render: () => , + }, + { + name: "Settings rows: deleting a row from its confirm dialog drops focus", + failure: "Lost", + target: '[data-component="settings-row"]:nth-child(2) [data-component="button-v2"]', + keys: "Tab to a row's Delete, press Enter, then confirm. Focus moves to the next row's Delete.", + sizing: + "Worktrees, providers, servers and every SettingsList. The dialog returns focus to the row before the row goes.", + source: "ui/src/context/focus-rescue.tsx, app/src/settings/list.tsx, ui/src/context/dialog.tsx", + fix: "SettingsList and the settings screen are scopes. When the dialog's opener is gone, focus moves from where that row was.", + render: () => , + }, + { + name: "Row menu: removing a row from its own menu drops focus", + failure: "Lost", + target: '[aria-label="More for Website"]', + keys: "Tab to a row's ⋯, press Enter, then choose Remove. Focus moves to the next row's ⋯.", + sizing: "Home projects and sessions, servers, sidebar rows, line comments and queued messages.", + source: "ui/src/context/focus-rescue.tsx, ui/src/navigation/menu/menu.tsx", + fix: "The menu returns focus to its trigger, which went with the row. Focus rescue walks back past the menu's items to that trigger and moves focus from where its row was.", + render: () => , + }, + { + name: "Composer chips: removing the last chip drops focus", + failure: "Lost", + target: '[aria-label="Remove notes.md"]', + keys: "Tab to a chip's remove button and press Enter. Focus moves to the next chip, and to the prompt after the last.", + sizing: "Attachments, context files, comments and quotes above the prompt; the queue and the docks below it.", + source: + "ui/src/context/focus-rescue.tsx, app/src/composer/editor/editor.tsx, session/composer/session-composer-region.tsx", + fix: "The chip row is a scope inside the composer dock's scope. With no chip left, focus widens to the dock and takes the next control after the row: the prompt.", + render: () => , + }, + { + name: "Toasts: dismissing the only toast drops focus", + failure: "Lost", + target: '[aria-label="Dismiss"]', + keys: "Press Show toast, Tab to the toast's Dismiss and press Enter. Focus returns to Show toast.", + sizing: "Any toast with an action or dismiss button.", + source: "ui/src/context/focus-rescue.tsx, ui/src/feedback/toast/toast.tsx", + fix: "The toast region is a scope. Dismissing a toast moves focus to the next toast; when none is left, focus goes back to what had it before.", + render: () => , + }, + { + name: "Inline rename: Enter ends the edit and drops focus", + failure: "Lost", + target: '[contenteditable="true"]', + keys: "Edit the title, then press Enter. Focus returns to the tab.", + sizing: "Titlebar tab titles, terminal tabs.", + source: "ui/src/context/focus-rescue.tsx, app/src/shell/titlebar/tab-nav.tsx", + fix: "A field that stops being editable stays in place. Focus moves to the control around it, here the tab link.", + render: () => , + }, + { + name: "Reset: the button disables itself and drops focus", + failure: "Lost", + target: '[data-action="reset"]', + keys: "Tab to Reset and press Enter. Focus moves to the next control.", + sizing: "Settings › Shortcuts Reset, and any button disabled by its own action.", + source: "ui/src/context/focus-rescue.tsx, app/src/settings/keybinds/keybinds.tsx", + fix: "A focused control that becomes disabled counts as gone. Focus moves to the next control in its scope.", + render: () => , + }, + ], + also: [ + "The same rule covers: Home sessions and projects, the sidebar's Inbox, Recent and pinned rows, the queue, the question and permission docks, banners above the composer, line comments, the review panel, the timeline's message menus, Show more buttons, and inline confirms in dialogs.", + "An item inside an overlay (a menu item, a dialog button) leaves its overlay to return focus. Focus rescue steps in only when the overlay's opener is gone too, from where that opener was.", + ], + }, + { + name: "Overlay focus return", + cases: [ + { + name: "Select: Escape after a click rings the trigger", + failure: "Inconsistent", + target: '[data-component="select-v2"]', + keys: "Click the select, press Escape: no ring. Tab to it, press ArrowDown, then Escape or Enter: the ring returns.", + sizing: + "Any select. Kobalte returns focus with a plain focus(), and Chromium rings it because Escape is a key press.", + source: "ui/src/forms/select/select.tsx, ui/src/context/overlay-focus.tsx", + fix: "The wrapper records how the list opened (createOverlayFocus) and restores the trigger with that ring: none after a pointer open, the ring after a keyboard open, however it closed.", + render: () => ( + { + if (event.key !== "ArrowDown" && event.key !== "ArrowUp") return + + event.preventDefault() + setActive((index) => 1 - index) + }} + /> +
+ + {(label, index) => ( + + )} + +
+
+ ) +} + +function TreeFocusExample() { + return ( +
{ + const root = host.attachShadow({ mode: "open" }) + + const style = document.createElement("style") + + style.textContent = ` + ${treeFocusCss} + ${treeFocusCss.replaceAll(":focus-visible", "[data-lab-focus]")} + button { display: block; width: 100%; height: 28px; border: 0; border-radius: 4px; + background: transparent; color: inherit; text-align: start; padding-inline: 8px; font: inherit; } + button[aria-selected="true"] { background: var(--v2-overlay-simple-overlay-pressed); } + ` + root.append(style) + + const rows = ["README.md", "index.ts"].map((name, index) => { + const row = document.createElement("button") + + row.dataset.type = "item" + row.dataset.itemFocused = String(index === 0) + row.setAttribute("role", "treeitem") + row.setAttribute("aria-selected", String(index === 0)) + row.tabIndex = -1 + row.textContent = name + root.append(row) + + return row + }) + + host.onkeydown = (event) => { + if (event.key !== "ArrowDown" && event.key !== "ArrowUp") return + + event.preventDefault() + rows.forEach((row, index) => (row.dataset.itemFocused = String(index === (event.key === "ArrowUp" ? 0 : 1)))) + } + }} + /> + ) +} + +function HomeSearchFocusExample(props: { forced: boolean }) { + const focus = createPreviewFieldFocus(() => props.forced) + + return ( +
+ + +
+ ) +} + +function ComposerFocusExample(props: { forced: boolean }) { + const focus = createPreviewFieldFocus(() => props.forced) + + return ( +
+ +
+
+
focus.enter(event.currentTarget)} + onBlur={focus.leave} + > + Ask anything +
+
+
+ } aria-label="Attach" /> +
+
+
+ ) +} + +// The Models page, with its header measured the way Settings measures it. +function ModelsPanel() { + let panel: HTMLDivElement | undefined + + onMount(() => { + const header = panel?.querySelector(".settings-tab-header") + + if (panel && header) onCleanup(trackTabHeader(panel, header)) + }) + + return ( +
+
+
+
+

Models

+ Choose which models appear in the model picker. +
+
+ undefined} /> +
+
+ + + {(name) => ( + +
+ + {name} + +
+
+ )} +
+
+
+
+ ) +} + function TabStrip() { return (
+ {/* The panel actions slot, here only the space side-region.tsx keeps for the panel toggle. */} +
+
+
@@ -580,3 +2507,289 @@ export default { } export const AllSurfaces = { render: (args: VisibilityArgs) => } + +// The popover wiring the Home project picker and the composer pills share. +function OverlayPopover(props: { component: string; label: string; width?: string }) { + const overlayFocus = createOverlayFocus() + + let trigger: HTMLButtonElement | undefined + + return ( + + + {props.label} + + + + overlayFocus.restore(event, trigger)} + > + Popover content + + + + ) +} + +function RemovalTabs() { + const [tabs, setTabs] = createSignal(["Refactor store", "Draft", "Fix tests", "Release notes"]) + + return ( +
+
+ + {(tab) => ( +
+ event.preventDefault()}> + {tab} + + } + aria-label={`Close ${tab}`} + onClick={() => setTabs((list) => list.filter((item) => item !== tab))} + /> +
+ )} +
+
+ +
+ ) +} + +function RemovalSettingsRows() { + const dialog = useDialog() + + const initial = ["main", "focus-rings", "session-store"] + + const [rows, setRows] = createSignal(initial) + + const confirm = (name: string) => + dialog.show(() => ( + + + Delete {name}? + + The worktree and its changes are removed. + + + + + + )) + + return ( +
+ + + {(name) => ( + + + + )} + + + +
+ ) +} + +function RemovalChips() { + const initial = ["notes.md", "store.ts", "plan.md"] + + const [chips, setChips] = createSignal(initial) + + return ( +
+
+ + {(chip) => ( + + {chip} + } + aria-label={`Remove ${chip}`} + onClick={() => setChips((list) => list.filter((item) => item !== chip))} + /> + + )} + +
+