Skip to content

Commit 5aa4313

Browse files
fix(mcp_client): 修复编码问题
1 parent 1ad15f0 commit 5aa4313

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

action/mcp_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,8 @@ def run(self, user_message):
548548
def main():
549549
"""Main entry point — read config from env vars, run analysis, write output."""
550550
print("::group::Step 4 - AI Crash Dump Analysis", flush=True)
551+
sys.stdout.reconfigure(encoding="utf-8")
552+
sys.stderr.reconfigure(encoding="utf-8")
551553

552554
# -- Read configuration from environment variables -----------------------
553555
api_key = os.environ.get("API_KEY", "")

0 commit comments

Comments
 (0)