When Codex uses uloop execute-dynamic-code on PowerShell, multiline --code is easy to generate but does not behave as expected.
Repro:
uloop execute-dynamic-code --code 'var x = 100;
var y = 23;
return x + y;'
Result:
{
"Success": true,
"Result": ""
}
The same code works when collapsed into one line.
uloop execute-dynamic-code --code 'var x = 100; var y = 23; return x + y;'
{
"Success": true,
"Result": "123"
}
The main issue is the Codex usage path. Codex naturally generates multiline C# based on SKILL.md, but this case still returns Success: true, so the failure is easy for the model to misinterpret. This causes repeated unnecessary debugging and token usage.
Also, SKILL.md seems to imply that Debug.Log messages are returned in Logs, but in practice they were not included in the execute-dynamic-code result and had to be retrieved separately with uloop get-logs.
Expected improvements:
- Make multiline
--code work correctly on PowerShell
- Or document in the Codex-facing
SKILL.md that PowerShell users should collapse code into one line
- Consider adding a
--code-file option to avoid shell quoting/newline issues
- Clarify how
Debug.Log should be retrieved
Environment:
- Windows
- PowerShell
- uloop 2.1.6
- Used by Codex through the
uloop-execute-dynamic-code skill
When Codex uses
uloop execute-dynamic-codeon PowerShell, multiline--codeis easy to generate but does not behave as expected.Repro:
Result:
The same code works when collapsed into one line.
The main issue is the Codex usage path. Codex naturally generates multiline C# based on
SKILL.md, but this case still returnsSuccess: true, so the failure is easy for the model to misinterpret. This causes repeated unnecessary debugging and token usage.Also,
SKILL.mdseems to imply thatDebug.Logmessages are returned inLogs, but in practice they were not included in theexecute-dynamic-coderesult and had to be retrieved separately withuloop get-logs.Expected improvements:
--codework correctly on PowerShellSKILL.mdthat PowerShell users should collapse code into one line--code-fileoption to avoid shell quoting/newline issuesDebug.Logshould be retrievedEnvironment:
uloop-execute-dynamic-codeskill