fix: address Cubic round-3 P2/P3 issues

- Encode path segments with encodeURIComponent in HTTP API URLs
  to prevent broken requests when IDs contain special characters
- Remove unused readMessagesFromSDK from messages-reader.ts
  (production callers use local implementations; dead code)
This commit is contained in:
YeonGyu-Kim
2026-02-16 00:28:15 +09:00
parent 5f97a58019
commit d7b38d7c34
4 changed files with 3 additions and 80 deletions
+2 -2
View File
@@ -74,7 +74,7 @@ export async function patchPart(
return false
}
const url = `${baseUrl}/session/${sessionID}/message/${messageID}/part/${partID}`
const url = `${baseUrl}/session/${encodeURIComponent(sessionID)}/message/${encodeURIComponent(messageID)}/part/${encodeURIComponent(partID)}`
try {
const response = await fetch(url, {
@@ -117,7 +117,7 @@ export async function deletePart(
return false
}
const url = `${baseUrl}/session/${sessionID}/message/${messageID}/part/${partID}`
const url = `${baseUrl}/session/${encodeURIComponent(sessionID)}/message/${encodeURIComponent(messageID)}/part/${encodeURIComponent(partID)}`
try {
const response = await fetch(url, {