Skip to content

feat(session): Add namespaced session defaults profiles#215

Merged
cameroncooke merged 4 commits intomainfrom
codex/feat-session-defaults-profiles
Feb 17, 2026
Merged

feat(session): Add namespaced session defaults profiles#215
cameroncooke merged 4 commits intomainfrom
codex/feat-session-defaults-profiles

Conversation

@cameroncooke
Copy link
Collaborator

@cameroncooke cameroncooke commented Feb 11, 2026

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 sessionDefaultsProfiles and activeSessionDefaultsProfile support in config/schema resolution, introduces session_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 sessionDefaults entirely with profile-only config, but kept both so existing setups continue to work unchanged and users can adopt named profiles incrementally.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 11, 2026

Open in StackBlitz

npm i https://pkg.pr.new/getsentry/XcodeBuildMCP/xcodebuildmcp@215

commit: 3885482

@cameroncooke cameroncooke marked this pull request as ready for review February 12, 2026 11:16
cameroncooke and others added 2 commits February 17, 2026 16:51
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>
@cameroncooke cameroncooke force-pushed the codex/feat-session-defaults-profiles branch from cf31e10 to 5d13842 Compare February 17, 2026 21:29
Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

cameroncooke and others added 2 commits February 17, 2026 21:43
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>
@cameroncooke cameroncooke merged commit 24ee088 into main Feb 17, 2026
10 checks passed
@cameroncooke cameroncooke deleted the codex/feat-session-defaults-profiles branch February 17, 2026 22:05
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