Skip to content

The agent that grows with you

fix(process): the owner-death supervisor's control pipe pins encoding=utf-8

kshitijk4poorbcec3f8a2f59
diff --git a/hermes_cli/process_identity.py b/hermes_cli/process_identity.py
index 6378c11d3bd..0868a57ec7c 100644
--- a/hermes_cli/process_identity.py
+++ b/hermes_cli/process_identity.py
@@ -811,7 +811,7 @@ def _spawn_supervisor():
return subprocess.Popen(
[_POSIX_SH, str(_SUPERVISOR_SCRIPT), str(os.getpgid(0))],
stdin=subprocess.PIPE, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
- start_new_session=True, close_fds=True, text=True)
+ start_new_session=True, close_fds=True, text=True, encoding="utf-8")
except Exception:
# Never let supervisor bookkeeping block a real child: graceful shutdown paths still reap
# normally; only the ungraceful-exit safety net is lost.