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
9 changes: 9 additions & 0 deletions parallel_orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,11 +511,14 @@ def _spawn_coding_agent(self, feature_id: int) -> tuple[bool, str]:
try:
# CREATE_NO_WINDOW on Windows prevents console window pop-ups
# stdin=DEVNULL prevents blocking on stdin reads
# encoding="utf-8" and errors="replace" fix Windows CP1252 issues (#138)
popen_kwargs = {
"stdin": subprocess.DEVNULL,
"stdout": subprocess.PIPE,
"stderr": subprocess.STDOUT,
"text": True,
"encoding": "utf-8",
"errors": "replace",
"cwd": str(AUTOCODER_ROOT), # Run from autocoder root for proper imports
"env": {**os.environ, "PYTHONUNBUFFERED": "1"},
}
Expand Down Expand Up @@ -600,11 +603,14 @@ def _spawn_testing_agent(self) -> tuple[bool, str]:
try:
# CREATE_NO_WINDOW on Windows prevents console window pop-ups
# stdin=DEVNULL prevents blocking on stdin reads
# encoding="utf-8" and errors="replace" fix Windows CP1252 issues (#138)
popen_kwargs = {
"stdin": subprocess.DEVNULL,
"stdout": subprocess.PIPE,
"stderr": subprocess.STDOUT,
"text": True,
"encoding": "utf-8",
"errors": "replace",
"cwd": str(AUTOCODER_ROOT),
"env": {**os.environ, "PYTHONUNBUFFERED": "1"},
}
Expand Down Expand Up @@ -658,11 +664,14 @@ async def _run_initializer(self) -> bool:

# CREATE_NO_WINDOW on Windows prevents console window pop-ups
# stdin=DEVNULL prevents blocking on stdin reads
# encoding="utf-8" and errors="replace" fix Windows CP1252 issues (#138)
popen_kwargs = {
"stdin": subprocess.DEVNULL,
"stdout": subprocess.PIPE,
"stderr": subprocess.STDOUT,
"text": True,
"encoding": "utf-8",
"errors": "replace",
"cwd": str(AUTOCODER_ROOT),
"env": {**os.environ, "PYTHONUNBUFFERED": "1"},
}
Expand Down
8 changes: 6 additions & 2 deletions start.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ def run_spec_creation(project_dir: Path) -> bool:
check=False, # Don't raise on non-zero exit
cwd=str(Path(__file__).parent), # Run from project root
stderr=subprocess.PIPE,
text=True
text=True,
encoding="utf-8", # Fix Windows CP1252 encoding issue (#138)
errors="replace",
)

# Check for authentication errors in stderr
Expand Down Expand Up @@ -400,7 +402,9 @@ def run_agent(project_name: str, project_dir: Path) -> None:
cmd,
check=False,
stderr=subprocess.PIPE,
text=True
text=True,
encoding="utf-8", # Fix Windows CP1252 encoding issue (#138)
errors="replace",
)

# Check for authentication errors
Expand Down
4 changes: 3 additions & 1 deletion start_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ def check_node() -> bool:
result = subprocess.run(
["node", "--version"],
capture_output=True,
text=True
text=True,
encoding="utf-8", # Fix Windows CP1252 encoding issue (#138)
errors="replace",
)
print(f" Node.js version: {result.stdout.strip()}")
except Exception:
Expand Down
Loading