mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 21:03:19 +00:00
fix(coding-agent): prevent full re-renders during write tool streaming
Move line count from header to footer to avoid changing the first line during streaming, which was triggering full screen re-renders in the TUI's differential rendering logic.
This commit is contained in:
parent
91c52de8be
commit
d51770a63d
11 changed files with 208 additions and 8 deletions
|
|
@ -405,10 +405,15 @@ const choice = await ctx.ui.select("Pick one:", ["A", "B", "C"]);
|
|||
const ok = await ctx.ui.confirm("Delete?", "This cannot be undone");
|
||||
// Returns true or false
|
||||
|
||||
// Text input
|
||||
// Text input (single line)
|
||||
const name = await ctx.ui.input("Name:", "placeholder");
|
||||
// Returns string or undefined if cancelled
|
||||
|
||||
// Multi-line editor (with Ctrl+G for external editor)
|
||||
const text = await ctx.ui.editor("Edit prompt:", "prefilled text");
|
||||
// Returns edited text or undefined if cancelled (Escape)
|
||||
// Ctrl+Enter to submit, Ctrl+G to open $VISUAL or $EDITOR
|
||||
|
||||
// Notification (non-blocking)
|
||||
ctx.ui.notify("Done!", "info"); // "info" | "warning" | "error"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue