MCPcopy Create free account
hub / github.com/codehamr/codehamr / toolResultMsg

Struct toolResultMsg

internal/tui/commands.go:33–36  ·  view source on GitHub ↗

toolResultMsg carries one finished tool call back to Update, tagged with the turnCtx it was dispatched against. Update drops it when that ctx no longer matches m.turnCtx: the originating turn was Ctrl+C'd and superseded. Otherwise the orphan result appends to the new turn's history with no preceding

Source from the content-addressed store, hash-verified

31// Otherwise the orphan result appends to the new turn's history with no
32// preceding assistant.tool_calls and abandons that turn's live stream.
33type toolResultMsg struct {
34 Msg chmctx.Message
35 turnCtx context.Context
36}
37
38// readEvent drains one event from the LLM stream as a tea.Msg, re-scheduled
39// until the channel closes. Tags ch so Update can spot stale prior-turn events.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected