mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-23 16:42:19 +00:00
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.
15 lines
531 B
TypeScript
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);
|
|
}
|