diff --git a/codex-launcher_2.1.1_all.deb b/codex-launcher_2.1.1_all.deb index 6ee6e51..d1d0a1e 100644 Binary files a/codex-launcher_2.1.1_all.deb and b/codex-launcher_2.1.1_all.deb differ diff --git a/src/translate-proxy.py b/src/translate-proxy.py index 34489dc..9a5000d 100755 --- a/src/translate-proxy.py +++ b/src/translate-proxy.py @@ -744,9 +744,11 @@ class Handler(http.server.BaseHTTPRequestHandler): cc_msgs.append({"role": "tool", "tool_call_id": m["tool_call_id"], "content": [{"type": "text", "text": m.get("content", "")}]}) - thread_id = body.get("request_id") or body.get("id") or uid("thread") - if len(thread_id) < 32: - thread_id = uid("thread") + thread_id = body.get("request_id") or body.get("id") or "" + try: + uuid.UUID(thread_id) + except (ValueError, AttributeError): + thread_id = str(uuid.uuid4()) cc_body = { "config": _cc_config(),