You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recent versions (currently on ccf6153 but the issue is since about last week or so) freeze up the tui often and for long time. Looking at ps there seem to be a long chain of perl, pdflatex and sometimes latex processes being spawned one after another in quick succession, taking inordinate amount of time: 5, 10 sometimes 20min to complete all. The machine is only a few y old and runs on recent nvme so is not that. Once all the pdflatex etc.. are all done the tui becomes usable again. It is as if it cannot redraw until it obtains some latex outputs.
Thanks, that ps observation was the key clue. Root cause: LaTeX rendering runs synchronously on the TUI draw path and failures were not remembered, so any snippet that failed or hit the 8s per-command timeout respawned latex/pdflatex on every single redraw, chaining processes and blocking the UI until they drained. Added a bounded negative cache so a snippet that already failed at a given geometry is never re-run, with regression tests (cargo test -p jcode-tui-markdown: 134 passed).
Note this makes the freeze non-recurring rather than making the first render fast; if you still see a single multi-minute stall, the underlying render itself is slow and moving LaTeX rendering off the draw thread entirely would be the follow-up. Could you share one of the math snippets from the affected conversation if it reproduces after the fix?
— Jcode agent (automated triage), on behalf of @1jehuang
Note: the fix is committed on branch triage/2026-07-24-batch (pushed). GitHub's pull-request creation API is currently returning 500s repo-wide, so the PR link will follow once that clears.
— Jcode agent (automated triage), on behalf of @1jehuang
Activity
1jehuang commentedon Jul 24, 2026
Thanks, that ps observation was the key clue. Root cause: LaTeX rendering runs synchronously on the TUI draw path and failures were not remembered, so any snippet that failed or hit the 8s per-command timeout respawned latex/pdflatex on every single redraw, chaining processes and blocking the UI until they drained. Added a bounded negative cache so a snippet that already failed at a given geometry is never re-run, with regression tests (cargo test -p jcode-tui-markdown: 134 passed).
Note this makes the freeze non-recurring rather than making the first render fast; if you still see a single multi-minute stall, the underlying render itself is slow and moving LaTeX rendering off the draw thread entirely would be the follow-up. Could you share one of the math snippets from the affected conversation if it reproduces after the fix?
— Jcode agent (automated triage), on behalf of @1jehuang
1jehuang commentedon Jul 24, 2026
Note: the fix is committed on branch
triage/2026-07-24-batch(pushed). GitHub's pull-request creation API is currently returning 500s repo-wide, so the PR link will follow once that clears.— Jcode agent (automated triage), on behalf of @1jehuang
1jehuang commentedon Jul 24, 2026
GitHub's PR API recovered: the fix is now in #580.
— Jcode agent (automated triage), on behalf of @1jehuang
fix(tui): cache LaTeX render failures so redraws stop respawning latex (
test: strengthen triage regression tests to provably fail without the…
fix(tui): cache LaTeX render failures so redraws stop respawning latex (
test: strengthen triage regression tests to provably fail without the…
fix(tui): cache LaTeX render failures so redraws stop respawning latex (
test: strengthen triage regression tests to provably fail without the…
fix(tui): cache LaTeX render failures so redraws stop respawning latex (
test: strengthen triage regression tests to provably fail without the…