🐛 fix(vscode): 接管时把会话文件里的发送方路径重写为本机路径
Claude-Session: https://claude.ai/code/session_011cEyL6k351U2BzX1Qmygph
This commit is contained in:
1 parent
07c40897e2
commit
71a91fe7ec
7 files changed
+151
-10
No files matched your search
@@ -43,4 +43,11 @@ describe('parseHandoffManifest', () => {
|
||||
it('不是 JSON → 抛错', () => {
|
||||
expect(() => parseHandoffManifest('nope', 42)).toThrow()
|
||||
})
|
||||
it('带 worktreePath → 原样带出', () => {
|
||||
const withPath = { ...good, worktreePath: '/Users/chw/wt/x' }
|
||||
expect(parseHandoffManifest(JSON.stringify(withPath), 42)).toEqual(withPath)
|
||||
})
|
||||
it('不带 worktreePath → 结果里没有这个 key', () => {
|
||||
expect(parseHandoffManifest(JSON.stringify(good), 42)).not.toHaveProperty('worktreePath')
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user