refactor(agent): unify sourced message delivery

This commit is contained in:
_Kerman
2026-07-24 22:38:50 +08:00
parent 009d113e0e
commit 992cf894af
197 changed files with 1890 additions and 2132 deletions
+1 -1
View File
@@ -213,7 +213,7 @@ export class PlanModeService extends Service {
return { kind: 'success', text: 'Plan mode is already inactive.' }
}
this.set(agent, true)
if (message !== '') agent.steer([{ type: 'text', text: message }])
if (message !== '') agent.steer({ content: [{ type: 'text', text: message }], source: { kind: 'user' } })
return {
kind: 'success',
text: 'Entering plan mode (applies from the next step). Use /plan off to leave.',