Skip to content

Extend session with active SSH connection#27

Open
rcrowe wants to merge 5 commits into
namespacelabs:mainfrom
rcrowe:extend-active-session
Open

Extend session with active SSH connection#27
rcrowe wants to merge 5 commits into
namespacelabs:mainfrom
rcrowe:extend-active-session

Conversation

@rcrowe

@rcrowe rcrowe commented Oct 26, 2025

Copy link
Copy Markdown
Member
  1. The Breakpoint session does not automatically extend itself if an SSH connection is active. You need to explicitly extend the session with breakpoint extend.

✅ "Active" here is the connection has bytes written to it
✅ Set duration_auto_extend to enable the functionality; the value is a duration string, like duration, that is added to the duration timeout.

  • Callback when write takes place, to extend breakpoint session
  • Configuration: Allow opt-in to behaviour & how long session is extended
  • Replace mgr.ExtendWait with non-announcing method

When a write takes place on the session, if configured, a callback
function is triggered.

Callback is only triggered at most, once every 1 minute. It's designed
to be best effort and not be accurate, so as not to slow the write path.
POC for now, just to show it working.
Comment thread cmd/breakpoint/wait.go
set `duration_auto_extend` to a value such as `1m` to enable & extend a
session by this amount of time.

Minimum 1min extension
In combination of the minimum auto extend time, we can trigger
notification more often
@rcrowe
rcrowe marked this pull request as ready for review October 27, 2025 07:26
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