Skip to content

Commit e628bb2

Browse files
cameroncookecodex
andcommitted
fix(macos): Preserve DerivedData in app path next step
Propagate an explicit derivedDataPath from build_macos into the generated get_mac_app_path next-step params. This keeps the follow-up lookup aligned with the DerivedData location used by the build, matching the existing device and simulator behavior. Co-Authored-By: OpenAI Codex <noreply@openai.com>
1 parent 9600359 commit e628bb2

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

src/mcp/tools/macos/__tests__/build_macos.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ describe('build_macos plugin', () => {
142142

143143
expect(result.isError()).toBeFalsy();
144144
expectPendingBuildResponse(result, 'get_mac_app_path');
145+
expect(result.nextStepParams).toEqual({
146+
get_mac_app_path: {
147+
scheme: 'MyScheme',
148+
derivedDataPath: '/path/to/derived-data',
149+
},
150+
});
145151
});
146152

147153
it('should return exact exception handling response', async () => {

src/mcp/tools/macos/build_macos.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ export async function buildMacOSLogic(
153153
ctx.nextStepParams = {
154154
get_mac_app_path: {
155155
scheme: params.scheme,
156+
...(params.derivedDataPath !== undefined
157+
? { derivedDataPath: params.derivedDataPath }
158+
: {}),
156159
},
157160
};
158161
}

0 commit comments

Comments
 (0)