agentic-os/dashboard/pages
Claude d7a1cbd292 Replace command-runner Terminal with a real interactive PTY
The previous Terminal ran one command at a time via subprocess.run
and returned its output - it couldn't run interactive programs
(colors, live input, TUIs like gemini's chat/auth flow), which is
what a terminal actually needs to do.

Backend: new /ws/terminal WebSocket endpoint spawns a real shell
attached to a pseudo-terminal (stdlib pty on POSIX, pywinpty/ConPTY
on Windows) and streams raw I/O bidirectionally, with resize support.
Replaces the old POST /api/terminal/run and GET /api/terminal/session
endpoints entirely.

Frontend: terminal.js now loads xterm.js + the fit addon from CDN
and renders a real terminal emulator wired to the WebSocket, instead
of a scrollback div with a single input line.

Verified on this Linux sandbox via raw WebSocket tests: shell spawns
correctly, commands execute and echo real output, resize propagates
to the PTY (confirmed via ), and closing the connection
cleanly kills the shell process with no orphans (interactive bash
ignores SIGTERM by default, so cleanup uses SIGKILL). Could not
visually verify the xterm.js browser rendering in this sandbox since
its egress policy blocks the CDN (cdn.jsdelivr.net) outright - same
CDN this app already uses for chart.js, so expected to work on a
normal machine; please confirm on Windows.
2026-07-06 05:12:54 +00:00
..
agent-health.js v0.2.0: 7 new features + UI modernization 2026-06-05 15:22:40 +05:30
audit.js Complete dashboard revamp: modern glassmorphism UI, all 12 pages functional 2026-05-17 15:48:54 +05:30
backups.js Complete dashboard revamp: modern glassmorphism UI, all 12 pages functional 2026-05-17 15:48:54 +05:30
chat.js v1.2.0: opencode JSON mode, 180s Hermes timeout, client AbortController, SEO README, badge/CSS fixes, prompt clipboard fix 2026-05-17 23:43:18 +05:30
cost.js Fix: page script 404 due to relative path, sidebar collapsed alignment, add favicon 2026-05-17 15:56:30 +05:30
dashboard.js Complete dashboard revamp: modern glassmorphism UI, all 12 pages functional 2026-05-17 15:48:54 +05:30
goals.js v0.2.0: 7 new features + UI modernization 2026-06-05 15:22:40 +05:30
journal.js v0.2.0: 7 new features + UI modernization 2026-06-05 15:22:40 +05:30
kanban.js Wire up autonomous agent dispatch for Kanban tasks 2026-07-05 23:16:46 +00:00
learning-analytics.js v0.2.0: 7 new features + UI modernization 2026-06-05 15:22:40 +05:30
memory.js Complete dashboard revamp: modern glassmorphism UI, all 12 pages functional 2026-05-17 15:48:54 +05:30
plugins.js Complete dashboard revamp: modern glassmorphism UI, all 12 pages functional 2026-05-17 15:48:54 +05:30
prompts.js v1.2.0: opencode JSON mode, 180s Hermes timeout, client AbortController, SEO README, badge/CSS fixes, prompt clipboard fix 2026-05-17 23:43:18 +05:30
scheduler.js Complete dashboard revamp: modern glassmorphism UI, all 12 pages functional 2026-05-17 15:48:54 +05:30
session-replay.js v0.2.0: 7 new features + UI modernization 2026-06-05 15:22:40 +05:30
settings.js Complete dashboard revamp: modern glassmorphism UI, all 12 pages functional 2026-05-17 15:48:54 +05:30
setup-wizard.js Complete dashboard revamp: modern glassmorphism UI, all 12 pages functional 2026-05-17 15:48:54 +05:30
skills.js Fix skill execution: wire run_skill to actually invoke agent, show results in modal 2026-05-18 11:22:34 +05:30
smart-router.js v0.2.0: 7 new features + UI modernization 2026-06-05 15:22:40 +05:30
standards.js Complete dashboard revamp: modern glassmorphism UI, all 12 pages functional 2026-05-17 15:48:54 +05:30
terminal.js Replace command-runner Terminal with a real interactive PTY 2026-07-06 05:12:54 +00:00