🐛 fix(vscode): 移交只对负责人显示;接管后审查会话立即可点

Claude-Session: https://claude.ai/code/session_011cEyL6k351U2BzX1Qmygph
This commit is contained in:
cruldra committed 2026-08-26 18:58:04 +08:00
1 parent 71fc38e0c5
commit 07c40897e2
4 files changed
+64 -22

No files matched your search

+7 -2
View File
@@ -6,8 +6,11 @@ export function canStartHandoff(issue: {
source?: 'gitea' | 'youtrack'
column: IssueColumn
handoffAttachmentId?: string
}): boolean {
return issue.source !== 'youtrack' && issue.column !== 'done' && !issue.handoffAttachmentId
assignees?: string[]
}, me: string | undefined): boolean {
const assignees = issue.assignees ?? []
const mine = assignees.length === 0 || (me !== undefined && assignees.includes(me))
return issue.source !== 'youtrack' && issue.column !== 'done' && !issue.handoffAttachmentId && mine
}
export function canAcceptHandoff(issue: {
@@ -105,6 +108,7 @@ export function handoffAcceptedUiPatch(local: {
profiles: HandoffProfiles
worktreePath?: string
worktreeExists: boolean
reviewSessionFileExists?: boolean
}): Record<string, unknown> {
return {
handoffAttachmentId: null,
@@ -115,5 +119,6 @@ export function handoffAcceptedUiPatch(local: {
// 与 worktreeExists: false 对不上。
worktreePath: local.worktreePath ?? null,
worktreeExists: local.worktreeExists,
...(local.reviewSessionFileExists !== undefined ? { reviewSessionFileExists: local.reviewSessionFileExists } : {}),
}
}