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
@@ -139,7 +139,7 @@ func (m *Manager) leadTools(l *live) []mcp.Tool {
m.mu.Lock()
m.leadAnswered[c.ItemId] = true
m.mu.Unlock()
_, err = m.Respond(ctx, user.Login, []api.InboxResponseCreate{c})
_, err = m.Respond(ctx, leadActor(user.Login), []api.InboxResponseCreate{c})
if err != nil {
m.mu.Lock()
delete(m.leadAnswered, c.ItemId)
@@ -1056,7 +1056,7 @@ func transcriptLine(ev api.Event, root string) string {
case boardActor:
return ""
}
return ev.Actor + ": " + text("text")
return actorName(ev.Actor) + ": " + text("text")
case "board.posted":
return fmt.Sprintf("board post by %s: %s", postAuthor(ev), text("text"))
case "agent.message":