陈大猫
3998add458
perf(memory): Phase 3 deep business-code memory optimization across main, renderer, and active terminals
...
Completes exhaustive business-code memory optimization stacked on Phase 1-2 (#4476 ),
reaching the business-code floor before Electron-level optimization:
Round 1 - Renderer Cold Start & Preload Minification:
- Enable esbuild minification in scripts/build-preload.mjs (368 KB -> 103 KB, -72%)
- Remove eager requestIdleCallback TerminalLayer mount in AppMounts.tsx
- Add compact capability lookup maps to toolNameIndex.json so permissionGrants drops
static cattyToolSpecs.json (126 KB) from startup
- Lazy-load pinyin-pro (447 KB) on first CJK text via usePinyinMatcherVersion hook
(synchronous createRequire in Node/test mode, zero top-level await)
Round 2 & 3 - Main Process & terminalWorker Zero-Dead-Weight Startup:
- Lazy-load all third-party npm packages on startup (0 npm packages loaded at boot;
require.cache 657 -> 234 modules, -64.4%; main heapTotal 54 -> 23.3 MiB):
ajv/ajv-formats/plugin-contract schema, electron-updater, jsqr, ws, webmDurationPatch,
terminalPerformanceDiagnostics, ssh2, ssh2-sftp-client, iconv-lite, zmodem.js,
node-pty/serialport (Electron-gated so Node Module._load mocks stay 100% intact),
11 AI SDK drivers, CodexAppServerRuntime, codebuddy, aiPrivacyService, re2js,
external MCP setup, 17 capability modules, and 7 systemManager/*Ops modules
- Clean up windowManager readiness/unhealthy maps on BrowserWindow closed
Round 4 - Renderer Startup Bundle Decomposition:
- Lazy-load HostDetailsPanel (134 KB), GroupDetailsPanel (29 KB), KnownHostsManager,
QuickConnectWizard, SerialConnectModal, Serial/LocalHostDetailsPanel,
ImportVaultDialog, VaultImportProgressPanel, domain/vaultImport (55 KB),
TerminalHostTreeSidebar (35 KB), ToolCall (26 KB), vaultAgentBridgeClient (47 KB)
- Tree-shake package.json in cloudSync (-32 KB from useUpdateCheck)
- Main App-*.js chunk: 1,550 KB -> 714.6 KB (-53.9%)
Round 5 - Active Multi-Terminal Memory Optimization:
- Remove unconditional requestIdleCallback preload of AIChatSidePanel (~1.5 MB JS /
vendor-ai + globalAgentRuntime + tool specs) in TerminalLayerSupport.tsx
- Remove eager 67-spec Fig autocomplete preloading (1.25 MB raw JS imported into
main-process ESM cache + renderer specCache) in useTerminalAutocomplete.ts; specs
load on demand via completionEngine.ts loadSpec()
Verified Clean-VM Benchmarks (0-host idle, 3x median, vs Blank Electron 97.6 MiB PrivDirty):
- Total Private Dirty RAM: 324.8 -> 234.6 (Phase 1-2) -> 184.2 MiB (-43.3%, 61.9% of
all Netcatty overhead above Blank Electron eliminated)
- Renderer v8/main/heap: 24.84 -> 9.35 MiB (-62.4%); jsHeapUsedMB: 35.98 -> 12.76 MiB
(only +3.22 MiB above about:blank)
- Active 5 local terminals + 1,000-line ANSI burst: Peak PrivDirty -25.6 MiB
(395.9 -> 370.3 MiB), main PrivDirty -11.3 MiB, renderer PrivDirty -14.2 MiB,
zero xterm/canvas/listener/per-session heap leaks across 2x5 open/close cycles
2026-11-27 10:04:36 +00:00
陈大猫
07f721ba2a
perf(plugins): accelerate plugin startup, view updates, and image loading pipeline ( #4462 )
2026-11-26 23:42:04 +08:00
陈大猫
50b553a1b4
fix(plugins): restore NETCATTY_PLUGIN_DEV gate and harden plugin platform capabilities ( #4461 )
2026-11-26 23:26:18 +08:00
陈大猫
f4a087e890
feat(plugins): add host-rendered IDE primitives, STARTTLS/SSH bindings, file/secret APIs, and pooled image rasterizer ( #4437 )
...
- Add host-rendered native IDE primitives (PluginCodeEditor/Monaco, PluginDataGrid/@tanstack/react-virtual, PluginSplitPane, PluginErCanvas) with Shadow DOM slot projection (zero iframes, zero plugin JS in renderer)
- Expand Remote DOM budgets, expose full 22 Netcatty semantic CSS tokens, add dblclick/contextmenu/scroll/selection events, cursor-anchored PluginPopover, database theme icon, and full-bleed chrome flag
- Add dynamic user-approved TCP/TLS byte streams (incl. localhost opt-in blocking internal control ports), in-band STARTTLS upgrade with cert fingerprint confirmation, durable revocable Vault SSH host bindings, plugin-owned encrypted secrets, native ui.openFile/saveFile streaming handles, 4 MiB clipboard, and prefix-filtered storage.keys
- Optimize plugin view image pipeline with pooled sandboxed rasterizer window (auto-destroyed on idle/error/dispose), LRU version+hash cache in PluginViewResources, transient failure eviction in HostDrawnViewHost, renderer-side session deduplication, and RemoteImageElement cache + retry
- Temporarily enable plugin host by default in hostBootstrap.cjs (marked TODO(revert), opt-out via NETCATTY_PLUGIN_DEV=0)
2026-11-26 17:52:27 +08:00
陈大猫
8930270820
perf(plugins): arm TerminalSelectionAuthority expiry timer lazily only while handles or dialogs are active ( #4399 )
2026-11-25 22:03:23 +08:00
陈大猫
9a2d6ef7bf
test: remove 2 dead test helpers and 3 obsolete/superseded plugin UI PoC tests ( #4384 )
2026-11-25 21:40:06 +08:00
陈大猫
27a6f2e7a6
test: remove 3 legacy barrel test files duplicating 366 CI test executions ( #4381 )
2026-11-25 21:39:59 +08:00
陈大猫
d4a39ad2c6
feat(plugins): add bounded SSH host byte streams (network.hostStream) ( #4297 )
...
* feat(plugins): add bounded SSH host byte streams (network.hostStream)
* fix(plugins): route plugin-stream SSH host-key verification and cancel on abort
2026-11-23 18:42:03 +08:00
陈大猫
ad3d0cfeda
refactor: streamline codebase, unify duplicated modules, and consolidate test suite ( #4307 )
...
* refactor: streamline codebase, unify duplicated modules, and consolidate tests
* fix(test): batch discovered test files into Windows-safe command lines
2026-11-23 11:00:14 +08:00
陈大猫
13eb477ba5
fix(plugins): keep disabled-runtime host-ready and terminal-target IPC channels quiet ( #4306 )
2026-11-22 17:33:03 +08:00
陈大猫
5b9d5351d7
fix(release): hide the plugin platform by default
2026-11-21 10:31:43 +08:00
陈大猫
968e84ff59
feat(plugins): install published plugin packages from GitHub ( #4164 )
...
* feat(plugins): install published plugin packages from GitHub
* fix(plugins): prebundle GitHub parser and reset consumed preview trust
* fix(plugins): localize GitHub install errors and trust review
2026-11-07 07:10:08 +08:00
陈大猫 and Claude Opus 5.5
a8bb5a43fc
perf(main): stop blocking the first window on validator compilation ( #4115 )
...
The main process ran ~1.4 s of synchronous work in registerBridges before the
main window could start loading (app:// assets are served from the main
thread too), even for users without plugins:
- contractValidator: every createDefinitionValidator() built a fresh Ajv
instance and re-registered the 200 KB plugin contract (~17 ms each, ~90 of
them across the plugin host at startup, plus one per plugin view resource
request). Share one Ajv per process, compile each definition on first use
and memoize it; each validator still exposes its own `.errors`.
- distributionSnapshot: compile the three distribution schemas lazily on the
shared contract Ajv instead of a second Ajv at module load (273 ms -> 37 ms).
- pluginBridge: hoist the PluginViewResourceRequest validator to module scope.
- cloudSyncBridge: load webdav / @aws-sdk/client-s3 / @smithy/node-http-handler
on first sync instead of at startup (108 ms -> 4 ms).
- app:// scheme: enable codeCache so V8 reuses compiled renderer bundles
across launches and windows. A same-length in-place edit of the cached entry
chunk runs the new code, so stale cache is not reused after upgrades.
Startup harness (2000 hosts, 10 runs, warm p50): registerBridges 1421 ->
116 ms, plugin host 871 -> 30 ms, renderer ready 2147 -> 723 ms, total memory
923 -> 823 MB.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-04 02:33:16 -08:00
陈大猫
d5a03606b7
feat: rebuild plugin UI with host rendering and standard settings ( #4053 )
...
* feat: rebuild plugin pages with host rendering and native settings
* fix(plugins): contain host-view errors, isolate editing, and migrate fixtures
* fix(plugins): migrate remaining permission fixture hosts
2026-10-28 23:08:31 -07:00
陈大猫 and Cursor
f0483488e1
feat(plugins): polish manager metadata and support verified README images ( #4043 )
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-28 16:32:41 +08:00
陈奇
672a2bf406
merge: integrate verified plugin foundation into global Agent
2026-10-27 14:56:42 +00:00
陈奇
f5e2a64dfb
fix(plugins): retain exact sample chat lease across modal reopen
2026-10-27 13:39:03 +00:00
陈奇
50fda91424
fix(plugins): invalidate author identity after rejected install refresh
...
Reuse the selection-token snapshot comparison for list and install, including a rejected stale or withdrawn selection. Preserve synchronous unavailable-source validation before the asynchronous list operation. The loaded-row regression rejects installation without downloading or executing a package.
2026-10-27 12:32:48 +00:00
陈奇
fc37ac48e1
Merge actual two-profile sync composition coverage into plugin foundation landing
2026-10-27 12:29:25 +00:00
陈奇
d035cbea38
Merge honest directory enumeration availability into plugin foundation landing
2026-10-27 12:29:25 +00:00
陈奇
14ed19d2ed
test(plugins): compose two-profile settings sidecar collect and hydration
2026-10-27 12:23:21 +00:00
陈奇
a36a906292
fix(plugins): negotiate directory enumeration only with a secure adapter
2026-10-27 12:23:20 +00:00
陈奇
b14b65679f
fix(plugins): invalidate mounted author identity on catalog changes
2026-10-27 12:18:27 +00:00
陈奇
cbe89995e6
fix(plugins): identify host operation and targets in Ask dialog
2026-10-27 12:02:41 +00:00
陈奇
0c05a96fa1
fix(plugins): align avatar delivery with registry v2 contract
2026-10-27 11:48:35 +00:00
陈奇
da16b90e9e
feat(plugins): add author avatars and host-controlled maintainer badges
2026-10-27 11:25:54 +00:00
陈奇
8bcad28f9d
fix(plugin-agent): skip home config repair for delegated Claude turns
2026-10-27 10:18:51 +00:00
陈奇
5944a02238
fix(plugin-agent): bind startup and approved actions to current authority
2026-10-27 09:28:49 +00:00
陈奇
56fefdd03f
fix(plugin-agent): separate durable conversations from revoked runtime actors
2026-10-27 09:03:40 +00:00
陈奇
f715a0764d
feat(plugin-agent): wire core global conversations and minimal Chat sample
2026-10-27 08:49:54 +00:00
陈奇
ea619555ac
feat(plugin-agent): bind delegated MCP and model transport to exact turns
2026-10-27 07:43:52 +00:00
陈奇
ba4d3fc223
fix(plugin-agent): keep RPC cancellation separate from scope revocation
2026-10-27 06:56:03 +00:00
陈奇
18377a1fd9
fix(plugin-agent): revoke failed owner scopes and bind Stop to its turn
2026-10-27 06:41:17 +00:00
陈奇
056164157f
feat(plugin-agent): define source-bound global session authority and contract
2026-10-27 06:09:48 +00:00
陈奇
89beeb9374
fix(plugins): route Ask to focused managed app windows
2026-10-27 05:06:38 +00:00
陈奇
2eee561847
fix(plugins): bind scoped Ask receipts and revoke advanced activations
2026-10-27 03:17:53 +00:00
陈奇
643e71b17b
feat(plugins): default declared capabilities to allow with scoped policy controls
2026-10-27 02:28:08 +00:00
陈奇
24254ed737
Merge verified assistant selected-Note recovery into acceptance
2026-10-26 20:12:05 +00:00
陈奇
bbcf9c01c3
Merge verified terminal selection and inert draft correction into acceptance
2026-10-26 20:08:08 +00:00
陈奇
9e7c9df58e
fix(example-assistant): explicitly recover expired selected Note references
2026-10-26 19:53:18 +00:00
陈奇
824c3838e9
Merge published AI source-budget and model-session fixes provisionally
2026-10-26 19:50:06 +00:00
陈奇
07eb68c5e7
Merge current source and stream base into plugin AI corrections
2026-10-26 19:34:20 +00:00
陈奇
ee5a4a4067
fix(plugin-ai): preserve source budgets across runtime replacement
2026-10-26 19:23:22 +00:00
陈奇
3cfc7db371
feat(plugins): complete selected terminal sharing and inert input drafts
2026-10-26 18:42:37 +00:00
陈奇
6cc7ab9501
merge: retain selected-terminal sharing WIP history
2026-10-26 18:42:37 +00:00
陈奇
2278681787
Merge verified settings and logging UI into acceptance candidate
2026-10-26 18:34:59 +00:00
陈奇
31d61e3040
Merge verified host and Vault actions into acceptance candidate
2026-10-26 18:34:25 +00:00
陈奇
110448afb8
Merge late transport lifecycle and example checks into integration
2026-10-26 17:29:55 +00:00
陈大猫
f1410f8bb1
feat(plugins): validate installed stream example and integrate final source isolation
2026-10-27 01:19:32 +08:00
陈奇
e6f44460ac
fix(plugins): normalize local peers and settle cancelled stream credit
2026-10-26 17:03:15 +00:00