Skip to content

Commit b4bde24

Browse files
committed
fix(simulator-runtime): restore compatible log capture hints
Revert launch hints to emit simulatorUuid until logging tools migrate to session defaults, and align test expectations.
1 parent 629a071 commit b4bde24

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

src/mcp/tools/simulator/__tests__/launch_app_sim.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ describe('launch_app_sim tool', () => {
113113
114114
Next Steps:
115115
1. To see simulator: open_sim()
116-
2. Log capture: start_sim_log_cap({ simulatorId: "test-uuid-123", bundleId: "com.example.testapp" })
117-
With console: start_sim_log_cap({ simulatorId: "test-uuid-123", bundleId: "com.example.testapp", captureConsole: true })
116+
2. Log capture: start_sim_log_cap({ simulatorUuid: "test-uuid-123", bundleId: "com.example.testapp" })
117+
With console: start_sim_log_cap({ simulatorUuid: "test-uuid-123", bundleId: "com.example.testapp", captureConsole: true })
118118
3. Stop logs: stop_sim_log_cap({ logSessionId: 'SESSION_ID' })`,
119119
},
120120
],

src/mcp/tools/simulator/launch_app_sim.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,8 @@ export async function launch_app_simLogic(
165165
};
166166
}
167167

168-
const userParamName = params.simulatorId
169-
? 'simulatorId'
170-
: params.simulatorName
171-
? 'simulatorName'
172-
: 'simulatorId';
173-
const userParamValue = params.simulatorId ?? params.simulatorName ?? simulatorId;
168+
const userParamName = params.simulatorName ? 'simulatorName' : 'simulatorUuid';
169+
const userParamValue = params.simulatorName ?? simulatorId;
174170

175171
return {
176172
content: [

0 commit comments

Comments
 (0)