01a0ef46c9
- Add startup_command field to ToolType model and API - Execute startup command before interactive shell in terminal sessions - Add tmux and ranger to OpenCode container spec - Update Tool Workshop UI with startup_command input for terminal types - Add backend tests for startup_command CRUD operations - Sync specs: tool-terminal, tool-types-definition, opencode-web-server - New spec: tool-terminal-startup-command Quality gates: Frontend typecheck/lint passed. Backend tests blocked by environment (Python/Docker not available). OpenSpec: terminal-startup-and-container-tools
939 B
939 B
MODIFIED Requirements
Requirement: OpenCode runs a web server
The system SHALL configure OpenCode containers to run a web server accessible on port 3000.
Scenario: OpenCode container starts
- GIVEN an OpenCode tool instance
- WHEN the container starts
- THEN a web server is running on port 3000 inside the container
- AND the server serves a web terminal interface
- AND the container has
tmuxinstalled - AND the container has
rangerinstalled
Requirement: OpenCode web terminal displays properly
The system SHALL serve a functional web terminal interface for OpenCode.
Scenario: User opens OpenCode web UI
- GIVEN a running OpenCode instance
- WHEN the user clicks the "Open" button
- THEN a new tab opens with the OpenCode web interface
- AND the interface shows a terminal connected to the OpenCode process
- AND the user can run
tmuxandrangercommands