Repository navigation
fix(server): the server image carries agent-computer/src/egress.ts - #933
Merged
Merged
Conversation
…ver imports server/src/computer/policy-network.ts imports the egress rules and matcher from agent-computer/src/egress.ts. server/Dockerfile never copied it, so a container built from it exited on start with a module-not-found error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
contextablemark
requested review from
MikeRyanDev,
davidmckayv,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
October 31, 2026 23:52
Contributor
Author
|
Added the |
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 this changes
server/src/computer/policy-network.tsimports the egress rules and matcher from../../../agent-computer/src/egress, butserver/Dockerfilenever copies that file. A container built fromserver/Dockerfile(theserverimage the release publishes, and whatdocker compose --profile openbotruns) exits on start and restarts in a loop:This copies the one file into the runtime stage. It imports only Node built-ins and
shared/openbot-browser, whichCOPY shared sharedalready provides, so nothing else is needed. The all-in-one rootDockerfilealready copiesagent-computer/srcand is not affected.CI didn't catch it because
component dockerfilesbuilds theserverimage but only boots the computer image. A follow-up could bootservertoo, or at least runbun -e 'await import("/app/server/src/index.ts")'in it. I've left that out to keep this PR to the fix.Where it runs
Boundary and audit
Changelog
CHANGELOG.mdunderUnreleased.Proof
Found while staging
c396a5flocally withdocker compose --profile openbot: theservercontainer crash-looped with the error above. The server then ran healthy for several hours with this change applied.On an image built from this branch (
docker build -f server/Dockerfile ., arm64):🤖 Generated with Claude Code