feat(core): make turn cancellation explicit
This commit is contained in:
@@ -230,7 +230,7 @@ export function apply(ctx: Context, config: Config): void {
|
||||
// A user interjection changes the context; repetition across it is not a
|
||||
// loop. Pure reset hook: always delegates (attaching nothing, vetoing
|
||||
// nothing).
|
||||
ctx.on('agent/prompt-submit', (agent, _content, _source, next): Promise<PromptDecision> => {
|
||||
ctx.on('agent/prompt-submit', (agent, _content, _source, _signal, next): Promise<PromptDecision> => {
|
||||
chains.delete(agent.id)
|
||||
return next()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user