Skip to content

Fix Release #13: Windows SSH agent + macOS DMG EULA attach - #18

Merged
pavi2410 merged 2 commits into
mainfrom
cursor/fix-release-windows-ssh-macos-dmg-beed
Aug 19, 2026
Merged

Fix Release #13: Windows SSH agent + macOS DMG EULA attach#18
pavi2410 merged 2 commits into
mainfrom
cursor/fix-release-windows-ssh-macos-dmg-beed

Conversation

@pavi2410

@pavi2410 pavi2410 commented Aug 19, 2026

Copy link
Copy Markdown
Owner

Summary

Release run #13 failed on two platforms (Linux succeeded). This PR fixes both root causes, plus a Clippy HRTB regression from the first Windows agent attempt.

Windows — compile error in based-ssh

error[E0599]: no associated function named `connect_env` found for struct `AgentClient<S>`

AgentClient::connect_env() is Unix-only (SSH_AUTH_SOCK). CI does not build Windows; the release matrix does.

Fix: connect via \\.\pipe\openssh-ssh-agent, then fall back to Pageant — using concrete stream types (no .dynamic()).

macOS — hdiutil: attach canceled

Packager license-file becomes a DMG EULA (--eula). Non-interactive hdiutil attach prints the license and cancels.

Fix: feed Y on stdin when attaching in the verify step.

Clippy on this PR

The first Windows fix boxed the agent with .dynamic(), which dropped the 'static bound russh’s Signer impl needs and surfaced as higher-ranked lifetime error at Tokio::spawn_result in apps/desktop/src/postgres/mod.rs. Follow-up commit keeps concrete agent types per platform.

Test plan

  • cargo test -p based-ssh
  • cargo clippy --workspace --all-targets
  • CI green on this PR
  • Re-run Release workflow on main after merge
Open in Web Open in Cursor 

AgentClient::connect_env is Unix-only, so Windows release builds failed
after the SSH tunnel landed; connect via OpenSSH named pipe or Pageant
instead. Also feed Agree to hdiutil when verifying DMGs that embed the
packager license-file as an EULA.

Co-authored-by: Pavitra Golchha <hello@pavi2410.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 19, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
based 4521d23 Commit Preview URL

Branch Preview URL
Aug 19 2026, 08:23 PM

@pavi2410
pavi2410 marked this pull request as ready for review August 19, 2026 17:13
Boxing the agent stream dropped the 'static bound russh's Signer impl
needs and caused higher-ranked lifetime errors in Tokio::spawn_result
on the Postgres open/test paths. Keep concrete Unix/Windows agent types.

Co-authored-by: Pavitra Golchha <hello@pavi2410.com>
@pavi2410
pavi2410 merged commit c0a9c5c into main Aug 19, 2026
2 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.

2 participants