Skip to content

Copy shared/file-download into the computer image, and boot it in CI - #723

Merged
davidmckayv merged 1 commit into
mainfrom
david/fix-agent-computer-image
Oct 2, 2026
Merged

davidmckayv merged 1 commit into
mainfrom
david/fix-agent-computer-image

Conversation

@davidmckayv

Copy link
Copy Markdown
Contributor

#698 made agent-computer/src/index.ts import ../../shared/file-download at runtime. agent-computer/Dockerfile copies only agent-computer/src, so the image builds and then exits on start:

error: Cannot find module '../../shared/file-download' from '/app/src/index.ts'

That breaks scripts/start.sh for everyone and would publish a broken openbot-agent-computer image at the next release. The other ../../shared imports in agent-computer/src are type-only and erased, so this is the first runtime one.

  • Fix: copy shared/file-download.ts (no imports of its own) to /shared, where the relative path resolves from /app/src. The all-in-one Dockerfile already copies all of shared/.
  • CI: the component image job only built the Dockerfiles, and a build succeeds with a missing runtime module. It now also starts the computer image and waits for /health.

Verified locally: main's image exits with the error above; this branch's image answers /health 200. The new CI step fails against main's Dockerfile and passes against this one.

#698 made agent-computer/src/index.ts import ../../shared/file-download at
runtime. The computer Dockerfile copies only agent-computer/src, so the
image built and then exited on start with "Cannot find module". The other
shared imports there are type-only and erased, which is why this one was
the first to break. The one file now goes to /shared, where the relative
path resolves from /app/src.

The component image job only built the Dockerfiles, and a build succeeds
with a missing runtime module, so it now also starts the computer image
and waits for /health.
@davidmckayv davidmckayv added the full-ci Run the slow image builds on this PR label Oct 2, 2026
@davidmckayv
davidmckayv requested a review from mxmzb as a code owner October 2, 2026 22:27
@davidmckayv davidmckayv added the full-ci Run the slow image builds on this PR label Oct 2, 2026
@davidmckayv
davidmckayv merged commit 60083ac into main Oct 2, 2026
20 checks passed
@davidmckayv
davidmckayv deleted the david/fix-agent-computer-image branch October 2, 2026 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-ci Run the slow image builds on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant