Skip to content

feat: local Docker sandbox infrastructure (1/3)#198

Open
mdear wants to merge 1 commit into
Intelligent-Internet:mainfrom
mdear:feature/local-docker-sandbox_1_of_3
Open

feat: local Docker sandbox infrastructure (1/3)#198
mdear wants to merge 1 commit into
Intelligent-Internet:mainfrom
mdear:feature/local-docker-sandbox_1_of_3

Conversation

@mdear
Copy link
Copy Markdown

@mdear mdear commented Apr 13, 2026

Local Docker Sandbox Infrastructure (1/3)

389 files changed — Docker sandbox runtime, local deployment stack, session lifecycle, frontend local support, test overhaul, and general bug fixes.

Docker & Local Deploy

  • DockerSandbox provider with shell executor and port pool manager
  • Docker Compose local stack (docker-compose.local.yaml) with stack_control.sh CLI
  • e2b.Dockerfile: gh CLI v2.89+, adapter dependencies
  • .stack.env.local.example reference configuration
  • Storage proxy router for MinIO-backed local file serving
  • Slide assets router for local file access

Sandbox Runtime

  • Orphan container cleanup with configurable TTL and async-safe threading
  • Sandbox port manager with pool allocation
  • Sandbox explorer and schema updates for Docker provider
  • SandboxSettings: SANDBOX_PROVIDER=docker, host config
  • StorageSettings: STORAGE_SERVE_BASE_URL for proxied URLs

Session Lifecycle

  • delete_after column with schedule-delete endpoint for timed session cleanup
  • Alembic migration for delete_after
  • Frontend session delete UI (sidebar + project list)

Core Config & Infra

  • CreditsSettings: CREDITS_BILLING_ENABLED toggle for self-hosted
  • Storage client and MinIO provider updates for local paths
  • Health endpoint updates
  • Auth router and realtime handler updates (sandbox/VNC support)

Frontend

  • Local sandbox support in workspace state and UI
  • Session delete scheduling in sidebar and project list
  • Agent tab, task, and result components updated for local mode
  • Login flow updates, model constants additions

Testing

  • Comprehensive E2E test suite: 32 tests across 11 categories (INF, CHAT, IMG, WEB, CODE, SESS, AGEN, XFEAT, HIST, CNCL, A2A)
  • E2E test-cycle prompt for autonomous fix/rebuild/retest
  • Repository integration tests (auth, billing, content, projects)
  • Unit test overhaul: consolidated and modernized across all domains
  • Removed a significant number of unit tests that were build to test legacy code no longer present (the old develop branch)
  • Unit: 4634 passed, 11 skipped, 0 failed
  • E2E: 27 pass, 4 skip (A2A — added in 2/3), 1 expected fail

Scripts & Docs

  • stack_control.sh, test_e2e.py, test_session.py, migration scripts
  • Architecture docs, getting-started guide, local-to-cloud deployment docs
  • .github/copilot-instructions.md and diagram instructions

- Docker Compose local stack with PostgreSQL, Redis, MinIO, sandbox
- Local sandbox entrypoint, VNC, browser automation services
- Stack control scripts (stack_control.sh, local/*)
- Backend Dockerfile + entrypoint for local development
- Configuration: .stack.env.local, settings.yaml, model_configs
- SQLAlchemy model fixes (UUID consistency, TimestampColumn)
- Agent tool/runtime improvements (reasoning_content, field renames)
- Credit billing_enabled toggle + usage handler refactor
- E2B sandbox management, VNC URL support
- 246 tests (unit, integration, smoke, E2E)
- Documentation: architecture, getting-started, local-docker-sandbox
- GitHub Copilot instructions and prompt templates
@mdear
Copy link
Copy Markdown
Author

mdear commented Apr 13, 2026

I am continuing testing on branch feature/a2a-chat-inner-loop_3_of_3 and will not introduce churn on this PR unless requested by the team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant