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

Function TestPackDropsOrphanToolMessage

internal/ctx/ctx_test.go:132–150  ·  view source on GitHub ↗

TestPackDropsOrphanToolMessage: if budget-trimming cuts the assistant whose tool_calls spawned a tool message, that orphan must be dropped, else OpenAI-compat servers 400 with "tool message without preceding tool_calls".

(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