test(workspace-context): align typed baseline fixtures

This commit is contained in:
_Kerman
2026-07-27 18:39:22 +08:00
parent 6af8a2e1d8
commit 7c2cf5f0b3
3 changed files with 4 additions and 3 deletions

View File

@@ -108,7 +108,8 @@ describe.skipIf(!process.env.DEEPSEEK_API_KEY)('workspace context e2e: real mode
const events = [...live.agent.session.events]
const update = events.find(event => event.type === 'user/message'
&& event.data.source.kind === 'workspace-instructions')
&& event.data.source.kind === 'workspace-instructions'
&& event.data.source.baseline !== true)
expect(update?.type === 'user/message' && update.data.source).toMatchObject({
changes: [{ action: 'replace', scope: candidateScopeKey('.', 'AGENTS.md'), path: 'AGENTS.md' }],
})