mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
fix(files): open relative markdown links and preinstall Chromium
Resolve relative and absolute markdown links against the previewed file and open them in the file browser; external links open in a new tab. Install Playwright and Chromium into the Manager image with NODE_PATH and PLAYWRIGHT_BROWSERS_PATH so agents can run browser automation without a project-local install.
This commit is contained in:
1 parent
16f00c50d4
commit
f1bd7ee940
11 files changed
+188
-21
No files matched your search
@@ -246,7 +246,7 @@ Pin a concrete tag or digest rather than a floating one. Attestation compares th
|
||||
|
||||
Override any tool pin at build time with its `ARG`, for example `--build-arg PLAYWRIGHT_VERSION=1.62.0` or `--build-arg RUST_VERSION=1.97.0`; the build asserts the installed version, so a typo fails early instead of shipping a stale tool. If your project drives Playwright itself, match this version to the one in your `package.json`; a mismatched browser revision makes Playwright refuse to launch. Rebuild and republish the guest image, then update the `SANDBOX.IMAGE` digest, whenever you change a pin.
|
||||
|
||||
The Manager image itself carries the same Chromium runtime libraries, resolved by `playwright install-deps chromium` for the same `PLAYWRIGHT_VERSION` at build time. That is what makes a Playwright e2e suite run in a container with sandboxing off, where the agent has no root or sudo to install them at runtime. Both images track one pin, so bumping `PLAYWRIGHT_VERSION` refreshes the sandbox browser and the Manager's system libraries together.
|
||||
The Manager image itself carries the same Chromium browser and `playwright` package, installed by `playwright install --with-deps chromium` for the same `PLAYWRIGHT_VERSION` at build time and made world-readable. That is what makes browser automation run in a container with sandboxing off, where the agent has no root or sudo to install them at runtime; `NODE_PATH=/usr/local/lib/node_modules` lets agent code resolve `playwright` from any working directory. Both images track one pin, so bumping `PLAYWRIGHT_VERSION` refreshes the sandbox browser and the Manager's browser together.
|
||||
|
||||
## Caveats
|
||||
|
||||
|
||||
Reference in new issue
Block a user