Skip to content

perf: strip cached macOS screenshots - #4094

Merged
nwparker merged 1 commit into
mainfrom
nwparker/perf-macos-snapshot-cache
May 31, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/perf-macos-snapshot-cache

Conversation

@nwparker

Copy link
Copy Markdown
Contributor

Summary

  • stop retaining screenshot base64 payloads inside the long-lived macOS computer-use snapshot cache
  • keep cached AX element records/window metadata for follow-up action validation
  • keep fresh getAppState/action responses unchanged by returning the full current snapshot before caching the stripped copy

Risk

Low after focused review. Cached screenshots are not used for follow-up actions; actions only use cached snapshots to validate element identity before a fresh no-screenshot observation. A broader cache LRU was intentionally avoided because aliases/session/window keys need separate tests.

Verification

  • swift test --package-path native/computer-use-macos
  • pnpm run build:computer-macos
  • pnpm run verify:computer-native (passes locally; Windows parse/handshake skipped because pwsh is not installed)
  • git diff --check

@nwparker nwparker added the risk:low Low risk change label May 31, 2026
@nwparker
nwparker merged commit 2f5e198 into main May 31, 2026
7 checks passed
@nwparker
nwparker deleted the nwparker/perf-macos-snapshot-cache branch May 31, 2026 11:06
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:low Low risk change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant