Files
Netcatty/domain/topTabsSessionsEqual.ts
T
bincxz f4ecb6d1a1 perf(app): isolate App shell domains, TopTabs titles, AI contexts, Vault history
Split the main-window mega bag into domain-scoped AppView slices so Vault,
terminal, chrome, dialogs, and mounts only re-render when their slice identity
changes. Drive tab titles/coding-CLI icons through sessionPresentationStore
(store-only live updates + orphan map overlay), retain presentation-stable
sessions for domain memos, stabilize AI panel context Maps with structural
equal/retain, and keep shell history on shellHistoryStore so Vault host lists
ignore history-only churn.
2026-07-30 17:28:16 +08:00

15 lines
531 B
TypeScript

import { terminalPaneSessionsEqual } from './terminalPaneSessionsEqual';
import type { TerminalSession } from './models';
/**
* TopTabs session list equality: structural pane-critical fields only.
* Presentation (dynamicTitle / codingCliProviderId) is merged from
* sessionPresentationStore inside TopTabsInner.
*/
export function topTabsSessionsEqual(
prev: readonly TerminalSession[] | null | undefined,
next: readonly TerminalSession[] | null | undefined,
): boolean {
return terminalPaneSessionsEqual(prev, next);
}