Repository navigation
Description
Summary
This issue tracks ten small, independent parity fixes. It is an umbrella checklist, not permission to combine unrelated work into one PR. Each coherent concern may land independently; follow the repository's one-concern-per-PR rule.
Work items
-
core / coalesce — code interpreter — Coalesce streamed code-interpreter fragments by call id #132 (
packages/core/src/types/coalesce.ts)- Add the Python-authoritative merge rule for code-interpreter call/result fragments keyed by type plus
callIdoradditionalProperties.item_id. - Merge non-adjacent fragments with the same key at the first occurrence; do not merge different types/keys or keyless items.
- Cover adjacent, interleaved, different-key,
item_idfallback, and keyless cases.
- Add the Python-authoritative merge rule for code-interpreter call/result fragments keyed by type plus
-
core / explode — terminal metadata — Leave the finish reason off the trailing metadata-only update #133 (
packages/core/src/types/response.ts)- Keep response-level
finishReasonon message updates, but do not copy it to the trailing metadata-only update used for usage/additional properties/continuation data. - Test the direct update sequence for both chat and agent responses, not only the re-folded result.
- Keep response-level
-
core / missing user-input literal — Emit the UserInputRequiredException marker on user-input results #134, follow-up An argument failure is reported to the model as an execution failure #131 (
packages/core/src/client/function-execution.ts)- Emit the exact wire-visible exception literal
UserInputRequiredException. - Preserve detailed-error on/off behavior and add an exact-match test.
- Emit the exact wire-visible exception literal
-
anthropic /
toolChoicewithout tools — Send the Anthropic tool choice independently of tool declarations #135 (packages/anthropic/src/chat-client.ts)- Send configured
tool_choiceindependently of local tools/MCP server presence; omit it only when no choice was configured. - Cover no-tools, MCP-only, local-tools, and undefined-choice requests.
- Send configured
-
anthropic / empty-message comment — Say why the empty-message guard is there #136
- Keep the local guard but replace the inaccurate Python-parity comment with the actual rationale: TypeScript turns a later service 400 into an earlier clear error. No runtime change.
-
mcp /
isErrortext — Put each text block of an MCP error result on its own line #138, follow-up FoundryToolbox assembles MCP error text differently from the MCP client #137 (packages/mcp/src/client.ts)- Join MCP error text blocks with
"\n"in MCP-side assembly only. Do not change sharedtextOfContentsbehavior. - Cover multiple text blocks, structured-plus-text content, and the no-text fallback.
- Join MCP error text blocks with
-
mcp / blank skill resource names — Refuse a blank skill resource name before it becomes a read #139 (
packages/mcp/src/skills.ts)- Reject empty and whitespace-only names before I/O on the direct Skill API path.
- Prove
resources/readis not called and retain existing traversal/decoding guards.
-
core /
run_skill_scriptschema — Declare the run_skill_script args default and name its script runner #140, follow-up SkillScriptArguments excludes null but a script can receive one #143 (packages/core/src/skills/provider.ts)- Add
default: nullto theargsschema and the Python-equivalent “or configured runner.” description. - Add an exact public tool-schema assertion; runtime execution semantics do not change.
- Add
-
agentserver / request-ID precedence — Resolve the agentserver request id from the trace before the incoming header #141 (
packages/agentserver/src/context.tsand trace-context plumbing)- Resolve a valid active/extracted trace ID first, then a non-empty incoming
x-request-id, then a generated UUID. - Cover valid/invalid/zero
traceparent, competing request ID, and identical resolved values in the response header and error body.
- Resolve a valid active/extracted trace ID first, then a non-empty incoming
-
openai / unanswered function-call wire tests — Pin the send-time filtering of unanswered OpenAI function calls #142
- Pin the intentional send-time filtering: a lone unanswered local
function_callis omitted without throwing; later user input is retained while only the call is removed. - Cover JSON session round-trip without relying on raw representation. This item adds tests only and does not preserve orphan calls.
- Pin the intentional send-time filtering: a lone unanswered local
Completion criteria
- Every behavior change has a reproduction-first failing test; comment-only and test-only items are exempt.
- Wire-visible changes are listed in CHANGELOG.
- Each PR identifies the checkbox it completes. A split successor issue is linked from this body or a comment.
-
pnpm checkpasses for every implementation PR. - This umbrella remains open until all ten items are complete or moved to linked successor issues that are themselves closed.
Activity
Validate the whole traceparent, not just its trace id
Say why the empty-message guard is there (#136)
Pin the send-time filtering of unanswered OpenAI function calls (#142)
Coalesce streamed code-interpreter fragments by call id (#132)
Leave the finish reason off the trailing metadata-only update (#133)
Emit the UserInputRequiredException marker on user-input results (#134)
Send the Anthropic tool choice independently of tool declarations (#135)
Put each text block of an MCP error result on its own line (#138)
Refuse a blank skill resource name before it becomes a read (#139)
Declare the run_skill_script args default and name its script runner (#…
Resolve the agentserver request id from the trace before the incoming…
shibayan commentedon Sep 1, 2026
All ten work items are complete and every linked successor issue is now closed:
@polymind-inc/agent-framework-mcp/internalentry)nullscript arguments folded into the declared absence)Every behavior change landed reproduction-first, wire-visible changes are in
CHANGELOG.md, andpnpm checkpassed on each implementation PR. Closing per the completion criteria.