fix: configure harness console as utf-8

This commit is contained in:
KOKO\Mimi
2026-08-09 02:14:21 +09:00
parent e17574e706
commit 6482cf65b9
2 changed files with 28 additions and 0 deletions
+9
View File
@@ -26,6 +26,14 @@ class CodexEnvironmentError(RuntimeError):
"""재시도로 해결할 수 없는 Codex CLI 환경 오류."""
def _configure_utf8_stdio():
"""Windows 콘솔에서도 Harness 진행 문자를 안정적으로 출력한다."""
for stream in (sys.stdout, sys.stderr):
reconfigure = getattr(stream, "reconfigure", None)
if reconfigure is not None:
reconfigure(encoding="utf-8")
@contextlib.contextmanager
def progress_indicator(label: str):
"""터미널 진행 표시기. with 문으로 사용하며 .elapsed 로 경과 시간을 읽는다."""
@@ -468,6 +476,7 @@ class StepExecutor:
def main():
_configure_utf8_stdio()
parser = argparse.ArgumentParser(description="Harness Step Executor")
parser.add_argument("phase_dir", help="Phase directory name (e.g. 0-mvp)")
parser.add_argument("--push", action="store_true", help="Push branch after completion")