refactor(agent): unify sourced message delivery

This commit is contained in:
_Kerman
2026-07-24 22:38:50 +08:00
parent 009d113e0e
commit 992cf894af
197 changed files with 1890 additions and 2132 deletions

View File

@@ -70,7 +70,7 @@ describe('dsh-tool-ralph over the real spawn and worker-thread stack', () => {
agentOptions: { provider: 'mock', model: 'mock' },
})
const parent = parentHandle.agent
parent.followup([{ type: 'text', text: 'PARENT_PROMPT_MARKER' }])
parent.followup({ content: [{ type: 'text', text: 'PARENT_PROMPT_MARKER' }], source: { kind: 'user' } })
await parent.whenIdle()
const children: Agent[] = []