HTML preview / root sandbox diagnosis
Commit: 522afc256a301f2855427e662abe3edb6f7070ab
Environment: Linux x86_64; T3 server uid 0; real Chrome headless shell build 1248; sandbox enabled (default).
Transport: POST /mcp, tools/call html_preview; isolated fresh T3 home; synthetic thread credential.
Input: {"name": "html_preview", "arguments": {"html": "
Root preview evidence
", "width": 800}}
Actual server response:
{"jsonrpc":"2.0","id":1,"result":{"content":[{"type":"text","text":"T3 server is running as root; Chrome's sandbox cannot start. Run T3 as a nonroot user. Otherwise set `T3CODE_SERVER_BROWSER_SANDBOX=0` in the T3 server's environment and restart the server; this disables Chrome's sandbox. Manual: `T3CODE_SERVER_BROWSER_SANDBOX=0 t3 serve`. Systemd: add `Environment=T3CODE_SERVER_BROWSER_SANDBOX=0` under `[Service]`, reload systemd, then restart the service. `t3 browser setup` cannot fix root sandboxing."}],"structuredContent":{"error":{"_tag":"OrchestratorMcpFailure","operation":"preview","failureCount":1,"message":"T3 server is running as root; Chrome's sandbox cannot start. Run T3 as a nonroot user. Otherwise set `T3CODE_SERVER_BROWSER_SANDBOX=0` in the T3 server's environment and restart the server; this disables Chrome's sandbox. Manual: `T3CODE_SERVER_BROWSER_SANDBOX=0 t3 serve`. Systemd: add `Environment=T3CODE_SERVER_BROWSER_SANDBOX=0` under `[Service]`, reload systemd, then restart the service. `t3 browser setup` cannot fix root sandboxing."}},"isError":true}}