Mark the lead's messages and answers as the lead's, not the human's

This commit is contained in:
Ian Gulliver
2026-10-20 12:20:51 -07:00
parent 181482e5d0
commit 0f33ad4524
14 changed files with 93 additions and 23 deletions
+2 -2
View File
@@ -603,7 +603,7 @@ func (m *Manager) deliver(ctx context.Context, sess api.AgentSession, task api.T
}
m.beginTurn(l, compacting)
err = m.send(ctx, l, text, imgs)
err = m.send(ctx, l, agentText(actor, text), imgs)
if err != nil {
m.endMergeTurn(sess.Id, false)
return err
@@ -684,7 +684,7 @@ func (m *Manager) message(ctx context.Context, sess api.AgentSession, task api.T
return err
}
m.beginTurn(l, compacting)
return m.send(ctx, l, text, imgs)
return m.send(ctx, l, agentText(actor, text), imgs)
}
func (m *Manager) send(ctx context.Context, l *live, text string, imgs []image) error {