provide-terminal 2026-03-19
Control-stream framing, TypeScript hijack client, generic LineEditor, and mutant test reorganization
312 files · 56,663+ · 8,816-

Control-stream framing and session resumption protocol

17 files changed
  • control_stream.py Control-stream framing layer with inline protocol encoding
  • frames.py Hijack frame definitions for control-stream protocol
  • core.py Hub core updated for control-stream framing
  • polling.py Polling updated for control-stream
  • resume.py Session resumption through new framing protocol
  • browser_handlers.py Browser handlers updated for framing
  • rest.py REST helpers updated
  • websockets.py WebSocket routes with control-stream framing
  • rest_helpers.py REST helper utilities
  • models.py Hijack data models updated
  • control_ws.py Control-stream WebSocket client
  • __init__.py Client package updated
  • http_routes.py CF HTTP routes updated for framing
  • ws_routes.py CF WS routes updated for framing
  • session_runtime.py DO session runtime updated for framing
  • _session_runtime_io.py Session runtime I/O extracted
  • ws_helpers.py WS helpers updated
  • Added control-stream framing layer for WebSocket sessions with inline protocol encoding. Session resumption now works through the new framing protocol. interface behavioral
    4 files
    • control_stream.py
    • frames.py
    • websockets.py
    • control_ws.py
  • Refactored hijack.py into a package with REST helpers and manager process improvements. decouple internal
    2 files
    • rest_helpers.py
    • models.py

Convert hijack.js to TypeScript

8 files changed
  • hijack.ts TypeScript hijack client (replaces hijack.js)
  • hijack.test.ts Vitest test suite for the TypeScript hijack client
  • hijack-codec.ts TypeScript hijack codec
  • hijack-codec.test.ts Vitest tests for hijack codec
  • tsconfig.json TypeScript config for frontend package
  • vitest.config.ts Vitest configuration
  • hijack-codec.js Compiled hijack codec
  • hijack.js Compiled hijack JS from TypeScript source
  • Converted the frontend hijack.js to TypeScript with a Vitest test suite. qualify internal
    3 files
    • hijack.ts
    • hijack.test.ts
    • vitest.config.ts
  • Fixed import.meta.url for CSS resolution. Fixed WorkerController control-stream framing in the frontend. remediate internal
    2 files
    • hijack.ts
    • hijack.js

Generic LineEditor for readline-style editing

2 files changed
  • line_editor.py LineEditor: history, cursor movement, backspace readline-style editing
  • test_line_editor.py LineEditor test suite
  • Added a generic LineEditor component to undef.terminal supporting readline-style line editing (history, cursor movement, backspace). instantiate behavioral
    2 files
    • line_editor.py
    • test_line_editor.py

Memory optimization in ANSI and control-stream hot paths

9 files changed
  • ansi.py ANSI parser memory allocation optimized
  • control_stream.py Control-stream encoder memory allocation optimized
  • memray_ansi_stress.py memray ANSI stress test script
  • memray_gateway_stress.py memray gateway stress test script
  • memray_hub_stress.py memray hub stress test script
  • run_memray_stress.py memray stress test runner
  • test_ansi_stress.py ANSI memory stress tests
  • test_gateway_stress.py Gateway memory stress tests
  • test_hub_stress.py Hub memory stress tests
  • Optimized memory allocation in ANSI parser and control-stream hot paths. memray stress test infrastructure added for ANSI, gateway, and hub. streamline internal
    4 files
    • ansi.py
    • control_stream.py
    • test_ansi_stress.py
    • test_hub_stress.py

Mutation test reorganization into tests_mutation package

9 files changed
  • __init__.py Dedicated mutation tests package root
  • conftest.py Mutation tests conftest
  • __init__.py Client mutation tests
  • __init__.py Hijack mutation tests
  • __init__.py Manager mutation tests
  • __init__.py MCP mutation tests
  • __init__.py Server mutation tests
  • __init__.py Terminal mutation tests
  • __init__.py Transports mutation tests
  • Mutation-killing tests reorganized into a separate tests_mutation/ package tree, isolated from the standard test run. Covers client, hijack, manager, MCP, server, terminal, and transport subpackages. baseline internal
    4 files
    • __init__.py
    • conftest.py
    • __init__.py
    • __init__.py

CI and test infrastructure fixes

7 files changed
  • ci.yml CI workflow updates
  • .pre-commit-config.yaml Pre-commit config updates
  • max-loc-baseline.json LOC baseline updated
  • .pymutant-quarantine.json Mutant quarantine list
  • test_coverage_process_windows.py Windows process-tree smoke test for the manager CI
  • test_reconnect_spinner.py Playwright reconnect spinner test
  • conftest.py Root conftest updated
  • Added Windows process-tree smoke test for the manager CI. qualify internal
    1 file
    • test_coverage_process_windows.py
  • Fixed taskkill /T /F on Windows to kill the full process tree immediately (was using graceful kill first). remediate internal
    1 file
    • ci.yml
  • Fixed dashboard link locators using .first to handle multiple sessions. remediate behavioral
    1 file
    • test_reconnect_spinner.py
  • Resolved undef-telemetry dependency from PyPI instead of local path in CI. Split oversized test files and restored 100% coverage. remediate behavioral
    2 files
    • ci.yml
    • .pre-commit-config.yaml

ARD documents and updated docs

8 files changed
  • ard-command-approval-workflows.md ARD: command approval workflows
  • ard-multi-session-fanout.md ARD: multi-session fanout
  • ard-presence-collaboration-layer.md ARD: presence collaboration layer
  • ard-realtime-anomaly-detection.md ARD: realtime anomaly detection
  • ard-session-audit-compliance-recording.md ARD: session audit compliance recording
  • TESTING.md Testing documentation
  • process-tree-hijack-typing-note.md Process tree hijack typing note
  • MEMRAY_ANALYSIS.md memray analysis documentation
  • Five new ARD (Architecture Reference Documents) covering command approval, multi-session fanout, presence collaboration, realtime anomaly detection, and session audit compliance. specify internal
    5 files
    • ard-command-approval-workflows.md
    • ard-multi-session-fanout.md
    • ard-presence-collaboration-layer.md
    • ard-realtime-anomaly-detection.md
    • ard-session-audit-compliance-recording.md