Plan parent-first decompose, reasoning streaming, TTY input editing.

Reorder non-hit plan pipeline so the parent decomposes before spawning the child, stream DeepSeek thinking (reasoning_content) to TTY, and add Unicode-aware line editing for interactive input to fix CJK backspace corruption.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-10 11:45:58 +08:00
1 parent b6bb42e460
commit d1ddb74235
16 files changed
+606 -111

No files matched your search

+12 -2
View File
@@ -237,8 +237,18 @@ impl Vm {
Op::Input => {
let prompt = pop(&mut stack).map_err(|m| self.err_at(span, m))?;
let text = prompt.as_display();
self.emit_prompt(&text);
let line = self.input.read_line().map_err(|e| {
let line = if self.capture {
self.emit_prompt(&text);
self.input.read_line()
} else if crate::input_feed::stdin_is_tty() {
self.input
.read_line_with_prompt(&text)
.map(|(line, _)| line)
} else {
self.emit_prompt(&text);
self.input.read_line()
}
.map_err(|e| {
let msg = e.to_string();
if msg.contains("input needs a line") {
self.err_at(span, msg)