Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.
docs(computer): state the script guard's key rule without the retired exception
jeffreya468f14b31c9
diff --git a/apps/computer/local-daemon/README.md b/apps/computer/local-daemon/README.mdindex ffe80145..e4147743 100644--- a/apps/computer/local-daemon/README.md+++ b/apps/computer/local-daemon/README.md@@ -352,13 +352,12 @@ the Computer (`COMPUTER_KEYS_REFUSED`), in any of its windows, in tool calls,runs as a menu command in the Chrome window that has the keyboard, and Cuatypes text as keys that all read as the A key. A key named by its`element_token` goes to the app the token was read from, and a key that names-no app is refused while that Chrome runs. Not even Return bound to a search box goes: Cua refuses a-background key while its app has another window, and the user's Chrome always-has one. A script's guard refuses a key whose arguments-name an app or window of their own, and no script opens an app or URL, so the-key rule knows every app a script reaches.-The Agent fills fields with-`set_value`, presses the page's buttons and goes back through its links.+no app is refused while that Chrome runs. Not even Return bound to a search+box goes: Cua refuses a background key while its app has another window, and+the user's Chrome always has one. A script's guard refuses a key whose+arguments name an app or window of their own, and no script opens an app or+URL, so the key rule knows every app a script reaches. The Agent fills fields+with `set_value`, presses the page's buttons and goes back through its links.The Daemon removes the separate Chrome profile `computer-tools/agent-chrome`when it starts, after quitting the Chrome that still runs on it.Edge and Firefox each run as a separate instance with their own profile underdiff --git a/apps/computer/local-daemon/internal/linger/localtools/cua_script.go b/apps/computer/local-daemon/internal/linger/localtools/cua_script.goindex ceb73292..ea7808e4 100644--- a/apps/computer/local-daemon/internal/linger/localtools/cua_script.go+++ b/apps/computer/local-daemon/internal/linger/localtools/cua_script.go@@ -73,9 +73,8 @@ var scriptForbidden = []string{"delivery_mode", "foreground", "screenshot_out_fi// know. While the user's everyday Chrome runs as chrome, the guard refuses// every key to it, every key that names no app, and every key whose// arguments name an app or window of their own, which Cua lets override the-// app the call is made on: a script cannot prove which window an element-// token was read from, so even the one key a tool call may send there (see-// everydayChromeKeys) is refused.+// app the call is made on. This is the rule tool calls follow: no key+// reaches the user's Chrome.func guardedScript(args, body string, deadline int64, inputLimit int, chrome int) string {pattern := make([]string, 0, len(scriptForbidden))for _, word := range scriptForbidden {