feat: return project-relative workspace mapping in query responses

This commit is contained in:
lingyuzeng
2026-03-07 23:41:27 +08:00
parent 41329cc532
commit 1b3e04176c
4 changed files with 25 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ class QueryService:
return QueryResponse(
ok=True,
branch=sync_meta.branch,
resolved_workspace=str(sync_meta.workspace_path),
resolved_workspace=sync_meta.workspace_relative_path,
commit_hash=sync_meta.commit_hash,
synced_at=sync_meta.synced_at,
query_type=request.query_type,
@@ -90,7 +90,7 @@ class QueryService:
return SyncResponse(
ok=True,
branch=sync_meta.branch,
resolved_workspace=str(sync_meta.workspace_path),
resolved_workspace=sync_meta.workspace_relative_path,
commit_hash=sync_meta.commit_hash,
synced_at=sync_meta.synced_at,
qmd_collection=sync_meta.qmd_collection,