feat: add browser-based terminal with persistent sessions#1279
Open
vic4hub wants to merge 7 commits intoagent0ai:developmentfrom
Open
feat: add browser-based terminal with persistent sessions#1279vic4hub wants to merge 7 commits intoagent0ai:developmentfrom
vic4hub wants to merge 7 commits intoagent0ai:developmentfrom
Conversation
docs updates, typos and fixes for v0.9.8.x
…skills_tool-loading
Adds a fully-featured xterm.js terminal to the Agent Zero web UI. Terminal sessions survive page refresh — running processes (htop, nano, Claude Code, long-running scripts) reattach automatically. Features: - Multi-tab terminal with rename, close, persist across refreshes - Session persistence: shell survives browser refresh/disconnect - Full TUI support: htop, nano, vim reattach with correct redraws - Mouse interaction restored after reattach for mouse-aware apps - Proper PTY session leadership (setsid + TIOCSCTTY) for correct SIGWINCH - Theme-aware: honors dark/light mode CSS variables - Cross-browser: tested Chrome and Safari New files: - python/helpers/tty_session.py: async PTY wrapper with resize + setsid - python/websocket_handlers/terminal_handler.py: WebSocket handler - webui/components/terminal/terminal.html: xterm.js UI - webui/js/terminal-store.js: Alpine.js tab/session store - webui/vendor/xterm/: xterm.js v5.3.0 + fit/canvas/web-links addons Modified files: - webui/index.html: xterm scripts, terminal panel, hide chat when open - webui/index.css: terminal tab styling - webui/js/initFw.js: import terminal store before Alpine - webui/components/sidebar/top-section/quick-actions.html: terminal button Closes agent0ai#1136
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a fully-featured xterm.js terminal to the Agent Zero web UI. Terminal sessions survive page refresh — running processes (htop, nano, Claude Code, long-running scripts) reattach automatically.
Features:
New files:
Modified files:
Closes #1136