Skip to content

Commit dfb94f7

Browse files
committed
Fix /tables command: use correct schema format (no .tables wrapper)
1 parent a4694b3 commit dfb94f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/web/routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def _save_assistant(sid: str, data: dict) -> None:
424424
# /tables — list table names
425425
if msg_lower == "/tables":
426426
result = registry.call("sql.schema", {})
427-
tables = list(result.get("schema", {}).get("tables", {}).keys())
427+
tables = list(result.get("schema", {}).keys())
428428
ctx = {"tables": tables, "is_direct": True, "command": "tables"}
429429
settings_db.add_chat_message(session_id, "user", message)
430430
_save_assistant(session_id, ctx)

0 commit comments

Comments
 (0)