feat: add ChatUI project workspaces (#9066)

* feat: add ChatUI project workspaces

* feat: refine chatui layout

* feat: enhance chat input and project view styles for attachment handling

* feat: adjust chat sidebar brand logo positioning

* feat: enhance project dialog with error handling and loading state
This commit is contained in:
Weilong Liao
2026-07-03 21:54:20 +08:00
committed by GitHub
parent 89b80a6ca7
commit e7d5be632f
43 changed files with 3413 additions and 965 deletions

View File

@@ -36,9 +36,13 @@ async def test_local_python_tool_uses_session_workspace(tmp_path, monkeypatch):
"astrbot.core.tools.computer_tools.python.get_local_booter",
lambda: SimpleNamespace(python=SimpleNamespace(exec=python_exec)),
)
async def fake_workspace_root_for_context(context):
return tmp_path / context.context.event.unified_msg_origin.replace(":", "_")
monkeypatch.setattr(
"astrbot.core.tools.computer_tools.python.workspace_root",
lambda umo: tmp_path / umo.replace(":", "_"),
"astrbot.core.tools.computer_tools.python.workspace_root_for_context",
fake_workspace_root_for_context,
)
event = SimpleNamespace(