fix(backend/copilot): encode content to bytes in cmd_load upload_transcript call

upload_transcript now requires bytes for the content param but cmd_load was
passing a str read from the transcript file. Encode to UTF-8 before the call.
This commit is contained in:
Zamil Majdy
2026-04-16 14:14:22 +07:00
parent c263fbca5c
commit 7aef023f28

View File

@@ -229,7 +229,7 @@ async def cmd_load(session_ids: list[str]) -> None:
await upload_transcript(
user_id=user_id,
session_id=sid,
content=content,
content=content.encode("utf-8"),
message_count=msg_count,
)
print(f"[{sid[:12]}] Stored transcript in local workspace storage")