Skip to content

fix(debugging): Prefer explicit attach pid over default bundle ID#411

Merged
cameroncooke merged 1 commit into
mainfrom
cameroncooke/fix/debug-attach-pid-defaults
May 11, 2026
Merged

fix(debugging): Prefer explicit attach pid over default bundle ID#411
cameroncooke merged 1 commit into
mainfrom
cameroncooke/fix/debug-attach-pid-defaults

Conversation

@cameroncooke
Copy link
Copy Markdown
Collaborator

Fix debug_attach_sim attaching by PID when bundleId is configured in session defaults.

Previously, session defaults were merged before validation, so a call with an explicit pid inherited the default bundleId and failed the tool's mutual-exclusion rule. This changes the shared session-aware merge typing so exclusive pairs can include tool-local keys like pid, then registers bundleId/pid for debug_attach_sim so explicit attach intent wins over inherited defaults.

The explicit-invalid case remains rejected: callers still cannot pass both bundleId and pid in the same request.

Fixes #410

Drop inherited bundleId values when debug_attach_sim is called with an explicit pid so session defaults do not trip mutual-exclusion validation.

Keep explicit bundleId plus explicit pid rejected and cover tool-local exclusive keys in the session-aware merge path.

Fixes #410
Co-Authored-By: OpenAI Codex <noreply@openai.com>
@cameroncooke cameroncooke marked this pull request as ready for review May 11, 2026 12:10
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 11, 2026

Open in StackBlitz

npm i https://pkg.pr.new/xcodebuildmcp@411

commit: 3845b1a

@cameroncooke cameroncooke merged commit edfa19f into main May 11, 2026
40 checks passed
@cameroncooke cameroncooke deleted the cameroncooke/fix/debug-attach-pid-defaults branch May 11, 2026 12:18
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.

debug_attach_sim: session-defaults bundleId collides with explicit pid, validation blocks attach

1 participant