Skip to content

Desktop on Windows: a closed approval prompt says approval, and is told by exit code 1223 - #2715

Merged
davidmckayv merged 5 commits into
mainfrom
fix/docker-update-windows-cancel
Dec 2, 2026
Merged

davidmckayv merged 5 commits into
mainfrom
fix/docker-update-windows-cancel

Conversation

@davidmckayv

@davidmckayv davidmckayv commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Two problems with the Docker Desktop update on Windows when the person says no to Windows' approval prompt.

The words. The card was headed "Your password is needed" and the row said "Waiting for your password.", but Windows asks for approval, not a password. On Windows they now say "Your approval is needed" and "Waiting for your approval.". macOS keeps the password words.

Telling a no from a failure. A no was recognised by PowerShell's English error text ("canceled by the user"). On a Windows in another language it read as a failed installer, and Docker's installer was opened for the person to finish by hand. The install script now finds ERROR_CANCELLED (1223) in the error Start-Process throws and exits with it, as the WSL fix already does, and only that exit code counts as a no.

Two fixes CI found in #2663's changes on the way:

  • A stopped server on Windows reached setup too late. An ask to a port nobody listens on takes about 2 s to fail on Windows, so with the failure backoff on top the window went to setup after about 19 s, and a_running_openbot_whose_server_goes_away_shows_setup_by_itself failed on CI's Windows runner. The ask after a failure now comes no later than the moment the silence reaches 10 s.
  • A Status window browser test waited on the 30 s timer. "once a start finishes, the services row follows without Refresh" waited for the window's own read, which is now every 30 s, and timed out on a slow run. It now sends status:refresh as the shell does when a Start finishes.

Changelog

OpenBot Desktop.

  • On Windows, a closed approval prompt for the Docker Desktop update says "Your approval is needed", not "Your password is needed", and is told from a failed install on a Windows in any language.
  • When OpenBot's server stops under the window, the window goes back to setup about 10 seconds later on Windows too.

Tests

  • a closed approval prompt on Windows asks for approval, not a password (App test with a Windows user agent): failed before with "Your password is needed" and "Waiting for your password.".
  • a_no_to_windows_approval_prompt_is_told_by_its_exit_code_in_any_language: failed before on a German refusal with exit 1223.
  • the_elevated_install_script_exits_1223_on_a_no_in_any_language (Windows only): runs the real script in Windows PowerShell, with Start-Process replaced by the error it throws on a no, worded in German; it must exit 1223, and any other Win32 error must not.

@davidmckayv
davidmckayv force-pushed the fix/docker-update-windows-cancel branch 4 times, most recently from d33f2f3 to 4b9149d Compare December 2, 2026 04:03
… password

The Docker Desktop update on Windows asks through Windows' approval prompt. When the person closed it, the card was headed "Your password is needed" and the row said "Waiting for your password.", which Windows never asked for. On Windows they now say "Your approval is needed" and "Waiting for your approval."; macOS keeps the password words.
…by exit code 1223

A no to Windows' approval prompt was told by PowerShell's English words, so on a Windows in another language it read as a failed installer and Docker's installer was opened for the person to finish. The install script now finds ERROR_CANCELLED (1223) in the error Start-Process throws and exits with it, as the WSL fix does, and only that exit code counts as a no.
…ll's word, not the 30 s timer

Since the Status window reads every 30 s, the test that waits for Running after a Start waited on that timer for its whole 30 s timeout and failed on a slow run. The shell tells the window when a Start finishes (status:refresh), so the test now says that, as the native side does, and waits at most 10 s.
… a backoff later

On Windows an ask to a port nobody listens on takes about 2 s to fail. With the watcher's failure backoff on top, a window whose server went away reached setup only after about 19 s, and the test that holds it to 18 s failed on CI's Windows runner. The ask after a failure now comes no later than the moment the silence reaches 10 s.
@davidmckayv
davidmckayv force-pushed the fix/docker-update-windows-cancel branch from 4b9149d to 6c2ce7a Compare December 2, 2026 04:58
@davidmckayv
davidmckayv added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit 1bbb930 Dec 2, 2026
43 of 47 checks passed
@davidmckayv
davidmckayv deleted the fix/docker-update-windows-cancel branch December 2, 2026 06:15
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