Mark the lead's messages and answers as the lead's, not the human's
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user