Repository navigation
Conversation
lymerin
force-pushed
the
codex/279-session-lifecycle
branch
2 times, most recently
from
September 24, 2026 15:48
e01efb0 to
66b13db
Compare
lymerin
force-pushed
the
codex/279-session-lifecycle
branch
from
September 29, 2026 06:45
66b13db to
875fc4d
Compare
lymerin
marked this pull request as draft
October 2, 2026 14:26
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #279.
This PR builds on #306’s shared-window session support. It includes the #306 foundation commit and adds the ownership and cleanup changes for #279.
Issue coverage
Reuse an existing window or tab
session start --in-windowcreates a controlled tab in a normal user window without opening an Agent Window. This is provided by feat(session): add local shared-window sessions #306.session start --in-window --tab-id <id>now claims an already-open tab in its own user window after the existing borrow confirmation. Startup creates neither a window nor a tab, and stopping the session releases control without moving or closing the borrowed tab.Stop sessions when ownership ends
--ephemeraland a recoverable request ID. It renews each active session’s 45-second owner lease every 10 seconds.agent/status=idle), the plugin starts cleanup for that agent’s sessions. Plugin unload and conversation archival also start cleanup. If the plugin process exits without cleanup, the daemon stops the session after its lease expires. Ordinary CLI sessions remain persistent unless--ephemeralis selected.Recover interrupted starts and failed cleanup
Diagnose stale sessions
session listnow reportsowner_kind,lifecycle_state, andlease_expires_at_msalongside the existing session identity and container information. Lifecycle states distinguish active, starting, cancelling, and failed cleanup. Request tokens are not exposed in the session list.Validation
cargo check -p bsk --tests, Rust formatting, and diff checks passed.session listoutput assertions passed.