Files
terminals/CHANGELOG.md
T
2026-11-07 21:57:27 +09:00

17 KiB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[0.3.3] - 2026-11-07

Added

  • Added an optional maximum terminal lifetime in minutes, configurable for the whole service or through Max lifetime in each policy's editor. Once the limit is reached, the terminal stops even while in use, ending running commands. Files in persistent storage are kept, and the next use starts a fresh terminal with those files. The limit is disabled by default.

Fixed

  • Fixed unused terminal tabs preventing idle cleanup by repeatedly sending background connection checks. These checks no longer reset the idle timer; typing and command output still count as activity.

[0.3.2] - 2026-11-07

Fixed

  • Fixed opening or refreshing System info starting a terminal or preventing idle cleanup. It now inspects only an already-running terminal for the selected user, policy, and chat, and reports when that terminal is not running.
  • Fixed idle cleanup stopping terminals while users were typing, receiving command output, or using live browser and desktop views. Traffic in either direction now counts as activity.
  • Fixed live connections failing to recognize the user supplied by Open WebUI. Terminal and agent connections now also retain their chat identity and resume position when reconnecting.
  • Fixed live connections closing when a single incoming message exceeded 1 MiB. They now accept messages up to 20 MiB, including larger desktop frames.
  • Fixed connections remaining open after the browser disconnected or the Open Terminal stream ended. Both sides now close when either side finishes.

[0.3.1] - 2026-11-05

Fixed

  • Fixed Open WebUI failing to load terminal tools with the Terminals admin API key when Session authentication was enabled. This now works for both default connections and named policies. Running commands and accessing files still require the user's valid session.

[0.3.0] - 2026-11-05

Added

  • Added optional network profiles to terminal policies on Docker and both Kubernetes deployment modes. Different policies can now select administrator-configured networks and access rules, such as access to internal services, internet-only access, or no external access.
  • Added a Network profile field to the admin policy editor. Leaving it blank keeps the existing networking defaults. Unknown profiles and profiles missing settings for the selected deployment type are rejected instead of silently using the default network.
  • Added setup instructions for defining profiles with TERMINALS_NETWORK_PROFILES and applying them to existing terminals. Administrators must create the networks and access rules themselves; naming a profile restricted does not block traffic on its own. Docker host networking is not supported by profiles.

Fixed

  • Fixed Docker reconnections using the service's default network setting instead of the terminal's actual network. Terminals on policy-specific networks can now be reached correctly when Terminals restarts or reconnects to an existing container.

[0.2.9] - 2026-11-05

Added

  • Added a User data list to the admin UI showing users with saved terminal files, including users whose terminals have already stopped.
  • Added Delete user data to remove a user's saved terminal files across policies, chats, and automation runs. After confirmation, it stops their terminals and refuses to delete files if terminal resources remain. Cleanup is also available through the admin API. Deleting an Open WebUI account does not trigger it automatically; shared Kubernetes storage still requires separate cleanup.

Changed

  • Made the admin UI more compact with shorter table rows, less vertical space between sections and form fields, softer borders, and smaller gray delete actions.
  • Rewrote the README around three setup steps: start Terminals, open the admin UI, and connect Open WebUI. The Docker commands now generate an API key and connect services through one network. Added troubleshooting and clearer instructions for saved files, deletion, and Kubernetes setup.

Fixed

  • Fixed both Kubernetes deployment modes ignoring custom terminal health-check settings. Policies can now give slow terminals more time to respond before they are marked unavailable or restarted. Existing terminals must be refreshed to use the updated settings.

[0.2.8] - 2026-11-05

Added

  • Added a configurable startup wait for Kubernetes operator deployments so slower terminal starts can finish before users see a timeout. Set TERMINALS_PROVISION_TIMEOUT_SECONDS=300 to wait up to five minutes. The default remains 120 seconds.

Fixed

  • Fixed Docker terminal creation failing when the selected image had not been downloaded to the host. Terminals now downloads missing images automatically before starting the terminal.
  • Fixed named policies ignoring the configured Kubernetes image and using the general default instead, which could launch latest instead of a pinned version. Both Kubernetes deployment modes now respect the Kubernetes image setting unless the policy selects its own image.
  • Fixed Kubernetes operator deployments making users wait for a timeout when the cluster had already rejected a terminal start because of exhausted capacity or permissions. Requests now report the reason promptly, and the operator stops retrying that rejected start instead of creating an unwanted terminal later. A new user request can retry.

[0.2.7] - 2026-11-05

Fixed

  • Fixed Open Terminal browser and desktop live views, live updates, and streaming command output failing to connect through Terminals, including connections using named policies.
  • Fixed manual and scheduled file resets being rejected by Kubernetes clusters with strict security or resource rules. Resets now use the terminal's configured image, security settings, and placement rules in both Kubernetes deployment modes.
  • Fixed Kubernetes operator deployments leaving users unable to reconnect after a terminal pod was deleted. Terminals now recreates the missing terminal on the next access while keeping files in persistent storage, even if the operator missed the deletion.
  • Fixed errors appearing after requests finished because the connection to Open Terminal was not closed correctly. Completed responses now release that connection without the cleanup error.

