Set /bin/bash as the login shell for the container user and export
SHELL=/bin/bash so the terminal PTY handler picks it up. Previously
the user was created with /bin/sh (dash), which does not support
interactive job control, producing 'can't access tty; job control
turned off'.
Bump version to 0.7.1.
Add resource-oriented terminal sessions following the JupyterLab/Kubernetes
pattern with full session lifecycle management:
- POST /api/terminals — create a PTY session
- GET /api/terminals — list active sessions
- GET /api/terminals/{id} — session info
- DELETE /api/terminals/{id} — kill session
- WS /api/terminals/{id} — attach via WebSocket
Authentication uses first-message auth (Socket.IO pattern): client sends
{type: 'auth', token: '...'} as first WebSocket message. No credentials
in URLs. 10 second auth timeout.
Non-blocking PTY I/O using select() with timeouts and O_NONBLOCK.
Sessions auto-cleanup on WebSocket disconnect.
The semver tag patterns in docker/metadata-action only work when the
workflow is triggered by a git tag ref. Since release.yml pushes tags
with GITHUB_TOKEN (which doesn't trigger other workflows), the Docker
build never saw a tag ref and only produced 'latest' tags.
Read the version directly from pyproject.toml and use raw tags instead.
Load settings from /etc/open-terminal/config.toml (system) and
$XDG_CONFIG_HOME/open-terminal/config.toml (user). Supports host, port,
api_key, cors_allowed_origins, log_dir, and binary_mime_prefixes.
CLI flags and environment variables still take precedence. A --config
flag allows pointing to a custom config file.
Closes#11
Triggers on pushes to main when pyproject.toml changes.
Reads the version, checks if a matching tag already exists,
and if not, creates a git tag and GitHub Release with the
changelog section extracted from CHANGELOG.md.
The new tag then triggers the existing Docker workflow to
build and push versioned images.
Closes#15
Change the default LOG_DIR from ~/.open-terminal/logs to
$XDG_STATE_HOME/open-terminal/logs (defaults to
~/.local/state/open-terminal/logs when XDG_STATE_HOME is unset).
The OPEN_TERMINAL_LOG_DIR env var override is unchanged.
Closes#12
Allow loading the API key from a file via OPEN_TERMINAL_API_KEY_FILE,
following the convention used by the official PostgreSQL Docker image.
- Add _resolve_file_env() helper in env.py
- Add file_env shell function in entrypoint.sh
- Add _FILE fallback in cli.py run command
- Update README with Docker Compose example
- Bump version to 0.4.3
Closes#14
- Add MoveRequest model and /files/move endpoint (async, hidden from OpenAPI)
- Uses shutil.move in asyncio.to_thread for non-blocking operation
- Validates source exists, dest parent exists, dest doesn't collide (409)
- Bump version to 0.4.2
- Commands now run under a real PTY by default (PtyRunner), enabling
colored output, interactive programs, and proper isatty() detection
- Falls back to pipe-based execution (PipeRunner) on Windows
- ProcessRunner abstraction in runner.py with create_runner() factory
- Escape sequence conversion in send_process_input for LLM-emitted
literal strings (\n, \x03 for Ctrl-C, etc.)
- Output logged as merged type "output" instead of separate stdout/stderr
Bumped to 0.3.0
- Text files: return JSON with content string (unchanged)
- Supported binary types (image/* by default): return raw binary
with proper Content-Type header
- Unsupported binary types: 415 error
- New env var OPEN_TERMINAL_BINARY_MIME_PREFIXES (comma-separated,
default: 'image') controls which binary types are allowed
- Persist all process stdout/stderr to JSONL log files for audit
- Add offset-based polling (next_offset) for stateless incremental reads
- Add tail parameter to bound response size for AI agents
- Remove in-memory output buffer and drain-on-read pattern
- Organize logs under ~/.open-terminal/logs/processes/
- Add aiofiles dependency for async file I/O
- Remove OPEN_TERMINAL_MAX_OUTPUT_LINES (no longer needed)
Returns JSON matches with file paths, line numbers, and content.
Supports regex, case-insensitive search, multiple glob filters,
match_per_line toggle (lines vs filenames), and result capping.
Skips binary files automatically.
Replaces auto-generated illegible operation IDs with clean,
human-readable names for better OpenAPI spec readability by AI agents.
Uses consistent terminology: 'process' for endpoints with {process_id},
'create_' prefix for link-generation endpoints.