fix(workspace-context): guard baseline restoration

This commit is contained in:
fz
2026-08-03 22:05:17 +08:00
parent eff7b758b1
commit 19be29cd0b
31 changed files with 249 additions and 105 deletions
@@ -161,7 +161,10 @@ describe('AgentLoop initiator scope', () => {
}
ctx.on('system-prompt/assemble', async (_assembly, context, next) => {
if (context.agent === agent) capture(context.signal)
if (context.agent === agent) {
expect(context.modelRequest).toBe(true)
capture(context.signal)
}
return next()
})
ctx.on('agent/prompt-submit', async (subject, _message, signal, next) => {