fix: pass SSH keys and config profile to startInstance in create form
The create-session-form was calling startInstance() without passing the selected config profile and SSH keys. This caused the backend to receive ssh_key_ids=[] and clear the keys that were stored during createInstance. The .ssh directory was never mounted because instance.ssh_key_ids was wiped during the start call. Also includes minor formatting cleanup on the data migration. Quality gates: pytest (18 passed)
This commit is contained in:
@@ -171,7 +171,13 @@ export const CreateSessionForm = ({
|
||||
);
|
||||
|
||||
setProgress("Starting container...");
|
||||
await startInstance(projectId, repoId, instance.id);
|
||||
await startInstance(
|
||||
projectId,
|
||||
repoId,
|
||||
instance.id,
|
||||
selectedConfigProfile || undefined,
|
||||
selectedSshKeyIds.length > 0 ? selectedSshKeyIds : undefined
|
||||
);
|
||||
|
||||
// Reset form
|
||||
if (!fixedProjectId) setSelectedProject("");
|
||||
|
||||
Reference in New Issue
Block a user