Skip to content

feat: Enable systemd user session linger on claunch startup#1

Open
ankurkakroo2 wants to merge 1 commit into
0xkaz:mainfrom
ankurkakroo2:feature/enable-login-linger
Open

feat: Enable systemd user session linger on claunch startup#1
ankurkakroo2 wants to merge 1 commit into
0xkaz:mainfrom
ankurkakroo2:feature/enable-login-linger

Conversation

@ankurkakroo2

Copy link
Copy Markdown

This ensures Claude CLI sessions persist across SSH disconnections by automatically enabling loginctl linger when claunch runs.

Without linger enabled, systemd user services (including tmux sessions and background processes) would terminate when the user logs out, causing SSH reconnections to lose session context.

This addresses issues observed in Terminus and other remote SSH clients where sessions would be lost after disconnection, requiring manual session restoration.

This ensures Claude CLI sessions persist across SSH disconnections by
automatically enabling loginctl linger when claunch runs.

Without linger enabled, systemd user services (including tmux sessions
and background processes) would terminate when the user logs out,
causing SSH reconnections to lose session context.

This addresses issues observed in Terminus and other remote SSH clients
where sessions would be lost after disconnection, requiring manual
session restoration.
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