Commit 47b6948f
47b6948fc534Merged
Scott Nixon <[email protected]> ยท 9 months ago ยท 1 file ยท ~1 modified
Description
[attractor-cki] Update xterm-setup.js to support multiple terminals and folder param
- Added global registry window._terminalInstances to track resources per container
- Updated initTerminal(containerId, folderPath) signature with optional folderPath
- Changed session storage from global 'terminal_session_id' to per-container 'terminal_session_'
- Updated buildWsUrl() to include both ?session and &folder query parameters
- Added window.disposeTerminal(containerId) cleanup function to prevent memory leaks
- Stores all resources (WebSocket, Terminal, timers, observers) in registry for proper cleanup
- Backward compatible: folderPath parameter is optional
Details
- Commit
- 47b6948fc534
- Parent
- 9307d550b53f
crates/attractor-web/public/js/xterm-setup.jsmodifiedView file
No text changes