Conversation
- Remove process.stdin.setRawMode(true) to fix cursor disappearing - Remove manual cursor manipulation with ANSI codes - Implement Ollama completionStream using streamingGenerate API - Add Ollama streaming handling in runCompletion method Co-authored-by: joone <1979160+joone@users.noreply.github.com>
- Refactor completionStream to use async iterator pattern - Yield chunks immediately as they arrive from callback - Use queue and promise-based approach for true streaming - Addresses code review feedback Co-authored-by: joone <1979160+joone@users.noreply.github.com>
- Queue chunks before resolving to prevent race conditions - Clear chunk queue on error to avoid stale data - Use break instead of return to ensure newline is written - Improve consistency in null handling across streaming implementations Co-authored-by: joone <1979160+joone@users.noreply.github.com>
- Rename resolveNext to pendingResolve for clarity - Use chunks.splice(0) instead of chunks.length = 0 - Address code review style suggestions Co-authored-by: joone <1979160+joone@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix cursor disappearing and add streaming for Ollama in interactive mode
Fix cursor disappearing and implement Ollama streaming in interactive mode
Feb 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Interactive mode had two issues: cursor disappeared after startup, and Ollama responses weren't streamed in real-time.
Changes
Cursor visibility fix
process.stdin.setRawMode(true)and ANSI cursor manipulation codes fromCommandLinePromptOllama streaming implementation
OllamaAPI.completionStream()using ollama-node'sstreamingGeneratecallback APIThe async iterator yields
{response: chunk}objects compatible with existing streaming infrastructure used by OpenAI and GitHub Copilot handlers.💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.