Skip to content

feat: stabilize AWS desktop VNC leases#14

Merged
steipete merged 3 commits into
mainfrom
feat/aws-windows-vnc-desktop
May 4, 2026
Merged

feat: stabilize AWS desktop VNC leases#14
steipete merged 3 commits into
mainfrom
feat/aws-windows-vnc-desktop

Conversation

@steipete

@steipete steipete commented May 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3870d5e45b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +10 to +12
func bootstrapAWSWindowsDesktop(ctx context.Context, cfg Config, target SSHTarget, publicKey string, stderr io.Writer) error {
if cfg.Provider != "aws" || cfg.TargetOS != targetWindows || cfg.WindowsMode != windowsModeNormal {
return waitForSSH(ctx, &target, stderr)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve resolved SSH port from bootstrap helper

bootstrapAWSWindowsDesktop takes target by value, but it calls waitForSSH/waitForSSHReady, which can rewrite target.Port when a fallback port is the one that actually works. Because callers pass a local target and this helper does not return the updated struct, AWS/coordinator acquire flows now drop that resolved port and keep using the original (possibly dead) port for subsequent SSH/VNC commands. This regresses setups that rely on ssh.fallbackPorts or non-default port failover.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ee58fbc064

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

if isWindowsNativeTarget(target) {
return `$ErrorActionPreference = "Stop"
$base = "C:\ProgramData\crabbox"
$password = Get-Content -Raw -LiteralPath (Join-Path $base "windows.password")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add fallback when windows.password is absent

The new Windows screenshot path unconditionally reads C:\ProgramData\crabbox\windows.password before creating the scheduled task, so reused AWS Windows leases created by older bootstrap logic (which only wrote vnc.password) now fail with a path-not-found error instead of producing a screenshot. This regression hits existing kept/reclaimed leases after upgrading the CLI; the command should fall back to the legacy password file or otherwise handle missing windows.password gracefully.

Useful? React with 👍 / 👎.

@steipete steipete merged commit 1e6e489 into main May 4, 2026
4 checks passed
@steipete steipete deleted the feat/aws-windows-vnc-desktop branch May 4, 2026 04:05
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