[0.2.6] - 2026-11-05

Fixed

  • Fixed Kubernetes operator deployments stopping terminals after 30 minutes even when idle cleanup was disabled. Setting the idle timeout to 0 now keeps idle terminals running, preventing the loss of files stored only inside those terminals.
  • Fixed the Docker image saving its database outside the mounted data folder, which could lose saved policies when the Terminals container was replaced. The database now lives in /app/data/terminals.db.
  • Fixed Docker terminal files being stored outside the intended workspace folder when Terminals runs in a container. The optional TERMINALS_DOCKER_HOST_DATA_DIR setting lets terminal creation and file resets use the same files when the host and container see that folder at different paths. The Docker quick start now includes this setup.
  • Fixed terminals on named Docker networks opening unnecessary ports on the host. Newly created terminals on those networks are reached through the Docker network without publishing a host port.

[0.2.5] - 2026-10-16

Fixed

  • Fixed terminal windows showing "[Connection closed]" immediately after opening in saved Open WebUI chats when using Open Terminal 0.12.4 or newer.
  • Corrected the Docker quick start command to use the published Terminals image and set the host address needed to reach terminal containers.

[0.2.4] - 2026-09-12

Fixed

  • Blocked requests made through an Open WebUI user's terminal connection from viewing the full terminal list, changing policies or reset schedules, and stopping or resetting other users' terminals.

[0.2.3] - 2026-08-31

Fixed

  • Fixed PostgreSQL policy create and update requests so they no longer fail when saving policy timestamps.
  • Fixed the app version shown by the running service so it matches the package version.

[0.2.2] - 2026-08-22

Fixed

  • Fixed PostgreSQL support so fresh installs include the needed database drivers.
  • Fixed postgres:// and postgresql:// database URLs so they work without operators having to know the exact driver name.
  • Fixed startup and migration failures when PostgreSQL passwords contain URL-escaped characters like %25, %7D, %3A, or %26.

[0.2.1] - 2026-08-09

Added

  • Added Docker extra mounts. Operators can mount shared folders, datasets, and team workspaces into every spawned terminal with TERMINALS_DOCKER_MOUNTS.
  • Added read-only mount support for Docker extra mounts. Read-only is the default, so shared datasets are protected unless an operator explicitly allows writes.
  • Added clear Docker and Kubernetes mount guidance. Docker uses TERMINALS_DOCKER_MOUNTS; Kubernetes uses policy podTemplate volumes and volume mounts.

Changed

  • Renamed Docker-only settings so their purpose is clear: use TERMINALS_DOCKER_NETWORK and TERMINALS_DOCKER_DATA_DIR. The old names still work for existing deployments.
  • Split the configuration docs into common, Docker-only, Kubernetes-only, and Kubernetes-operator-only sections.
  • Kubernetes now uses TERMINALS_IMAGE as the normal image setting, matching Docker. The older Kubernetes image override still works for existing deployments.
  • Documented TERMINALS_OPEN_WEBUI_URL as an advanced Open WebUI JWT mode that requires session auth from Open WebUI.

Fixed

  • Blocked Docker extra mounts from replacing important container paths such as /home/user, /etc, /usr, and /var.
  • Blocked duplicate or nested Docker mount targets so one mount cannot hide another.

[0.2.0] - 2026-08-08

Added

  • Added support for separate terminals per saved chat and per automation run. Open WebUI 0.11.1 or newer is required to use this from Open WebUI.
  • Added storage and restart recovery for shared terminals, chat terminals, and automation terminals across Docker, Kubernetes, and Kubernetes operator deployments.
  • Added Kubernetes pod customization for cluster requirements like Kata Containers, sidecars, extra mounts, volumes, service accounts, labels, and annotations.
  • Added context targeting to admin refresh and stop actions, so admins can refresh or stop one shared, chat, or automation terminal without touching the others for the same user and policy.

Changed

  • Existing Open Terminal and Open WebUI connections still use one shared terminal unless Open WebUI sends a chat or automation context.
  • Missing, empty, and default context values all use the shared terminal.
  • Proxy timeout settings are configurable, and the default read timeout now gives Open Terminal /execute?wait=300 enough room to finish.

Fixed

  • Fixed long-running /execute calls near the old 300 second proxy limit. They get more time by default, and Terminals returns a clear timeout response if the terminal still does not answer.

[0.1.0] - 2026-07-21

