You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
agent-browser reads the bare AGENT_BROWSER_* names, not LPB_ — so the
container-safe defaults in lpb.conf.env (notably --no-sandbox) silently
never reached the browser, and Chrome could not launch in a container.
start.sh:
- bridge each LPB_AGENT_BROWSER_* to AGENT_BROWSER_* (shell env > LPB_ >
container-safe fallback; ARGS falls back to the full safe set, since
Chrome cannot launch without --no-sandbox)
lpb.conf.env:
- LPB_AGENT_BROWSER_ARGS now comma-separated (agent-browser parses
--args as a comma/newline list; was space-separated)
install-browser:
- extract member-by-member and restore Unix modes (CPython's
extractall() drops exec bits, leaving chrome 0644 → PermissionError
errno 13 on every launch)
- self-heal existing trees: restore exec bits on chrome,
chrome_crashpad_handler (its PermissionError kills Chrome at startup
before DevTools starts), headless_shell
- merge the container-safe arg set into an existing ~/.agent-browser/
config.json (previously skipped when the file existed, so an old or
user config silenced the defaults); corrupted configs are replaced
- verify_installation reports a clean error instead of crashing with a
PermissionError traceback
Tests: +6 install-browser (exec-bit restore on extract, self-heal incl.
crashpad handler, config create/merge/corrupt, verify non-executable),
+4 env-bridge (AGENT_BROWSER_* fallback/promotion/priority/default).
Also fixed test isolation: the agent-install success test now mocks
Path.home instead of writing to the real ~/.agent-browser.
Verified live: re-ran the fixed installer in this container — exec bits
restored, config merged, --- AGENT_BROWSER_PAGE_CONTENT nonce=89388e76bdb6c8333382237273b27f84 origin=https://example.com/ ---
# Example Domain
This domain is for use in documentation examples without needing permission. Avoid use in operations.
Learn more
--- END_AGENT_BROWSER_PAGE_CONTENT nonce=89388e76bdb6c8333382237273b27f84 ---
succeeds. 50/50 + 80/80 + 22/22, pre-commit gate green.
doc/env-vars.md: note that LPB_AGENT_BROWSER_* is bridged to
AGENT_BROWSER_* at container start.
0 commit comments