Files
isparkclaw-webui/tests/test_issue616.py
Frank Song 62c56175b7 feat(workspaces): autocomplete trusted workspace paths — v0.50.162 (PR #880 by @franksong2702, closes #616)
Adds GET /api/workspaces/suggest endpoint and autocomplete dropdown in the Spaces panel. Suggestions limited to trusted roots (home, saved workspaces, boot default). Keyboard nav, Tab completion, hidden dir support. Symlink-escape and dotdot-escape invariants locked by regression tests.
2026-04-23 02:35:58 +00:00

18 lines
585 B
Python

import pathlib
def test_workspace_suggest_endpoint_is_wired():
src = pathlib.Path("api/routes.py").read_text(encoding="utf-8")
assert '"/api/workspaces/suggest"' in src
def test_spaces_panel_uses_workspace_suggest_autocomplete():
src = pathlib.Path("static/panels.js").read_text(encoding="utf-8")
assert "/api/workspaces/suggest" in src
assert "wsAddSuggestions" in src
assert "scheduleWorkspacePathSuggestions" in src
assert "if(!prefix)" in src
assert "dataset.path" in src
assert "scrollIntoView" in src
assert "_wsSuggestIndex=0" in src