[GH-ISSUE #3995] [Engine] Namespaced tool calls returned as plain XML instead of function_call #1719

Closed
opened 2026-11-04 01:53:26 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @PizzaTimel on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3995

Environment

  • Strata Engine 0.1.48
  • Model: qwen3.8-flash-next-coder-iq1_m
  • Windows 11
  • OpenAI-compatible Responses API (/v1/responses)
  • Client: Codex Windows app

Problem

Function calling works with simple tool names but fails with namespaced tool names.

Reproduction

Use the same tool schema and prompt with tool_choice: "auto".

Results:

  • exec_command → structured function_call (PASS)
  • functions_exec_command → structured function_call (PASS)
  • functions.exec_command → plain XML in output_text (FAIL)
  • Namespace tool functions containing exec_command → plain XML in output_text (FAIL)

Actual output

<tool_call>
<function=exec_command>
<parameter=cmd>
Write-Output CODEX_EXEC_OK
</parameter>
</function>
</tool_call>

Expected output

A structured Responses API function_call associated with the declared tool and its namespace, containing:

{"cmd":"Write-Output CODEX_EXEC_OK"}

Impact

Codex sometimes displays raw <tool_call> blocks instead of executing commands. This interrupts multi-step coding tasks and Unreal Engine development workflows.

Request

Please check namespace handling in the Qwen tool-call template and Responses API output parser. Tool names containing dots may not be matched correctly against declared tool schemas.

Originally created by @PizzaTimel on GitHub (Oct 24, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3995 **Environment** - Strata Engine 0.1.48 - Model: qwen3.8-flash-next-coder-iq1_m - Windows 11 - OpenAI-compatible Responses API (`/v1/responses`) - Client: Codex Windows app **Problem** Function calling works with simple tool names but fails with namespaced tool names. **Reproduction** Use the same tool schema and prompt with `tool_choice: "auto"`. Results: - `exec_command` → structured `function_call` (PASS) - `functions_exec_command` → structured `function_call` (PASS) - `functions.exec_command` → plain XML in `output_text` (FAIL) - Namespace tool `functions` containing `exec_command` → plain XML in `output_text` (FAIL) **Actual output** ```xml <tool_call> <function=exec_command> <parameter=cmd> Write-Output CODEX_EXEC_OK </parameter> </function> </tool_call> ``` **Expected output** A structured Responses API `function_call` associated with the declared tool and its namespace, containing: ```json {"cmd":"Write-Output CODEX_EXEC_OK"} ``` **Impact** Codex sometimes displays raw `<tool_call>` blocks instead of executing commands. This interrupts multi-step coding tasks and Unreal Engine development workflows. **Request** Please check namespace handling in the Qwen tool-call template and Responses API output parser. Tool names containing dots may not be matched correctly against declared tool schemas.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 24, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6387536521 --> @github-actions[bot] commented on GitHub (Oct 24, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Oct 24, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6387551944 --> @github-actions[bot] commented on GitHub (Oct 24, 2026): Thanks, this follows the format now.
Author
Owner

@Niko1221 commented on GitHub (Oct 26, 2026):

Thanks for the clear pass/fail list. The failing case is the model writing the bare tool name (exec_command) while Codex declares it under the functions namespace. Pull request #3972 handles exactly that (a bare name that matches one declared tool), so we are tracking the fix there and will close this one when it lands.

<!-- gh-comment-id:6423279803 --> @Niko1221 commented on GitHub (Oct 26, 2026): Thanks for the clear pass/fail list. The failing case is the model writing the bare tool name (exec_command) while Codex declares it under the functions namespace. Pull request #3972 handles exactly that (a bare name that matches one declared tool), so we are tracking the fix there and will close this one when it lands.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1719
No description provided.