Skip to content

fix(control): refresh session-control on fork#16

Open
lajarre wants to merge 1 commit intomitsuhiko:mainfrom
lajarre:fix/control-fork-refresh
Open

fix(control): refresh session-control on fork#16
lajarre wants to merge 1 commit intomitsuhiko:mainfrom
lajarre:fix/control-fork-refresh

Conversation

@lajarre
Copy link

@lajarre lajarre commented Mar 10, 2026

Pi emits session_fork after assigning a new session id.

control.ts refreshes its state on session_start and session_switch, but not on session_fork. As a result, after /fork the control socket state can stay bound to the old session.

This adds the same refreshServer(ctx) call for session_fork, so the session-control socket, alias/status, and PI_SESSION_ID stay aligned with the forked session.

Pi emits session_fork after assigning a new session id.

Refresh the control server on that event so the socket path,
footer status, and PI_SESSION_ID stay aligned with the forked
session.
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