Skip to content

feat: set remote.SSH.reconnectionGraceTime and refactor settings manipulation#826

Merged
EhabY merged 4 commits intomainfrom
set-reconnection-grace-time
Mar 16, 2026
Merged

feat: set remote.SSH.reconnectionGraceTime and refactor settings manipulation#826
EhabY merged 4 commits intomainfrom
set-reconnection-grace-time

Conversation

@EhabY
Copy link
Collaborator

@EhabY EhabY commented Mar 5, 2026

  • Extract SSH settings manipulation from remote.ts into a reusable userSettings.ts module with buildSshOverrides() and applySettingOverrides() functions
  • Automatically set reconnectionGraceTime (8h), serverShutdownTimeout (8h), and maxReconnectionAttempts (unlimited) when the user hasn't configured them, preventing disconnects during overnight workspace sleep
  • Add a Coder: Apply Recommended SSH Settings command that writes all four recommended settings globally via the command palette

Closes #823

@EhabY EhabY changed the title feat: set reconnectionGraceTime to 8h, extract settings helper feat: set remote.SSH.reconnectionGraceTime and refactor settings manipulation Mar 5, 2026
@EhabY EhabY force-pushed the set-reconnection-grace-time branch from 17b3494 to ad63eff Compare March 5, 2026 13:48
@EhabY EhabY self-assigned this Mar 5, 2026
@EhabY EhabY force-pushed the set-reconnection-grace-time branch 3 times, most recently from 2ae196e to fc89a92 Compare March 12, 2026 15:11
EhabY added 2 commits March 13, 2026 17:04
VS Code's default reconnection grace time of 3 hours is too short for
Coder workspaces that go offline overnight. Set 8 hours (28800s) when
the user hasn't configured a value.

Extract the inline jsonc settings manipulation from remote.ts into a
reusable applySettingOverrides() function with dedicated tests.
…or Cursor/reconnection

Add a command palette entry (Coder: Apply Recommended SSH Settings) that
writes all four recommended SSH settings globally. Also automatically set
serverShutdownTimeout (Cursor) and maxReconnectionAttempts when undefined
during connection setup, matching the existing reconnectionGraceTime
behavior.
@EhabY EhabY force-pushed the set-reconnection-grace-time branch from f756007 to ead3b59 Compare March 13, 2026 14:04
@EhabY EhabY force-pushed the set-reconnection-grace-time branch from 2fd45d2 to 340f560 Compare March 16, 2026 14:35
@EhabY EhabY merged commit f0df04e into main Mar 16, 2026
4 of 6 checks passed
@EhabY EhabY deleted the set-reconnection-grace-time branch March 16, 2026 14:41
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.

Overwrite ReconnectionGraceTime setting on remote connection

2 participants