Fixing delayed processing status
This commit is contained in:
parent
4f4ffbacf4
commit
104ef83a85
@ -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')}",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user