[BUG] Whitelabeling does not allow any actions

未关闭
#4,634 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
冷清
领域
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 摘要。