Fix background MCP input and add mirror dungeon feedback records

Browse Source
This commit is contained in:
Codex Agent
2026-10-02 13:58:43 +08:00
parent a4b27f991c
commit da7dcefadd
45 changed files with 6180 additions and 9 deletions
+4
View File
@@ -67,6 +67,10 @@ def answer_offline(reason, stdin, stdout):
def main(): def main():
# The protocol is bytes, but Chinese diagnostics still use stderr text.
# Windows may otherwise encode errors as cp936 for a UTF-8 MCP client.
if hasattr(sys.stderr, 'reconfigure'):
sys.stderr.reconfigure(encoding='utf-8')
stdin, stdout = sys.stdin.buffer, sys.stdout.buffer stdin, stdout = sys.stdin.buffer, sys.stdout.buffer
try: try:
sock, rfile = connect() sock, rfile = connect()