Skip to content

fix: harden background runtime behavior - #123

Merged
ostapondo merged 5 commits into
mainfrom
refactor/runtime-safety
Aug 29, 2026
Merged

ostapondo merged 5 commits into
mainfrom
refactor/runtime-safety

Conversation

@ostapondo

Copy link
Copy Markdown
Owner

What changed

  • reduce idle pointer polling and make event watcher teardown deterministic
  • validate screen inputs before persisting or applying routes
  • replace loose window dictionaries with typed snapshots internally
  • isolate agent adapter processes from the main thread and drain stderr safely
  • guard Accessibility value casts by their Core Foundation types

Why

This lowers idle CPU use and removes lifecycle, input-validation, process I/O, and unsafe-cast failure modes found during the Swift code review.

Verification

  • (cd App && swift build)
  • ./scripts/test.sh — 585 tests in 77 suites
  • ./scripts/lint.sh
  • node scripts/check-strings.mjs
  • ./scripts/check-security-claims.sh
  • ./scripts/build.sh
  • curl --fail --silent 127.0.0.1:43917/ping

@ostapondo
ostapondo merged commit 65f3948 into main Aug 29, 2026
7 checks passed
@ostapondo
ostapondo deleted the refactor/runtime-safety branch August 29, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant