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.
refactor(computer): fence snapshots by the existing read tool set
jeffreyaaf020228570
diff --git a/apps/computer/local-daemon/internal/linger/localtools/cua_snapshots.go b/apps/computer/local-daemon/internal/linger/localtools/cua_snapshots.goindex 5b14ece6..379acd3a 100644--- a/apps/computer/local-daemon/internal/linger/localtools/cua_snapshots.go+++ b/apps/computer/local-daemon/internal/linger/localtools/cua_snapshots.go@@ -156,7 +156,7 @@ func (s *snapshotRows) remap(arguments map[string]any) {// reads the same. A read changes nothing, so it fences nothing: the Agent's// own read must still carry over the Computer's reads before its next input.func (s *snapshotRows) sent(name string) {- if readTools[name] {+ if cuaReadTools[name] {return}s.mu.Lock()@@ -164,9 +164,6 @@ func (s *snapshotRows) sent(name string) {s.mu.Unlock()}-// readTools only read the screen, so the page a token names stays as it was.-var readTools = map[string]bool{"list_windows": true, "get_window_state": true, "get_desktop_state": true, "get_screen_size": true, "get_cursor_position": true, "clipboard_read": true}-// carry returns the token on the current snapshot of its window, or the// token itself.func (s *snapshotRows) carry(token string) string {