Skip to content

fix registered node SSH keepalives - #440

Merged
callen-bot merged 1 commit into
mainfrom
codex/registered-node-ssh-keepalive
Aug 7, 2026
Merged

fix registered node SSH keepalives#440
callen-bot merged 1 commit into
mainfrom
codex/registered-node-ssh-keepalive

Conversation

@callen-bot

Copy link
Copy Markdown
Contributor

Summary

  • add ServerAliveInterval=30 and ServerAliveCountMax=3 to direct SSH connections for registered compute nodes
  • extract registered-node SSH command construction for focused regression coverage
  • verify both keepalive options are present in the generated command

Root cause

Regular Brev workspaces connect through a generated SSH alias that configures server keepalives. Registered compute nodes connect directly with runSSHWithPort, bypassing that alias and leaving ServerAliveInterval disabled by default. Idle connections could therefore be closed by an intermediary or gateway timeout.

Impact

Registered-node SSH sessions now send an encrypted keepalive after 30 seconds without server traffic and terminate after three consecutive unanswered keepalives, matching the effective behavior of regular workspace connections.

Testing

  • go test ./pkg/cmd/...
  • git diff --check

@callen-bot
callen-bot marked this pull request as ready for review August 7, 2026 16:47
@callen-bot
callen-bot requested a review from a team as a code owner August 7, 2026 16:47
@callen-bot
callen-bot merged commit 81eb373 into main Aug 7, 2026
9 checks passed
@callen-bot
callen-bot deleted the codex/registered-node-ssh-keepalive branch August 7, 2026 16:54
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