Fixing delayed processing status

This commit is contained in:
Dita Aji Pratama 2026-08-16 22:08:19 +07:00
parent 4f4ffbacf4
commit 104ef83a85

View File

@ -71,6 +71,12 @@ def submit(app, stdscr):
app.scroll = 999999
app.processing = True
# Status langsung pindah ke PROCESSING sebelum kerja berat (persistensi
# session / LLM) yang memblok UI thread. Lazy import untuk menghindari
# circular import (agent -> render -> menubar -> actions -> agent).
from .render import draw
draw(app, stdscr)
if app.current_session is None:
app.current_session = app.session_mgr.create(
f"Session {datetime.now().strftime('%Y-%m-%d %H:%M')}",