[BUG] Whitelabeling does not allow any actions

未關閉
#4,634 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
冷清
技術堆疊
next.js, typescript
領域
full-stack

研究方向

Reproduce the issue in the whitelabeling settings UI and inspect the requests made when editing the name or saving changes. The report shows failures from /api/workspaces/{id}/files and /api/workspaces/{id}/files/folders; use those routes and the server logs to identify the blocking error. Done means whitelabel settings actions work and the reported errors no longer occur.

由索引模型根據 Issue 內容生成。

描述

bug

Whitelabeling does not allow any actions: the name cannot be edited or any changes can be made.

Image
- Local:         http://localhost:7860
- Network:       http://0.0.0.0:7860
✓ Ready in 0ms
2026-05-16T18:06:56.543Z INFO [Better Auth]: No active organization found, returning null
{"timestamp":"2026-05-16T18:06:58.019Z","level":"ERROR","module":"WorkspaceFileStorage","message":"Failed to list workspace files for f8358999-7aee-4b9c-9909-62b6b2f39fc0:","requestId":"fa6581a6","method":"GET","path":"/api/workspaces/f8358999-7aee-4b9c-9909-62b6b2f39fc0/files","error":"Failed query: select \"id\", \"key\", \"user_id\", \"workspace_id\", \"folder_id\", \"context\", \"chat_id\", \"original_name\", \"display_name\", \"content_type\", \"size\", \"deleted_at\", \"uploaded_at\", \"updated_at\" from \"workspace_files\" where (\"workspace_files\".\"workspace_id\" = $1 and \"workspace_files\".\"context\" = $2 and \"workspace_files\".\"deleted_at\" is null) order by \"workspace_files\".\"uploaded_at\"\nparams: f8358999-7aee-4b9c-9909-62b6b2f39fc0,workspace","stack":"Error: Failed query: select \"id\", \"key\", \"user_id\", \"workspace_id\", \"folder_id\", \"context\", \"chat_id\", \"original_name\", \"display_name\", \"content_type\", \"size\", \"deleted_at\", \"uploaded_at\", \"updated_at\" from \"workspace_files\" where (\"workspace_files\".\"workspace_id\" = $1 and \"workspace_files\".\"context\" = $2 and \"workspace_files\".\"deleted_at\" is null) order by \"workspace_files\".\"uploaded_at\"\nparams: f8358999-7aee-4b9c-9909-62b6b2f39fc0,workspace\n    at tI.queryWithCache (/app/apps/sim/.next/server/chunks/packages_db_0o7tnvl._.js:27:38907)\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)\n    at async /app/apps/sim/.next/server/chunks/packages_db_0o7tnvl._.js:27:41585\n    at async B (/app/apps/sim/.next/server/chunks/apps_sim_lib_0x28gt1._.js:1:49705)\n    at async /app/apps/sim/.next/server/chunks/[root-of-the-server]__10y7n~i._.js:1:6759\n    at async /app/apps/sim/.next/server/chunks/[root-of-the-server]__0qx9y8e._.js:1:1108\n    at async rW.do (/app/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.prod.js:5:20926)\n    at async rW.handle (/app/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.prod.js:5:25781)\n    at async l (/app/apps/sim/.next/server/chunks/[root-of-the-server]__10y7n~i._.js:1:12396)\n    at async rW.handleResponse (/app/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.prod.js:1:119701)"}
{"timestamp":"2026-05-16T18:06:58.959Z","level":"ERROR","module":"RouteHandler","message":"Unhandled route error","requestId":"a1a62ab6","method":"GET","path":"/api/workspaces/f8358999-7aee-4b9c-9909-62b6b2f39fc0/files/folders","duration":522,"error":"Failed query: select \"id\", \"name\", \"user_id\", \"workspace_id\", \"parent_id\", \"sort_order\", \"deleted_at\", \"created_at\", \"updated_at\" from \"workspace_file_folders\" where (\"workspace_file_folders\".\"workspace_id\" = $1 and \"workspace_file_folders\".\"deleted_at\" is null) order by \"workspace_file_folders\".\"sort_order\" asc, \"workspace_file_folders\".\"created_at\" asc\nparams: f8358999-7aee-4b9c-9909-62b6b2f39fc0"}
.........
....
主要語言
TypeScript
星號
29.8k
分支
3.9k
平均合併
1 小時 44 分鐘
30 天內合併 PR
841

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

simstudioai/sim 的其他 Issue

查看 simstudioai/sim 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。