refactor(agent): make runtime identity explicit

This commit is contained in:
_Kerman
2026-08-28 17:44:56 +08:00
parent 375af94454
commit ebce3a5f04
61 changed files with 281 additions and 396 deletions
@@ -339,7 +339,7 @@ describe('context-overflow recovery across the real loop and compaction-basic',
provider: 'unconfigured-agent-fallback',
model: 'unconfigured-agent-fallback',
},
})
}, undefined)
agent.followup(createUserMessage({ content: [{ type: 'text', text: 'continue from history' }], source: { kind: 'user' } }))
await agent.whenIdle()
@@ -413,7 +413,7 @@ describe('context-overflow recovery across the real loop and compaction-basic',
sessionId: SessionId('alternating-recovery'),
seed: overflowHistorySeed(),
agentOptions: { provider: 'mock', model: 'mock' },
})
}, undefined)
agent.followup(createUserMessage({ content: [{ type: 'text', text: 'continue from history' }], source: { kind: 'user' } }))
await agent.whenIdle()