feat(vscode): 会话 tab 可交接对话给同事

This commit is contained in:
2026-08-27 15:14:42 +08:00
parent 5ee8226167
commit 77037924ef
20 changed files with 938 additions and 26 deletions
+10
View File
@@ -18,6 +18,7 @@ import { env, Uri, window, workspace } from 'vscode'
import { loginForToken } from '../auth/identity'
import { getToken } from '../auth/secrets'
import { getReviewPrompt } from '../cc/prompts'
import { isMailboxIssue } from '../cc/sessionHandoff'
import { detectRepo } from '../git/remote'
import { deleteWebhook, getIssue, getPullRequest, listIssueComments } from '../gitea/api'
import { loadIssues, loadSingleIssue } from '../gitea/issueLoader'
@@ -525,6 +526,15 @@ class WebhookCoordinator {
return
}
if (isMailboxIssue({ title: event.title, body: event.body })) {
logger.add({
level: 'info',
source: 'webhook',
message: `issue #${event.issueNumber} 是会话交接 mailbox,跳过看板`,
})
return
}
const nonceMatch = event.body.match(/<!--\s*spx:nonce=([0-9a-f-]+)\s*-->/i)
const nonce = nonceMatch ? nonceMatch[1] : null
// Promote the in-flight brainstorm terminal into the panel's