Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/conductor/cli/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def run_update(console: Console) -> None:
renamed_exes = _rename_windows_exes()

try:
proc = subprocess.run(cmd, capture_output=True, text=True) # noqa: S603
proc = subprocess.run(cmd, capture_output=True, text=True, encoding="utf-8") # noqa: S603

if proc.returncode == 0:
console.print(f"[green]Successfully upgraded to v{version}[/green]")
Expand Down
6 changes: 5 additions & 1 deletion src/conductor/executor/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ async def execute(
# Build environment (merge os.environ + agent.env)
# Note: ${VAR:-default} patterns in agent.env are already resolved
# by the config loader during YAML parsing.
env = {**os.environ, **agent.env} if agent.env else None
# Always set PYTHONUTF8=1 so child Python processes use UTF-8 encoding
# instead of the system default (cp1252 on Windows), preventing garbled
# Unicode characters in script output.
base_env = {**os.environ, "PYTHONUTF8": "1"}
env = {**base_env, **agent.env} if agent.env else base_env

_verbose_log(f" Script: {rendered_command} {' '.join(rendered_args)}")

Expand Down
1 change: 1 addition & 0 deletions src/conductor/mcp_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def get_azure_token(scope: str) -> str | None:
],
capture_output=True,
text=True,
encoding="utf-8",
timeout=30,
)
if result.returncode == 0:
Expand Down