Skip to content

fix(devices): migrate Windows SSH Include safely (#193) - #236

Merged
rebuildup merged 1 commit into
release/rex-remotefrom
193-devices-windows-include
Nov 23, 2026
Merged

rebuildup merged 1 commit into
release/rex-remotefrom
193-devices-windows-include

Conversation

@rebuildup

Copy link
Copy Markdown
Owner

Summary

  • Emit Include ~/.ssh/devices.conf on Windows so OpenSSH resolves the managed file.
  • Recognize only the prior first-line quoted absolute Include as managed and migrate it in place.
  • Avoid duplicate backups, preserve symlink/user-managed config checks, and validate the post-migration config with ssh -G before writing.

Supersedes #193; the stale PR head is not rebased.

Test plan

  • bun test script/devices.test.ts
  • Windows devices sync / ssh -G / Herdr machine connectivity (release-candidate native check)

Generated with Devin

Windows OpenSSH cannot resolve the previously emitted quoted absolute
Include, so devices aliases failed after sync. Emit the ~/.ssh form and
recognize only the prior first-line managed Include for migration,
without duplicating backups or touching symlinked/user-managed config.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 53 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between fbc104e and fba7a5a.

Files selected for processing: 2

  • script/devices.test.ts
  • script/devices.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@rebuildup
rebuildup merged commit 7ae44c9 into release/rex-remote Nov 23, 2026
4 checks passed
@rebuildup
rebuildup deleted the 193-devices-windows-include branch November 23, 2026 15:03
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