fix(platform-agent): update runtime to 'claude-code' on ON CONFLICT (#2495) #2496

Merged
agent-reviewer merged 1 commits from fix/platform-agent-install-runtime-on-conflict into main 2026-06-10 22:26:55 +00:00
@@ -509,7 +509,7 @@ func installPlatformAgent(ctx context.Context, database *sql.DB, platformID, nam
if _, err := tx.ExecContext(ctx, `
INSERT INTO workspaces (id, name, kind, tier, status, runtime, parent_id)
VALUES ($1, $2, 'platform', 0, 'online', 'claude-code', NULL)
ON CONFLICT (id) DO UPDATE SET kind = 'platform', parent_id = NULL
ON CONFLICT (id) DO UPDATE SET kind = 'platform', runtime = 'claude-code', parent_id = NULL
`, platformID, name); err != nil {
return fmt.Errorf("upsert platform agent: %w", err)
}