🐛 fix(vscode): 修复新建工单后会话关联丢失

This commit is contained in:
cruldra committed 2026-10-10 01:33:18 -04:00
1 parent 172e6ba77d
commit 9345b6a16e
12 files changed
+836 -435

No files matched your search

+14
View File
@@ -36,3 +36,17 @@ describe('buildCcArgv', () => {
])
})
})
describe('new session identity', () => {
const sessionId = '5a749776-d1c8-4cf0-8f85-3b8d7b804498'
it('passes the allocated identity before the prompt', () => {
expect(buildCcArgv({ profilePath: '/p.json', sessionId, prompt: 'create issue' }))
.toEqual([...BASE, '--session-id', sessionId, 'create issue'])
})
it('rejects a new identity combined with resuming another session', () => {
expect(() => buildCcArgv({ profilePath: '/p.json', sessionId, resumeSessionId: 'existing' }))
.toThrow('sessionId')
})
})