Skip to content

UI-003: xterm.js Terminal for Container SSH

This Reference preserves the recorded requirement contract. The front matter states its lifecycle status; this editorial notice does not change that status. An ACTIVE contract is not a historical implementation or qualification result. The statement, rationale, identifiers, and traceability below keep their recorded meaning. The original file is available at source revision 6d35d245f11a.

Statement

The web UI shall provide in-browser terminals via xterm.js connected to container SSH sessions over WebSocket, enabling command execution within scenario workbench blocks.

Rationale

Terminal access within the workbench eliminates switching to external terminal windows.

Traceability

  • IMPLEMENTS → ADR docs/adrs/adr-011-web-ui.md (ADR-011: Web UI)
  • IMPLEMENTS → GITHUB_ISSUE 221 (UI-003: xterm.js Terminal for Container SSH)
  • IMPLEMENTS → CODE_FILE src/aptl/api/routers/terminal.py (WebSocket terminal endpoint (asyncssh PTY relay))
  • IMPLEMENTS → CODE_FILE web/src/lib/components/Terminal.svelte (xterm.js terminal Svelte component)
  • IMPLEMENTS → CODE_FILE web/src/routes/terminal/[container]/+page.svelte (Terminal page route)
  • IMPLEMENTS → CODE_FILE web/src/lib/components/ContainerCard.svelte (ContainerCard with Terminal link for SSH containers)
  • TESTS → TEST tests/test_api_terminal.py (WebSocket terminal endpoint tests (8 tests))