Commit 8055133
fix: look up assignee agent name when executionAgentNameKey is null (#36)
When an agent completes an issue, the Discord notification shows
"Completed by: Agent" instead of the agent's display name.
Root cause: issue.executionAgentNameKey is not reliably populated
by the Paperclip platform. When it's null, the fallback
payload.agentName ?? "Agent" produces the literal string "Agent",
which the formatter uses verbatim.
Fix: if agentName is still null after the executionAgentNameKey
assignment, look up the assignee agent by ID via ctx.agents.list()
and use its name field (the display name — e.g. "Scribe", "Claira").
This resolves without any API changes on the platform side.
Co-authored-by: Claira <claira@homicidezero.com>1 parent 79d3a75 commit 8055133
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
174 | 182 | | |
175 | 183 | | |
176 | 184 | | |
| |||
0 commit comments