Repository navigation
fix(host): the upgrade agent starts and stops the code sandbox's gateway - #544
Merged
Merged
Conversation
sandbox.py has asked the upgrade agent for the sandbox profile since #495, but the agent only knew mcp, browser and monitoring, so Settings fell back to the line to run by hand. The profile's three containers (openshell-init, openshell-key, openshell-gateway) join services_of, with a test, and the docs say which agent knows it. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HXPWXcSCQb9hWPr7xkZu7B
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.
Description
Before: Settings → Code sandbox → Run the gateway on this machine wrote the request (
action=services profile=sandbox turn=on), but the machine's upgrade agent (packaging/host/lens-upgrade.sh) only knew themonitoring,mcpandbrowserprofiles, so the request was refused and Settings kept saying to run the compose line by hand. The docs called the agent's part "in progress".After: the agent knows the
sandboxprofile and starts or stops its three containers (openshell-init, the certificates;openshell-key, the client's key;openshell-gateway), as it does for the MCP runner, the browser and monitoring. A machine whose agent is older still shows the line to run by hand until the agent has updated itself, and the docs say so.The agent's
services_ofgets thesandboxcase;--profile sandbox up -don,rm -s -foff, andCOMPOSE_PROFILESkeepssandboxacross upgrades like the other profiles.Motivation and Context
Chat-gaps plan, C7 follow-up noted in the deep research and sandbox threads: the web app's switch (merged in #497) had nothing to start the containers on an install with an agent.
docs/assistant.md("The gateway") anddocs/updates.md(profiles) now describe what's built.Types of changes
!in the title)Checklist:
make hookschecks it on commit).packaging/host/test-services.shhas a case for the sandbox profile on and off (its three containers,COMPOSE_PROFILESwithmatterbridge,mcp,sandbox).docs/accordingly.## UnreleasedinCHANGELOG.md.Evidence
sh -n packaging/host/lens-upgrade.shandsh packaging/host/test-services.sh: all five cases ok (the new one first).mkdocs build --strict: clean.Done questions (AGENTS.md)
servicesaction the web app writes is whatset_sandbox_gateway(MCP) andPATCH /api/v1/sandbox/settingsuse, so agents get it too.docs/assistant.mdbecomes what's built, with the note about older agents.docs/assistant.md,docs/updates.md,CHANGELOG.md; no generated files touched.services_oftable and the on/off paths the other profiles use; nothing new.Refine later
lens-upgrade.sh's status file) so Settings can say "your agent is older" from facts rather than from the refused request.Generated by Claude Code