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

Function TestPackDropsDanglingAssistantToolCalls

internal/ctx/ctx_test.go:285–302  ·  view source on GitHub ↗

TestPackDropsDanglingAssistantToolCalls: a turn cancelled mid-tool leaves an assistant.tool_calls in history with no answering tool message (the TUI appended it on round close, then endTurn dropped the pending call on Ctrl+C). On the next request Pack must strip that dangling assistant, otherwise th

(t *testing.T)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

PackFunction · 0.85

Tested by

no test coverage detected