Skip to content

Commit 3430976

Browse files
committed
fix: type check error
1 parent 183a4a8 commit 3430976

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

services/workspace_tabs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -848,20 +848,20 @@ def _safe_fetchall(query: str, params: tuple = ()) -> list:
848848
if len(parts) < 2:
849849
continue
850850
chat_id = parts[1]
851-
ctx = _loads_kv_value_logged(row["key"], row["value"])
852-
if not isinstance(ctx, dict):
851+
mrc = _loads_kv_value_logged(row["key"], row["value"])
852+
if not isinstance(mrc, dict):
853853
continue
854854

855855
# Per-bubble context map (needs the contextId at parts[2])
856856
if len(parts) >= 3:
857857
context_id = parts[2]
858858
message_request_context_map.setdefault(chat_id, []).append({
859-
**ctx,
859+
**mrc,
860860
"contextId": context_id,
861861
})
862862

863863
# Project-layout map (root paths used by the resolver)
864-
layouts = ctx.get("projectLayouts")
864+
layouts = mrc.get("projectLayouts")
865865
if isinstance(layouts, list):
866866
project_layouts_map.setdefault(chat_id, [])
867867
for layout in layouts:

0 commit comments

Comments
 (0)