Attribute OpenCode code-mode tool calls, keep same-instant shown items in order, and record the chat tools notes

This commit is contained in:
2026-11-09 16:55:28 +00:00
parent 9791f09230
commit f3ddd3e1ec
5 changed files with 319 additions and 24 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ func (s *chatToolService) session(ctx context.Context, token, tool string, argum
return id, ""
}
if _, ok := strings.CutPrefix(scope, chatToolInstanceScope); ok && s.hub != nil {
id, ambiguous := s.hub.awaitToolCallSession(ctx, chattools.HarnessToolNames(tool), arguments, chatToolCorrelationWait)
id, ambiguous := s.hub.awaitToolCallSession(ctx, tool, arguments, chatToolCorrelationWait)
if ambiguous {
return "", "Pipelines could not tell which chat made this call (another chat made an identical one); retry with a different title."
}