Repository navigation
feat(launcher): bring up the OpenShell gateway on start (engine auto-select) - #1189
Merged
Merged
Conversation
added 5 commits
November 13, 2026 13:43
The standing OpenShell gateway (profile: openshell, #1187) joins the launcher's profile catalog so AllProfiles() sweeps it on down/stop and start can activate it. Wiring that brings it up lives in the next commits.
…select) `start` now stands up the standing OpenShell gateway (profile: openshell, #1187) alongside the stack, so the default `openshell` sandbox provider admits the engagement out of the box — previously the launcher only brought up `cli` and the resolver stayed unbound. internal/openshell: PrepareGateway(home, runtime) picks the compute engine from the detected container runtime (podman → rootless, else docker), renders the engine's embedded gateway TOML into DECEPTICON_HOME (the launcher owns it — SyncConfigFiles ships only compose+litellm, not containers/), creates the podman data dir, and exports the OPENSHELL_* env the compose service reads. cmd/start.go calls it before compose up, prints the boundary banner, and activates the openshell profile (CLI path and desktop path). Verified on sec-dev: go build / vet / test (openshell + compose) pass.
OPENSHELL_LIVE=1 runs the real PrepareGateway path on a host with podman: renders the gateway TOML + exports OPENSHELL_*, brings up the openshell compose profile, and asserts the gateway is healthy (/readyz) with the podman compute driver connected. Skips in CI (needs podman + the gateway image). Verified on ra-trial: PASS — gateway healthy via host.containers.internal, podman driver connected, using the launcher-rendered config.
… CI) TestPrepareGatewayPodman built the expected JWT path with filepath.Join, which uses backslashes on windows-latest; the rendered TOML uses forward slashes (the template is @DaTa@/tls/jwt/...). The gateway only runs on Linux, so the code is unaffected — assert with a literal forward-slash path.
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
The launcher now stands up the standing OpenShell gateway on
start, so the defaultopenshellsandbox provider admits the engagement out of the box. Previouslystartonly brought up thecliprofile — the gateway (#1187) was never started, so the resolver stayed unbound and a fresh./decepticoncouldn't run an engagement.This is the launcher ↔ gateway wiring (W1) that completes #1187.
How
internal/compose: add theopenshellprofile to the catalog (+AllProfiles()sweep).internal/openshell(new):PrepareGateway(home, runtime)picks the compute engine from the detected container runtime (podman → rootless, else docker), renders the engine's embedded gateway TOML intoDECEPTICON_HOME(the launcher owns it —SyncConfigFilesships only compose+litellm, notcontainers/), creates the podman data dir, and exports theOPENSHELL_*env the compose service reads.cmd/start.go: callPrepareGatewaybefore compose up, print the boundary banner (Sandbox boundary · OpenShell gateway: <engine>), and activate theopenshellprofile (CLI + desktop paths).Engine is auto-selected (no new prompt) from the existing
runtime.Detect().host.docker.internalresolves under both engines (Podman aliases it), so one endpoint form works.Verified (real host, ra-trial)
go build/go vet/go test(openshell + compose) pass on sec-dev.OPENSHELL_LIVE=1, guarded, skips in CI): runs the realPrepareGatewaypath →compose --profile openshell up→ gateway healthy viahost.containers.internal(/readyz={"status":"healthy","version":"0.1.8"...}), podman compute driver connected — using the launcher-rendered config. PASS.Not in this PR
./decepticonend-to-end with the complete stack (needs decepticon images) — follow-up.