Added

  • Large Docker installs can now split terminals across several Docker networks by setting TERMINALS_NETWORK to a comma-separated list, so every active terminal no longer has to sit on the same network.
  • The README now gives the exact setup for this: create multiple Docker networks, list them in TERMINALS_NETWORK, and attach the orchestrator to each one.

[0.0.8] - 2026-07-20

Added

  • Added TERMINALS_IDLE_CLEANUP_TIMEOUT_SECONDS so deployments can choose how long idle cleanup waits for one terminal stop or reset before trying again later.

Changed

  • After a Terminals restart, recovered Docker and Kubernetes terminals now keep their policy settings instead of falling back to the global defaults.
  • After a Terminals restart, recovered terminals keep their last recorded activity time instead of being treated as newly active.
  • New Kubernetes terminal pods now save the real policy id, so recovered pods are matched to the right policy even when the policy label is shortened.

Fixed

  • Fixed idle cleanup getting stuck behind one slow terminal stop or reset. Timed-out cleanup is left tracked and retried on the next sweep.

[0.0.7] - 2026-07-20

Added

  • Added TERMINALS_WORKERS and --workers so deployments can run multiple Terminals server processes.
  • Added TERMINALS_REPLAY_BODY_LIMIT. Leave it unset for unlimited retry buffering, or set a byte limit when large uploads should stream instead of staying in server memory.

Changed

  • Docker mode now adopts an already-running user terminal when another worker finds it, instead of deleting that terminal and starting over.
  • Docker mode can now quiet hosted terminal container logs when orchestrator logging is set to WARNING, ERROR, or CRITICAL.
  • Worker processes now share terminal activity heartbeats, so active sessions are not mistaken for idle sessions just because another worker served the request.
  • Scheduled policy resets now refresh matching running terminals, so a browser tab left open all day does not block scheduled file cleanup.
  • Kubernetes operator deployments now group activity updates instead of sending one for every request, which lowers cluster API load while keeping active sessions protected.

Fixed

  • Fixed retry behavior for ordinary proxied requests so requests can be replayed after a terminal is replaced. Chunked uploads still stream once because they cannot be replayed safely.
  • Fixed Docker multi-worker startup conflicts where two workers could fight over the same user's terminal container.
  • Fixed stale activity records being left behind after refreshes, resets, missing terminals, and Docker restart recovery.

[0.0.6] - 2026-07-19

Added

  • Added a policy rollout action in the admin UI. It refreshes idle terminals for one policy and reports exactly how many were refreshed and how many active terminals were skipped.

Changed

  • Reworked the admin UI into a cleaner, denser light workspace with fewer borders, tighter rows, clearer policy actions, and a policy editor that keeps Save visible while scrolling.
  • Made busy terminal traffic lighter to serve by avoiding repeated health checks, repeated Open WebUI login checks, and repeated Kubernetes status writes during normal proxy use.
  • Split proxy connection pools by terminal instance so heavy traffic to one terminal does not slow down unrelated terminal sessions.
  • Turned off access logs and WebSocket compression by default to reduce noisy runtime overhead.
  • Documented the new runtime settings for status caching, token caching, WebSocket compression, and access logs.

Fixed

  • Fixed packaged installs and Docker images so the built admin UI is included in the Python package. Visiting the root page now loads the UI instead of falling through to the proxy and returning 401 Missing Authorization header.
  • Fixed policy save and delete flows so cached policy and tool details are cleared immediately after a change.
  • Fixed HTTP and WebSocket retries so, when a terminal is starting or has been replaced, the proxy re-checks the current terminal before retrying instead of retrying an old address.
  • Fixed the active WebSocket connection count so failed connection attempts no longer leave the admin status count permanently too high.
  • Fixed retry failure handling so HTTP and WebSocket requests return a clean terminal-unreachable error when a terminal cannot be resolved during retry.

[0.0.5] - 2026-07-09

Added

  • Added Kubernetes node selector and toleration overrides for terminal and reset pods.

[0.0.4] - 2026-06-29

Added

  • Added a minimal admin UI for viewing terminal status, active sessions, and policies.
  • Added policy lifecycle support, including scheduled resets and lifecycle state tracking.
  • Added OpenShift-focused security context controls and deployment documentation.
  • Added frontend build packaging to the server Docker image.
  • Added terminal environment propagation for system prompts and resource metadata.
  • Added configurable server and operator log levels.

Fixed

  • Fixed Docker backend storage limit handling with a best-effort fallback when the host driver cannot enforce quotas.
  • Fixed stale proxy connection handling by retrying once after keep-alive failures.
  • Fixed Kubernetes and operator provisioning paths to pass effective policy environment values consistently.

[0.0.1] - 2026-04-02

Added

  • Multi-tenant terminal orchestrator with Docker and Kubernetes backends.
  • Kubernetes operator for terminal custom resource management.
  • CLI interface for managing terminals.
  • Docker build workflows for orchestrator and operator images (multi-arch: amd64/arm64).