Description
I found a reproducible bug in the OpenAI Agent Builder (recently released with Agent Kit / SDK integration).
When creating an Agent and setting its Name field to Japanese (e.g., "テストエージェント"), the UI works fine.
However, when I try to generate the Agents SDK code, it fails with the following error messages:
Failed to generate code
Variable not found for node node_nnf56d0b with suffix null
Step to Reproduce
- Go to the Agent Builder page on platform.openai.com/agents.
- Create a new Agent.
- Set the Name of the Agent to a Japanese string, e.g.
テストエージェント. - Click on “Code” (or equivalent button to generate code for the Agent) and select Agents SDK tab
- Observe that an error occurs instead of generating the code.
Expected Behavior
Either of the following should be implemented:
-
The SDK code should be generated successfully even when the Agent’s name includes non-ASCII (e.g., Japanese) characters, or
-
The Agent Builder should prevent invalid characters at input time and display a clear message such as “Agent names must be in English.”
Currently, the system accepts Japanese input but fails later during code generation, which creates confusion.
Actual Behavior:
-
Code generation fails only when the Agent’s name contains Japanese characters.
-
Works correctly if the name is in English.
This post was written with the help of ChatGPT (AI assistant) to clearly describe the issue in English.
