mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-16 20:11:08 +00:00
* perf(terminal): smooth layout drags and faster tab switching Defer xterm refit during split, sidebar, and host-tree drags while keeping pane containers in sync with live layout measurements. Refactor TerminalLayer into focused sections with TabBridge/memo optimizations and add the terminal host tree sidebar. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(terminal): keep side panels alive and guard session attach races Prevent terminal boot unmount from leaking backend sessions, keep SFTP/scripts/theme/AI state when switching side tabs, and defer heavy SFTP UI mount so first entry stays responsive. Co-authored-by: Cursor <cursoragent@cursor.com> * perf(terminal): reduce tab switch jank --------- Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
691 B
TypeScript
17 lines
691 B
TypeScript
import assert from 'node:assert/strict';
|
|
import test from 'node:test';
|
|
|
|
import { terminalLayoutSuppressStore } from './terminalLayoutSuppressStore';
|
|
|
|
test('terminalLayoutSuppressStore tracks nested begin/end', () => {
|
|
assert.equal(terminalLayoutSuppressStore.getActive(), false);
|
|
terminalLayoutSuppressStore.begin();
|
|
assert.equal(terminalLayoutSuppressStore.getActive(), true);
|
|
terminalLayoutSuppressStore.begin();
|
|
assert.equal(terminalLayoutSuppressStore.getActive(), true);
|
|
terminalLayoutSuppressStore.end();
|
|
assert.equal(terminalLayoutSuppressStore.getActive(), true);
|
|
terminalLayoutSuppressStore.end();
|
|
assert.equal(terminalLayoutSuppressStore.getActive(), false);
|
|
});
|