diff --git a/apps/api/alembic/versions/2026_05_29_remove_ssh_keys_mount_from_manifest.py b/apps/api/alembic/versions/2026_05_29_remove_ssh_keys_mount_from_manifest.py index a5903bd..d03a800 100644 --- a/apps/api/alembic/versions/2026_05_29_remove_ssh_keys_mount_from_manifest.py +++ b/apps/api/alembic/versions/2026_05_29_remove_ssh_keys_mount_from_manifest.py @@ -25,14 +25,18 @@ def upgrade() -> None: # Get the pi-agent manifest result = conn.execute( - sa.text("SELECT id, manifest FROM tool_definition_manifests WHERE name = 'pi-agent'") + sa.text( + "SELECT id, manifest FROM tool_definition_manifests WHERE name = 'pi-agent'" + ) ) row = result.fetchone() if not row: return manifest_id, manifest_json = row - manifest = manifest_json if isinstance(manifest_json, dict) else json.loads(manifest_json) + manifest = ( + manifest_json if isinstance(manifest_json, dict) else json.loads(manifest_json) + ) mounts = manifest.get("mounts", []) original_count = len(mounts) @@ -58,14 +62,18 @@ def downgrade() -> None: conn = op.get_bind() result = conn.execute( - sa.text("SELECT id, manifest FROM tool_definition_manifests WHERE name = 'pi-agent'") + sa.text( + "SELECT id, manifest FROM tool_definition_manifests WHERE name = 'pi-agent'" + ) ) row = result.fetchone() if not row: return manifest_id, manifest_json = row - manifest = manifest_json if isinstance(manifest_json, dict) else json.loads(manifest_json) + manifest = ( + manifest_json if isinstance(manifest_json, dict) else json.loads(manifest_json) + ) mounts = manifest.get("mounts", []) @@ -74,14 +82,16 @@ def downgrade() -> None: return # Add the ssh_keys mount back - mounts.append({ - "name": "ssh_keys", - "target": "/home/user/.ssh", - "source_type": "ssh_key", - "mode": "0700", - "file_mode": "0600", - "readonly": True, - }) + mounts.append( + { + "name": "ssh_keys", + "target": "/home/user/.ssh", + "source_type": "ssh_key", + "mode": "0700", + "file_mode": "0600", + "readonly": True, + } + ) manifest["mounts"] = mounts conn.execute( diff --git a/apps/web/src/components/create-session-form.tsx b/apps/web/src/components/create-session-form.tsx index 18e7689..5b5b132 100644 --- a/apps/web/src/components/create-session-form.tsx +++ b/apps/web/src/components/create-session-form.tsx @@ -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("");