fix: detect and dismiss Windows lock screen before each task#117
Merged
fix: detect and dismiss Windows lock screen before each task#117
Conversation
Implements the correction flywheel MVP: - correction_store.py: JSON-file-based correction library with save/find (fuzzy string matching via SequenceMatcher)/load_all - correction_capture.py: Human correction capture using openadapt-capture Recorder (primary) with PIL screenshot fallback - correction_parser.py: VLM call to parse before/after screenshots into PlanStep dict (think/action/expect) - demo_controller.py: Added correction_store and enable_correction_capture params. On retry exhaustion: check correction store -> inject match, or capture human correction -> parse -> store -> advance - cli.py: Added --correction-library and --enable-correction-capture flags The loop: agent fails at step N -> correction store checked -> if match, inject corrected step -> if no match and capture enabled, human completes step -> Recorder captures -> VLM parses -> correction stored -> next run retrieves it. 17 tests added, all passing. 54 existing demo_controller tests unaffected. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The test was calling the real Recorder which may not have wait_for_ready in the installed version. Mock it to use the simple fallback path since this is a unit test. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add _dismiss_lock_screen() to run_dc_eval.py that checks for LogonUI.exe process and types the password to unlock if the screen is locked. Called from ensure_waa_ready() after each successful probe. This prevents eval failures when the Windows VM has been idle and the lock screen has engaged between tasks or between sessions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
03e2fe7 to
8d2d11d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
_dismiss_lock_screen()torun_dc_eval.pythat detectsLogonUI.exeprocess and types password to unlockensure_waa_ready()after each successful probe, before every taskContext
Windows lock screen was likely a contributing factor to infrastructure failures in previous eval trials. When the VM sits idle between tasks or sessions, Windows can lock the screen. The agent then sees a login UI instead of the desktop, causing focus checks to fail and tasks to abort.
Test plan
LogonUI.exedetection returnsFalseon unlocked VM/evaluateendpoint confirmed working after QEMU reset (reverse proxy to container evaluate_server on port 5050)🤖 Generated with Claude Code