feat(session): Add namespaced session defaults profiles#215
Merged
cameroncooke merged 4 commits intomainfrom Feb 17, 2026
Merged
feat(session): Add namespaced session defaults profiles#215cameroncooke merged 4 commits intomainfrom
cameroncooke merged 4 commits intomainfrom
Conversation
commit: |
Add profile-aware session defaults so agents can switch between global and named defaults in multi-target projects. Keep existing global defaults behavior fully backward compatible while enabling per-profile persistence in project config. Add session_use_defaults_profile, config schema support, runtime/bootstrap wiring, docs updates, and tests for profile activation and persistence behavior. Co-Authored-By: Claude <noreply@anthropic.com>
Limit config-store persistence updates to session-default fields so non-session runtime\nsettings stay fixed for process lifetime after server startup.\n\nUpdate session profile tooling/manifests to match the new flow, including\nprofile activation behavior and clearer session-default tool descriptions. Co-Authored-By: Claude <noreply@anthropic.com>
cf31e10 to
5d13842
Compare
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 3 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
Make session_clear_defaults clear only the active profile by default, add\nexplicit profile targeting, and reserve all=true for full global+profile\nclears with guardrails.\n\nFix the session e2e profile flow to create named profiles intentionally and\nextract shared profile-name normalization to a single utility used by both\nconfig-store and project-config. Co-Authored-By: Claude <noreply@anthropic.com>
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.
Add namespaced session defaults profiles so one session can switch cleanly between iOS, watchOS, and other target setups without rewriting global defaults each time.
Session defaults were previously effectively global per session, which caused friction in monorepos and multi-target projects. This change keeps the existing global behavior fully backward compatible while adding profile-scoped defaults and an explicit active profile.
The change adds
sessionDefaultsProfilesandactiveSessionDefaultsProfilesupport in config/schema resolution, introducessession_use_defaults_profile(including optional persistence to config), and wires profile-aware behavior through runtime bootstrap and Xcode defaults sync paths. It also updates docs with full config examples and startup flow guidance, and adds coverage for profile selection and persistence behavior in unit/integration tests.I considered replacing
sessionDefaultsentirely with profile-only config, but kept both so existing setups continue to work unchanged and users can adopt named profiles incrementally.