test: update conversation assembly coverage and docs

This commit is contained in:
imccyu
2026-08-09 15:48:56 +08:00
parent 6d09b3168d
commit 522acc7432
101 changed files with 3970 additions and 2295 deletions
@@ -196,11 +196,15 @@ function stubAgent(cwd?: string, seed: SessionEvent[] = []): Agent {
}
function stubToolExecution(
input: Omit<ToolExecution, 'token'> & { token?: ToolExecutionToken },
input: Omit<ToolExecution, 'token' | 'rootCallId'> & {
token?: ToolExecutionToken
rootCallId?: ToolExecution['rootCallId']
},
): ToolExecution {
return {
token: input.token ?? Symbol('workspace-context-test-execution') as ToolExecutionToken,
...input,
rootCallId: input.rootCallId ?? input.callId,
}
}