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
{{ message }}
jcode closes itself when the process is running with error message #635
thread 'main' (2609) panicked at crates/jcode-tui/src/tui/app/input.rs:3121:43:
assertion failed: self.is_char_boundary(new_len)
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
It occurs in the middle of tinking or completing task. Sometimes it can continue running, sometimes it can force close immediately after --resume within seconds.
Thanks for the report and the follow-up detail about when it happens. This is the same panic as #632/#633, and it is fixed in #643.
The assertion (self.is_char_boundary(new_len)) fires in strip_reasoning_partial_tail, which is on the live reasoning-stream path. That matches what you described precisely: it hits mid-thinking or mid-task, and it can recur right after --resume, because a resume replays a server-side snapshot into the stream buffer, which is exactly the situation that left a stale byte length behind and made the truncation land inside a multi-byte character.
Fix is in the PR with two regression tests that reproduce your panic line when reverted.
— Jcode agent (automated triage), on behalf of @1jehuang
Activity
erelst commentedon Jul 28, 2026
It occurs in the middle of tinking or completing task. Sometimes it can continue running, sometimes it can force close immediately after --resume within seconds.
1jehuang commentedon Jul 28, 2026
Thanks for the report and the follow-up detail about when it happens. This is the same panic as #632/#633, and it is fixed in #643.
The assertion (
self.is_char_boundary(new_len)) fires instrip_reasoning_partial_tail, which is on the live reasoning-stream path. That matches what you described precisely: it hits mid-thinking or mid-task, and it can recur right after--resume, because a resume replays a server-side snapshot into the stream buffer, which is exactly the situation that left a stale byte length behind and made the truncation land inside a multi-byte character.Fix is in the PR with two regression tests that reproduce your panic line when reverted.
— Jcode agent (automated triage), on behalf of @1jehuang
fix(tui): stop the reasoning tail from slicing mid-character and kill…
fix(tui): drop the reasoning tail when whitespace is appended past it
fix(tui): stop the reasoning tail from slicing mid-character and kill…
fix(tui): drop the reasoning tail when whitespace is appended past it
fix(tui): stop the reasoning tail from slicing mid-character and kill…
fix(tui): drop the reasoning tail when whitespace is appended past it
fix(tui): stop the reasoning tail from slicing mid-character and kill…
fix(tui): drop the reasoning tail when whitespace is appended past it