Skip to content

fix(sess): separate runtime and transport lifecycles - #1739

Open
eitsupi wants to merge 10 commits into
masterfrom
refactor/sess-runtime-lifecycle
Open

eitsupi wants to merge 10 commits into
masterfrom
refactor/sess-runtime-lifecycle

Conversation

@eitsupi

@eitsupi eitsupi commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • separate the R runtime lifecycle from the IPC transport lifecycle
  • restore runtime-installed options, bindings, S3 methods, plot hooks/devices, callbacks, and rstudioapi overrides on disconnect
  • clean up after unexpected IPC loss and support reconnection without accumulating hooks
  • continue polling after transient empty reads, disconnecting only when EOF is confirmed
  • support runtime startup from the early R profile phase before default packages are attached
  • add lifecycle and transport coverage, and run the bundled sess tinytest suite in CI

Fixes #1726.

@eitsupi eitsupi changed the title refactor(sess): separate runtime and transport lifecycles fix(sess): separate runtime and transport lifecycles Sep 20, 2026
@eitsupi
eitsupi requested a review from Fred-Wu September 20, 2026 10:06
@eitsupi eitsupi added this to the 3.0.0 milestone Sep 20, 2026
@eitsupi
eitsupi marked this pull request as ready for review September 20, 2026 12:16
@eitsupi
eitsupi requested a review from renkun-ken September 20, 2026 22:06
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.

sess targets a dead connection after reload if session watcher turns from on to off

1 participant