Skip to content

The agent that grows with you

fmt(js): `npm run fix` on merge (#89580)

hermes-seaeye[bot]2163f7f8ca82
diff --git a/apps/desktop/src/app/contrib/controller.tsx b/apps/desktop/src/app/contrib/controller.tsx
index 36cb6462ed5..c48ef1e33a0 100644
--- a/apps/desktop/src/app/contrib/controller.tsx
+++ b/apps/desktop/src/app/contrib/controller.tsx
@@ -692,6 +692,7 @@ registry.register(
const hideOnlyPanes = registry
.getArea('panes')
.filter(c => (c.data as { hideOnly?: boolean } | undefined)?.hideOnly)
+
const wanted = new Set(hideOnlyPanes.map(c => c.id))
for (const [paneId, dispose] of stripTabToggles) {
diff --git a/apps/desktop/src/components/pane-shell/tree/hide-only-strip-tabs.test.ts b/apps/desktop/src/components/pane-shell/tree/hide-only-strip-tabs.test.ts
index 048f67f95b9..309985706d5 100644
--- a/apps/desktop/src/components/pane-shell/tree/hide-only-strip-tabs.test.ts
+++ b/apps/desktop/src/components/pane-shell/tree/hide-only-strip-tabs.test.ts
@@ -106,9 +106,7 @@ describe('hide-only strip tabs', () => {
registerPane('sessions', { placement: 'left', hideOnly: true })
registerPane('hermes-bots:pane', { placement: 'left', hideOnly: true })
registerPane('session-tile:x', { placement: 'main' })
- $layoutTree.set(
- group(['sessions', 'hermes-bots:pane', 'session-tile:x'], { active: 'sessions', id: 'g-mixed' })
- )
+ $layoutTree.set(group(['sessions', 'hermes-bots:pane', 'session-tile:x'], { active: 'sessions', id: 'g-mixed' }))
expect(isHideOnlyPane('sessions')).toBe(true)
// Close-others measured from the tile must not sweep standing chrome.
diff --git a/apps/desktop/src/components/pane-shell/tree/renderer/tree-group.tsx b/apps/desktop/src/components/pane-shell/tree/renderer/tree-group.tsx
index 28967fd8025..481dfd02e5d 100644
--- a/apps/desktop/src/components/pane-shell/tree/renderer/tree-group.tsx
+++ b/apps/desktop/src/components/pane-shell/tree/renderer/tree-group.tsx
@@ -336,8 +336,7 @@ export function TreeGroup({
// close gesture: its tabs are shown/hidden (zone menu, ⌘K), never closed —
// an accidental ✕ on standing chrome removed Bot Mode until the next launch.
const closeableTab = (paneId: string) =>
- !paneChrome(paneFor(paneId)).hideOnly &&
- (!paneChrome(paneFor(paneId)).uncloseable || panesWithCloser.has(paneId))
+ !paneChrome(paneFor(paneId)).hideOnly && (!paneChrome(paneFor(paneId)).uncloseable || panesWithCloser.has(paneId))
// A pane's own live label when it has one, else its registered string.
const tabLabel = (paneId: string) => paneChrome(paneFor(paneId)).tabTitle?.() ?? paneFor(paneId)?.title ?? paneId
diff --git a/apps/desktop/src/components/pane-shell/tree/store.ts b/apps/desktop/src/components/pane-shell/tree/store.ts
index f1e98f9cdba..f1d4f35e974 100644
--- a/apps/desktop/src/components/pane-shell/tree/store.ts
+++ b/apps/desktop/src/components/pane-shell/tree/store.ts
@@ -1903,11 +1903,13 @@ export function resetLayoutTree() {
// placement back to the app (user-placed pins cleared).
saveDismissed(new Set())
saveUserPlaced(new Set())
+
// Hide-only chrome tabs (sessions / Bots) come back too — clear their
// persisted hides through the setter so $hiddenTreePanes agrees.
for (const paneId of [...$hiddenStripTabs.get()]) {
setStripTabHidden(paneId, false)
}
+
$layoutTree.set(defaultTree)
markActivePreset('default')
// Owners PRE-PLACE their panes into the fresh default (session tiles stack
diff --git a/apps/desktop/src/i18n/ar.ts b/apps/desktop/src/i18n/ar.ts
index 44413962dbd..075865128a3 100644
--- a/apps/desktop/src/i18n/ar.ts
+++ b/apps/desktop/src/i18n/ar.ts
@@ -2330,7 +2330,8 @@ export const ar = defineLocale({
showStripTab: title => `إظهار ${title}`,
hideStripTab: title => `إخفاء ${title}`,
lastTabKeptTitle: 'يبقى آخر تبويب',
- lastTabKeptBody: 'تحتاج هذه المنطقة إلى تبويب مرئي واحد على الأقل. أظهر تبويبا آخر أولا، أو اطو الشريط الجانبي بأكمله.',
+ lastTabKeptBody:
+ 'تحتاج هذه المنطقة إلى تبويب مرئي واحد على الأقل. أظهر تبويبا آخر أولا، أو اطو الشريط الجانبي بأكمله.',
toggleStripTab: title => `تبديل تبويب ${title}`,
minimize: 'تصغير',
restore: 'استعادة',
diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.ts
index eb1456722e6..e54902a919b 100644
--- a/apps/desktop/src/i18n/ja.ts
+++ b/apps/desktop/src/i18n/ja.ts
@@ -2621,7 +2621,8 @@ export const ja = defineLocale({
showStripTab: title => `${title} を表示`,
hideStripTab: title => `${title} を隠す`,
lastTabKeptTitle: '最後のタブは残ります',
- lastTabKeptBody: 'このゾーンには少なくとも 1 つの表示タブが必要です。先に別のタブを表示するか、サイドバー全体を折りたたんでください。',
+ lastTabKeptBody:
+ 'このゾーンには少なくとも 1 つの表示タブが必要です。先に別のタブを表示するか、サイドバー全体を折りたたんでください。',
toggleStripTab: title => `${title} タブを切り替え`,
minimize: '最小化',
restore: '復元',