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:
1 parent
b6bb42e460
commit
d1ddb74235
16 files changed
+606
-111
No files matched your search
+12
-2
@@ -503,8 +503,18 @@ impl Interpreter {
|
||||
.get("prompt")
|
||||
.map(|v| v.as_display())
|
||||
.unwrap_or_default();
|
||||
self.emit_prompt(&prompt);
|
||||
let line = self.input.read_line().map_err(|e| {
|
||||
let line = if self.capture {
|
||||
self.emit_prompt(&prompt);
|
||||
self.input.read_line()
|
||||
} else if crate::input_feed::stdin_is_tty() {
|
||||
self.input
|
||||
.read_line_with_prompt(&prompt)
|
||||
.map(|(line, _)| line)
|
||||
} else {
|
||||
self.emit_prompt(&prompt);
|
||||
self.input.read_line()
|
||||
}
|
||||
.map_err(|e| {
|
||||
let msg = e.to_string();
|
||||
if msg.contains("input needs a line") {
|
||||
self.err(msg)
|
||||
|
||||
Reference in new issue
Block a user