Files
javis_bot/docs
javis-bot 3e4974f3bd fix(reply): done-by-user guard keeps tool calls, other people's lines and started tools safe
- A native tool call message with text is not an earlier answer: leaving it out
  orphaned its role=tool result. Only plain assistant answers are left out.
- The guard is off once any tool run started in the reply, whatever it returned:
  an MCP call with an empty result was not in invoked_tools_history, so a second
  try could run it again.
- HistoryContext.answers marks the lines that are Jarvis's answers to the asker
  (to_id is the asker); only those leave the history, not someone else saying the
  same words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 20:55:29 +09:00
..