Skip to content

Multiline execute-dynamic-code issue when used by Codex on PowerShell #1290

@nyoro-wrl

Description

@nyoro-wrl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions