Handle syntax highlight for streamed response #5
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It's easy to highlight a message when we have the entire contents of it, but it would also be nice to have syntax highlighting on a message from the LLM as it's being streamed in.
Syntax highlighting with Chroma only works on text blobs (i.e., it can't handle a stream of text), so one possible solution is to update
HandleDelayedResponse
so that it re-draws the whole received text using every so often. It could be changed to accept a callback which does post-processing on the received text, which gets called numerous times with the up-till-now response as it is being received.This is handled fairly well in the TUI by re-rendering the entire incoming message for each chunk that is received.
Closing as completed, may revisit for the CLI later