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
{{ message }}
Repository navigation
watch: start the viewer bridge from a small entry point #226
Found while benchmarking the passive viewer in #225 (issue #207).
The detached viewer bridge runs pickforge-lab internal viewer-bridge, so it loads the whole CLI bundle: MCP server, Sentry, commander and every command. It holds about 100 MiB resident while idle, and it stays running for up to 10 minutes after the last viewer closes. x11vnc beside it holds about 18 MiB.
Acceptance criteria:
The bridge starts from an entry point that loads only what it needs (node:http, ws, the viewer state helpers).
Idle resident memory of the bridge is measured before and after, on the same host and session size.
Bridge security behavior and tests stay unchanged.
More evidence from #301. Besides memory, loading the full CLI bundle dominates the bridge's startup time. On an idle host the bridge uses about 0.4 s of CPU before it reports readiness, about 93% of it spent loading the CLI and telemetry setup. Under heavy load most of the readiness wait was CPU wait during that load, which is why #301 had to leave CPU wait out of the 8 s readiness budget. A small entry point would cut both.
Activity
ElbertePlinio commentedon Oct 8, 2026
More evidence from #301. Besides memory, loading the full CLI bundle dominates the bridge's startup time. On an idle host the bridge uses about 0.4 s of CPU before it reports readiness, about 93% of it spent loading the CLI and telemetry setup. Under heavy load most of the readiness wait was CPU wait during that load, which is why #301 had to leave CPU wait out of the 8 s readiness budget. A small entry point would cut both.