fix(webui): support remote project paths and honor picker capabilities (#5673)

* fix(webui): honor remote workspace picker capability

* feat(webui): allow remote project path selection

* test(webui): isolate native picker availability from host platform
This commit is contained in:
chengyongru authored and GitHub committed 2026-09-14 13:14:00 +08:00
1 parent 15976ac559
commit ddd6b302c9
9 files changed
+358 -44

No files matched your search

@@ -2066,7 +2066,10 @@ async def test_remote_access_reduction_rejects_stale_in_flight_message_scope(
@pytest.mark.asyncio
async def test_webui_scope_rejects_non_loopback_custom_scope(bus: MagicMock, tmp_path) -> None:
async def test_remote_webui_scope_rejects_full_access_for_custom_scope(
bus: MagicMock,
tmp_path,
) -> None:
default_workspace = tmp_path / "default"
project = tmp_path / "project"
default_workspace.mkdir()
@@ -2096,7 +2099,7 @@ async def test_webui_scope_rejects_non_loopback_custom_scope(bus: MagicMock, tmp
payload = json.loads(conn.send.await_args.args[0])
assert payload["event"] == "error"
assert payload["detail"] == "workspace_scope_rejected"
assert payload["reason"] == "workspace controls are localhost-only"
assert payload["reason"] == "full workspace access is unavailable for this connection"
assert payload["chat_id"] == "chat-remote"
assert sessions.read_session_file("websocket:chat-remote") is None