feat(instances): enforce active limits, follow cwd sync, and quicktemp lifecycle#306
Open
Microck wants to merge 1 commit intoasheshgoplani:mainfrom
Open
feat(instances): enforce active limits, follow cwd sync, and quicktemp lifecycle#306Microck wants to merge 1 commit intoasheshgoplani:mainfrom
Microck wants to merge 1 commit intoasheshgoplani:mainfrom
Conversation
Add instance-level session limits, follow-cwd path syncing, quick-default path fallback, and quicktemp auto-delete cleanup across TUI and CLI flows. Surface the new behavior in settings/help/confirm dialogs and add coverage for limits, config parsing, and quicktemp delete semantics.
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.
What changed
instancesconfig support for:follow_cwd_on_attachquick_default_pathmax_active_sessionsmax_active_sessions_policy(warn|deny|close_oldest)session.EnforceActiveSessionLimit(...)and applied it in both TUI and CLI flows:launch,session start,session restart,session fork,tryAutoDeleteOnClosepersisted in storage/migration data modelWhy
Behavior notes
follow_cwd_on_attachnow updates project path from tmux pane path after attach return and during polling.max_active_sessions:warn: proceed + warningdeny: block operationclose_oldest: kill oldest active session then continue.quick_default_pathis used when no group/session context path is available.AutoDeleteOnClose) skip undo/recent-session restoration paths when auto-removed.Tests
go test ./...✅Config delta