Skip to content

Streaming ToolOutput events omit the tool-call ID #111

Description

@MitulShah1

Priority: P3 · Nature: unfinished field

Problem

stream_with_result.go:436 emits tool-output events with an empty ID:

ToolOutput: &ToolOutput{
    ToolCallID: "", // Would need to track this

The ID is available in recordedToolCalls[i].

Impact

Consumers of StreamWithResult cannot correlate tool outputs back to their originating tool calls.

Fix

Pass recordedToolCalls[i].ID through to the event.


Filed from a full-repo audit (branch main). Verified against source; baseline go vet/staticcheck/go test -race pass on the default build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3-lowHardening / cleanuparea/streambugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions