Skip to content

fix(cua-driver): explain permanent scope recovery - #2857

Merged
f-trycua merged 3 commits into
mainfrom
codex/fix-scope-recovery-2844
Aug 4, 2026
Merged

fix(cua-driver): explain permanent scope recovery#2857
f-trycua merged 3 commits into
mainfrom
codex/fix-scope-recovery-2844

Conversation

@f-trycua

@f-trycua f-trycua commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • make the auto-session window_scope_disabled error state that desktop escalation is permanent for that session
  • direct callers to end_session, then start_session with a new session id
  • align the generated contract and shipped Cua Driver skill without changing one-way containment semantics

Testing

  • cargo test --locked -p cua-driver-core capture_scope::tests::
  • cargo test --locked -p cua-driver --test session_capture_scope_test
  • cargo test --locked -p cua-driver-contract
  • cargo run --locked -p cua-driver-contract --bin cua-contract-gen -- all --check
  • cargo fmt --all -- --check

Fixes #2844

@f-trycua
f-trycua marked this pull request as ready for review August 4, 2026 21:18
@f-trycua
f-trycua merged commit 9110d9f into main Aug 4, 2026
28 of 29 checks passed
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.

escalate_session swaps the session's scope instead of widening it, with no way back

1 participant