From a52816299d21afec3f87923f05c379e1880d1565 Mon Sep 17 00:00:00 2001 From: weichen Date: Sat, 26 Sep 2026 01:00:37 +0000 Subject: [PATCH] fix(server): read bound repo from project_source_bindings.source_ref --- internal/server/swboot_handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/server/swboot_handlers.go b/internal/server/swboot_handlers.go index fc9b666a..d25f6b8a 100644 --- a/internal/server/swboot_handlers.go +++ b/internal/server/swboot_handlers.go @@ -228,7 +228,7 @@ func (s *Server) boundRepoPath(ctx context.Context, projectID int64) string { defer cancel() var repoPath string err := s.rt.Pool.QueryRow(cctx, ` - SELECT repo_path FROM project_source_bindings + SELECT source_ref FROM project_source_bindings WHERE project_id=$1 AND permission_scope='controlled_patch' ORDER BY created_at DESC LIMIT 1 `, projectID).Scan(&repoPath)