refactor: identify and freeze messages at creation

This commit is contained in:
_Kerman
2026-07-28 13:55:59 +08:00
parent c49c0ba497
commit fbf87e660c
345 changed files with 5220 additions and 2901 deletions

View File

@@ -64,7 +64,7 @@ describe('ACP subagent cwd inheritance through a real cordis.yml', () => {
// session's workspace, never the harness process's launch directory.
const results = events.filter(event => event.type === 'tool/result')
expect(results).toHaveLength(1)
const resultText = results[0]!.data.content
const resultText = results[0]!.data.message.content[0].content
.filter(block => block.type === 'text')
.map(block => block.text)
.join('')