Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@algal
Copy link
Contributor

@algal algal commented Jan 26, 2026

What

  • Stop auto-injecting the macOS username when syncing the SSH target host/port.

Why

  • Prevents the SSH target field from overwriting user‑entered remote usernames. This is important because if you use one user name on your Mac, and another on the remote host, then right now the app makes it very hard (maybe impossible?) to configure the correct user name on the remote.

Testing

  • Manual: I ran the macOS app, set SSH target to a non‑local username, verified it persisted and connection worked.

AI disclosure

  • AI-assisted: yes (Codex)
  • Prompts/session summary: “Fix SSH target username overwrite in macOS remote settings.”
  • Understanding: I understand the change and its impact.

Updates updateRemoteTarget(host:) so it does not force the user to be
the user of local machine, when self.remoteTarget does not specify a
user.

This makes it possible, in Settings / General / SSH target, to specify
an SSH target for a remote machine where the user name is different.
thewilloftheshadow added a commit that referenced this pull request Jan 26, 2026
@thewilloftheshadow
Copy link
Member

Squash-merged into main.

  • Squash commit: 8b91ceb
  • Included: preserve custom SSH usernames in remote target + changelog entry (thanks)
  • Tests: pnpm lint && pnpm build && pnpm test (lint failed in existing src/line/* types)

@thewilloftheshadow
Copy link
Member

Closed after squash-merge to main (commit 8b91ceb).

steipete pushed a commit to mertcicekci0/clawdbot that referenced this pull request Jan 26, 2026
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