Skip to content

Conversation

@ethanndickson
Copy link
Member

Problem

When the coder binary moves on restart (e.g., self-updating installers or temp paths), the SSH config written by coder config-ssh becomes stale. The config points to the old binary location, breaking SSH connections to Coder workspaces.

Previously, coder config-ssh --yes only ran once per workspace during initial setup—not on app restart.

Solution

Run coder config-ssh --yes once during ServiceContainer.initialize():

  • Checks if coder is available first via getCoderInfo() (no-op if coder not installed)
  • Fire-and-forget so it doesn't block startup
  • Logs warning on failure but doesn't crash

Generated with mux • Model: anthropic:claude-opus-4-5 • Thinking: high • Cost: $1.63

Refresh Coder SSH config during ServiceContainer initialization.
This handles cases where the coder binary moves on restart (e.g.,
self-updating installers or temp paths).

- Check if coder is available first via getCoderInfo()
- Fire-and-forget to avoid blocking startup
- Logs warning on failure but doesn't crash
@github-actions github-actions bot added the enhancement New feature or functionality label Jan 19, 2026
Copy link

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

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: 4c89a1eabe

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

- Call ensureSSHConfig() directly instead of checking getCoderInfo() first
- This avoids caching 'unavailable' if coder isn't installed at startup
- User can install coder mid-session and it will be detected correctly
- Remove unused log import
@ethanndickson
Copy link
Member Author

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. 🚀

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@ethanndickson ethanndickson added this pull request to the merge queue Jan 19, 2026
Merged via the queue into main with commit 088380c Jan 19, 2026
34 of 36 checks passed
@ethanndickson ethanndickson deleted the config-ssh-f4kn branch January 19, 2026 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant