Skip to content

feat(core): warn on concurrent active checkout sessions#234

Merged
shiny-code-bot merged 1 commit into
mainfrom
feat/active-session-warnings
May 30, 2026
Merged

feat(core): warn on concurrent active checkout sessions#234
shiny-code-bot merged 1 commit into
mainfrom
feat/active-session-warnings

Conversation

@shiny-code-bot
Copy link
Copy Markdown
Collaborator

Summary

  • Add a small active-session presence registry under CODE_HOME/state/active-sessions for write-capable Every Code sessions.
  • Warn after session startup when another live write-capable session is already active in the same canonical checkout, while allowing separate git worktrees to stay quiet.
  • Thread SessionSource into core session startup so TUI and code exec warnings identify the correct surface.
  • Factor PID liveness out of housekeeping so active-session cleanup and worktree cleanup share one implementation.

Fixes #231.

Validation

  • cargo test -p code-core active_sessions --lib
  • cargo test -p code-core exec_session_warns_when_checkout_already_has_write_capable_session --test active_session_warnings
  • git diff --check
  • ./build-fast.sh

@shiny-code-bot shiny-code-bot merged commit 51c26ac into main May 30, 2026
1 check passed
@shiny-code-bot shiny-code-bot deleted the feat/active-session-warnings branch May 30, 2026 15:07
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.

feat(runtime): detect concurrent agent sessions in a checkout

2 participants