fix: AI review list UTC filter, vision timeout, and stuck loading state

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-05 13:59:17 +08:00
parent 4ac4c062e0
commit 3f1bf9905d
11 changed files with 199 additions and 122 deletions
+3 -2
View File
@@ -138,6 +138,7 @@ from history_window_lib import (
resolve_window,
sql_list_time_field,
utc_window_to_bj_sql_strings,
utc_window_to_utc_sql_strings,
)
def load_env_file(path):
@@ -7791,11 +7792,11 @@ def delete_journal(jid):
@login_required
def api_reviews():
win = _list_window_from_request()
start_bj, end_bj = utc_window_to_bj_sql_strings(win["start_utc"], win["end_utc"], APP_TZ)
start_sql, end_sql = utc_window_to_utc_sql_strings(win["start_utc"], win["end_utc"])
conn = get_db()
rows = conn.execute(
"SELECT * FROM ai_reviews WHERE created_at >= ? AND created_at <= ? ORDER BY created_at DESC LIMIT 200",
(start_bj, end_bj),
(start_sql, end_sql),
).fetchall()
conn.close()
return jsonify([row_to_dict(r) for r in rows])