Fix background MCP input and add mirror dungeon feedback records
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user