|
24 | 24 | warn_workspace_json_read, |
25 | 25 | ) |
26 | 26 | from utils.workspace_descriptor import read_json_file |
27 | | -from services.workspace_resolver import ( |
28 | | - infer_workspace_name_from_context, |
29 | | - lookup_workspace_display_name, |
30 | | -) |
| 27 | +from services.workspace_resolver import infer_workspace_name_from_context |
31 | 28 | from services.cli_tabs import get_cli_workspace_tabs |
32 | 29 | from services.workspace_listing import list_workspace_projects |
33 | 30 | from services.workspace_tabs import ( |
@@ -59,7 +56,8 @@ def _request_nocache() -> bool: |
59 | 56 | def list_workspaces() -> tuple[Response, int] | Response: |
60 | 57 | """List workspace projects for the sidebar (GET /api/workspaces). |
61 | 58 |
|
62 | | - Honors ``?nocache=1`` to bypass the summary disk cache. |
| 59 | + Args: |
| 60 | + nocache: When ``1`` or ``true``, bypass the summary disk cache. |
63 | 61 |
|
64 | 62 | Returns: |
65 | 63 | JSON with ``projects`` and optional ``warnings``. 500 on failure. |
@@ -171,9 +169,8 @@ def get_workspace_tabs(workspace_id: str) -> tuple[Response, int] | Response: |
171 | 169 | Args: |
172 | 170 | workspace_id: Storage folder name, ``global`` for unassigned chats, or |
173 | 171 | ``cli:<project_id>``. |
174 | | -
|
175 | | - Query params: ``summary=1`` for lightweight tab headers only; ``nocache=1`` to |
176 | | - bypass cache on summary requests. |
| 172 | + summary: When ``1`` or ``true``, return lightweight tab headers only. |
| 173 | + nocache: When ``1`` or ``true``, bypass cache on summary requests. |
177 | 174 |
|
178 | 175 | Returns: |
179 | 176 | Tabs payload from :func:`services.workspace_tabs` helpers (typically |
|
0 commit comments