Replace noVNC with KasmVNC, add anti-detection Chromium args#166
Merged
Conversation
KasmVNC replaces TigerVNC + noVNC + websockify with a single process that serves a modern web client with seamless clipboard, smooth scrolling, and webp compression. This fixes the user-reported issues with noVNC's outdated UI, missing paste/scroll support. Anti-detection Chromium args (--disable-blink-features=AutomationControlled, ignore_default_args=["--enable-automation"], custom user-agent) hide Playwright's automation markers from sites like X.com that detect and block headless/automated browsers. Also bumps CPU quota from 50% to 100% of one core for persistent mode since visible Chromium + VNC needs more processing power.
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.
Summary
--disable-blink-features=AutomationControlled,ignore_default_args=["--enable-automation"], custom user-agent hide Playwright automation markers. Fixes X.com only showing the X logo._novnc_procglobal,VNC_PASSWORDgeneration, password query params from dashboard URLs. KasmVNC BasicAuth is disabled; access control relies on Docker port mapping.Changes
Dockerfile.agenttigervnc-standalone-server tightvncpasswd novnc websockifywith KasmVNC 1.4.0 .debbrowser_tool.py_launch_persistent(), KasmVNC single-process instart_persistent_browser(), remove_novnc_procruntime.py(host)VNC_PASSWORD, bumpcpu_quotato 100000 for persistent, simplifyvnc_urlserver.py(dashboard)/vnc.html?autoconnect=trueto/, removevnc_passwordfrom API responsesindex.htmlruntime.py(CLI)Test plan
pytest tests/test_builtins.py tests/test_runtime.py -x -v— all 161 passpytest tests/ --ignore=tests/test_e2e*.py -x— all 1264 passruff check— cleandocker build --platform linux/amd64 -t openlegion-agent:latest -f Dockerfile.agent .