mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-16 01:40:15 +08:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user