fix(native-chat): pass runtime platform through full creation

This commit is contained in:
Merge Sim
2026-09-02 14:41:39 -07:00
parent 8e492e7c07
commit 1049f70468
3 changed files with 4 additions and 0 deletions
@@ -103,6 +103,7 @@ export function useComposerSubmitOrchestration(
persistSetupAgentStartupPolicy: target.providerRuntimeSync.persistSetupAgentStartupPolicy,
prepareFullSubmit: fullSubmitPreparation.prepareFullSubmit,
resolvedInitialWorkspaceStatus: target.initialTargetState.resolvedInitialWorkspaceStatus,
selectedRepoAgentLaunchPlatform: target.runtimeTargetSelection.selectedRepoAgentLaunchPlatform,
selectedRepoExecutionHostId: target.runtimeTargetSelection.selectedRepoExecutionHostId,
selectedRepoIsGit: target.runtimeTargetSelection.selectedRepoIsGit,
selectedRepoIsRemote: target.runtimeTargetSelection.selectedRepoIsRemote,
@@ -79,6 +79,7 @@ describe('useFullCreationExecution cancellation', () => {
.fn<FullCreationExecutionInput['prepareFullSubmit']>()
.mockResolvedValue(prepared),
resolvedInitialWorkspaceStatus: undefined,
selectedRepoAgentLaunchPlatform: 'darwin',
selectedRepoExecutionHostId: 'local',
selectedRepoIsGit: true,
selectedRepoIsRemote: false,
@@ -17,6 +17,7 @@ export type FullCreationExecutionInput = Pick<
| 'persistSetupAgentStartupPolicy'
| 'prepareFullSubmit'
| 'resolvedInitialWorkspaceStatus'
| 'selectedRepoAgentLaunchPlatform'
| 'selectedRepoExecutionHostId'
| 'selectedRepoIsGit'
| 'selectedRepoIsRemote'
@@ -65,6 +66,7 @@ export function useFullCreationExecution(input: FullCreationExecutionInput) {
persistSetupAgentStartupPolicy,
prepareFullSubmit,
resolvedInitialWorkspaceStatus,
selectedRepoAgentLaunchPlatform,
selectedRepoExecutionHostId,
selectedRepoIsGit,
selectedRepoIsRemote,