mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-20 23:20:46 +00:00
* perf: cut UI jank from stringify equality, scan coalesce, and debug storage Replace connection-log terminalData map JSON.stringify equality with cheap structural compare, coalesce output-trigger scans via rAF (setTimeout fallback), route terminal diagnostics and SFTP transfer center reads through localStorageAdapter, and extract shared FNV-1a helpers for harness hashing. Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com> * perf(ai): ignore sibling session updatedAt in visible panel memo Scoped aiSessionIdSetEqual so history chrome only compares updatedAt for the panel's exact scope (and selected resume). Sibling stream ticks no longer invalidate unrelated visible AI panels while the full session list remains available for fuzzy history ranking. Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com> * chore: safe dead-code cleanup without behavior changes Disable plugin WebContentsView spellcheck, drop unused SFTP/i18n/shim dead code, centralize side-panel position and auto-update storage keys, and stop plumbing unused accent props into Terminal panes. Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com> * perf: virtualize known hosts/snippets lists and consolidate formatBytes Replace KnownHosts RENDER_LIMIT=100 and large Snippets grids with VirtualizedHostCollection (>=30), using drop indicators instead of live grid reorder so drag sources can unmount safely. Centralize byte formatting in domain/formatBytes with options that preserve each call site's zero/precision/TB behavior. Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com> * chore(i18n): drop unused knownHosts showingLimited strings Virtualized Known Hosts no longer caps the visible list, so the showingLimited copy was dead across locales. Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com> * fix: keep editor-close hotkey ref fresh during render Assign handleRequestCloseEditorTabRef in render instead of useEffect so Cmd/Ctrl+W never hits the App stub before the effect runs. Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com> * fix: address Codex feedback on output triggers and AI history memo - Keep output-trigger scan on setTimeout so hidden/minimized renderers still flush - Compare sibling workspace updatedAt in scoped AI panel equality for history sort, while still ignoring unrelated terminal stream ticks Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com> * fix: keep snippet virtualizer on the same column policy VirtualizedHostCollection now accepts getColumnCount so snippets can mirror the non-virtual CSS grid (max 3 full-width columns; card-width sizing in split view) instead of the host 4-column layout. Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com> * fix: stabilize known-host columns and clear snippet drag on drop Virtualized known hosts now use the same 2/sm3/xl4 column breakpoints as the CSS grid. Snippet reorder drops reset drag ids in finally so virtualized unmount mid-drag cannot leave a stale draggingSnippetId. Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com> * fix: import known-hosts grid column helper The virtualizer getColumnCount call referenced getKnownHostsGridColumnCount without importing it. Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com> * fix: drive vault grids from container width, not viewport Known hosts and snippets non-virtual grids now use the same container-width column helpers as the virtualizer, so crossing the virtualization threshold no longer reflows when Vault sidebars shrink content relative to the viewport. Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com> * fix: finish container-based snippet package grid styling Apply the shared CSS-var column style to the package grid as well so no viewport Tailwind breakpoints remain in SnippetsManager. Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com> * fix: reset vault reorder drag state on every drop useVaultItemReorder.handleDropCapture now clears dragging ids in finally so virtualized known-host cards that unmount mid-drag cannot leave a stale source id after drops on padding or empty cells. Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com> * fix: measure vault grid columns from content width Non-virtual known-hosts/snippets ResizeObservers now subtract scroll container padding via getElementContentWidth, matching VirtualizedHostCollection's child-root measure so the 30-item threshold no longer flips columns near breakpoint edges. Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com> * fix: make virtualized known hosts keyboard-focusable HostItem cards now set data-vault-focus-target and tabIndex so VirtualizedHostCollection arrow/Home/End navigation can focus them. Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com> * test: restore known-hosts column policy assertions Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com> * fix(known-hosts): make virtualized grid cards keyboard-focusable Grid HostItem roots now set data-vault-focus-target + tabIndex like list mode so VirtualizedHostCollection arrow-key focus works at 30+ hosts. Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com>