Repository navigation
chore(dev): replace managed CLI runtime with Compose Watch - #8006
Merged
Merged
Conversation
tlgimenes
enabled auto-merge (squash)
October 15, 2026 20:32
decocms Bot
pushed a commit
that referenced
this pull request
Oct 15, 2026
PR: #8006 chore(dev): replace managed CLI runtime with Compose Watch Bump type: patch - decocms (apps/api/package.json): 4.490.0 -> 4.490.1 - @decocms/native (apps/native/package.json): 4.490.0 -> 4.490.1 - @decocms/e2e (packages/e2e/package.json): 1.116.0 -> 1.116.1 Deploy-Scope: both
This was referenced Oct 15, 2026
pedrofrxncx
added a commit
that referenced
this pull request
Oct 19, 2026
The baseline table still listed ensure-services.ts, pipeline.ts, cli/commands/dev.ts, and scripts/dev-worktree*.ts as current, and the Removal scope section described their deletion as pending verification. PR #8006 (which introduced this plan doc) deleted all four in the same change, so the doc has been self-contradicting since it landed.
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this contribution about?
Studio maintains its own infrastructure manager to download PostgreSQL/NATS/MinIO, track processes and ports, and coordinate development startup. Replace that runtime with Compose Watch and direct server entrypoints, removing 2,773 net lines including the new configuration and documentation.
docker compose up --build --watchstarts dependencies, explicit migrations, API and web. Source syncs into Linux containers; Bun restarts the API and Vite handles frontend reloads.How did you verify your code works?
bun run verify --parallel=2with CI-pinned Bun 1.3.14: 11,014 tests passed; formatting, lint and unused-code checks passed. All tests and per-file isolation remain enabled; only the worker count changed.bun run check:readmes(14 workspaces).Unbounded local runs during laptop contention hit the NDJSON timed-flush assertion, the Monaco source-scan timeout and a ConnectionCard keyboard-test timeout. All three focused test files passed (16 tests), followed by the complete two-worker verification above. No test assertions, timeouts or exclusions changed. Packed-runtime checks preceded the main rebase; the subsequent local spike rebuilt and exercised the current Docker image. API/web/E2E typechecks and README checks passed earlier; the final follow-up changes only Compose, build-ignore rules and contributor guidance.
Full browser E2E and resilience/chaos suites were not run. Runtime checks used synthetic data; temporary test containers and volumes were removed.
Local spike
The spike reproduced and fixed insufficient capacity in the shared NATS example: its 4GB server cap could not initialize the second account's 4GiB output stream. The example now uses 16GB with documented headroom, and both streams were retested. Better Auth keeps its default cookie names across localhost ports; sharing sessions requires the same auth database and secret.
The follow-up used two actual Git worktrees with independent Compose Watch processes and one shared PostgreSQL/NATS/MinIO stack. Both real Chrome contexts completed signup and rendered the Board; concurrent authenticated reload took about 4.4s. Source edits and API reloads stayed within their own worktree, and distinct API/UI markers survived recreation with the default per-project image tags. Stopping A with
down --volumespreserved B's container IDs, health, SQL, NATS KV and S3 state.This caught ordinary shared-package files incorrectly triggering full rebuilds. The corrected manifest filter uses
include: ["**/package.json"]; four existing/new-file probes now sync in 1.15–1.64s without changing any app container IDs/images or triggering a rebuild. Manifest and Dockerfile changes still rebuild only A while B remains untouched. Exact Dockerfile/ignore-file allowlist entries restore their explicit Watch triggers. Contributor instructions now require Compose 2.40+ forinitial_sync(runtime spike used Compose 5.6.0).Steadier follow-up snapshots after recreation: APIs about 269–395MiB each, Vite about 1.53GiB each, and shared infrastructure about 185MiB total. No app container OOMs were recorded. These remain observations, not a controlled benchmark; a pre-existing Kubernetes node was left running, and source/API reloads under contention were substantially slower. The manifest control took about 106s including dependency reinstall/image export; the Dockerfile control took about 29s. Docker reuses common build layers, while manifest changes can invalidate the dependency layer.
HTTP health alone does not prove agent-output stream readiness, so the spike explicitly checked both account streams. Real agent/provider sandbox execution was not exercised. Temporary containers, scoped resources, Git worktrees and owned host processes were cleaned up.
Screenshots/Demonstration
Development/deployment tooling change; runtime reproduction steps below.
How to Test
docker compose up --build --watchfrom the repository root and openhttp://localhost:4000.docker compose down, start again and confirm data remains. After adding migrations, rundocker compose build migrate && docker compose run --rm migrate, then restart the API.COMPOSE_PROJECT_NAMEandWEB_PORT. For server reuse, followdeploy/docker-compose/README.md; never share an application database or NATS account between divergent worktrees.Migration Notes
deco dev,deco services, and the custom worktree/conductor launchers are removed. Use Compose/Kubernetes for packaged runtimes, or direct source commands against explicitly configured dependencies.NATS_USERandNATS_PASSWORDtogether, or existing credential-file authentication. Account/bucket/database provisioning remains explicit.Review Checklist
Summary by cubic
Replaces Studio's managed local infrastructure runtime with Docker Compose Watch, removing the embedded PostgreSQL, binary downloads, process/port tracking, and TUI.
docker compose up --build --watchnow starts dependencies, explicit migrations, and the hot-reloading API and web; source syncs into containers while dependencies stay in the image.deco dev,deco serve,deco services) and the worktree/conductor launchers; the CLI now keeps only client and scaffolding commands.resolveConfigno longer takes CLI flags, and settings resolve lazily from env on first access.STUDIO_LOCAL_API_TARGET.Breaking changes
bun run dev, the managed CLI runtime,deco dev,deco services, and worktree/conductor launchers are removed; use Compose or Kubernetes instead.Written for commit a69d241. Summary will update on new commits.