Repository navigation
browser: PasClaw UI chrome over the xterm page (branding, boot screen, auto ?net=browser) - #188
Merged
Merged
Conversation
The in-browser bundle was the bare container2wasm xterm page. Layer a thin, framework-free chrome (web/pasclaw.css + web/pasclaw.js), injected by build.sh alongside the coi-serviceworker: - auto ?net=browser (redirects if missing, so the in-browser fetch proxy always activates — otherwise the agent has no network egress) - PasClaw header bar + favicon - a boot/loading screen that auto-dismisses on first terminal output (click-to-skip + timeout fallback) Purely additive and targets only page chrome + standard xterm.js DOM, so removing the injected tags leaves the upstream terminal working. It stays a terminal (the real pasclaw CLI), not a chat UI.
Match the gateway web UI (src/pkg/gateway/webui.html): neon cyan/magenta on a deep gradient backdrop with glow, instead of the flat blue/red I'd used. Updates the header wordmark, boot screen, spinner, and favicon.
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.
Polish the in-browser bundle page
The container2wasm bundle (
browser/) shipped the bare upstream xterm page. This layers a thin, framework-free PasClaw chrome over it, injected bybuild.shalongside the existing coi-serviceworker.Framing
The page is the real
pasclawCLI running in an xterm terminal inside the emulated Linux — not a chat UI. A bubble UI (like openbrowserclaw, whose agent is JS) would require parsing the terminal stream, which is brittle. So this enhances the page around the terminal rather than replacing it.What it adds (
web/pasclaw.css+web/pasclaw.js)?net=browser— if the URL is missing the query, it redirects to add it before the ~160 MB runtime downloads. This is the footgun that otherwise leaves the agent with no network egress (it falls back to aws://…:8888host relay that isn't there).Safety
Purely additive: it only touches page chrome and standard xterm.js DOM (
#terminal,.xterm-rows), never how the emulator boots. Removing the injected<link>/<script>tags (or theweb/copy step inbuild.sh) leaves the upstream terminal fully working. Branding/colors live inweb/pasclaw.css.Notes
build.shandpasclaw.jspass syntax checks (bash -n,node --check). The fullc2w --to-jsbrowser build couldn't be exercised in CI (needs registry access + no TLS interception), so the rendered result should be eyeballed once after a real build.browser/web/*,browser/build.shstep 7, and the README) — no overlap.https://claude.ai/code/session_01LGQKz579j1ZnDRwmr6h1V6
Generated by Claude Code