π OpenHands: AI-Driven Development
fix(frontend): Remove unnecessary encoding in `/list-files` API endpoint path param (#4287)
sp.wackd5fc8bc65ff1
diff --git a/frontend/src/api/open-hands.ts b/frontend/src/api/open-hands.tsindex 770385b5ec..0d1c2e21df 100644--- a/frontend/src/api/open-hands.ts+++ b/frontend/src/api/open-hands.ts@@ -65,7 +65,7 @@ class OpenHands {*/static async getFiles(token: string, path?: string): Promise<string[]> {const url = new URL(`${OpenHands.BASE_URL}/api/list-files`);- if (path) url.searchParams.append("path", encodeURIComponent(path));+ if (path) url.searchParams.append("path", path);const response = await fetch(url.toString(), {headers: OpenHands.generateHeaders(token),