[filters.ollama]
description = "Strip ANSI spinners and cursor control from ollama output, keep final text"
match_command = "^ollama\\s+run\\b"
strip_ansi = true
strip_lines_matching = [
"^[⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏\\s]*$",
"^\\s*$",
]
[[tests.ollama]]
name = "strips spinner lines, keeps response"
input = "⠋ \n⠙ \n⠹ \nHello! How can I help you today?"
expected = "Hello! How can I help you today?"
[[tests.ollama]]
name = "preserves multi-line response"
input = "⠋ \n⠙ \nLine one of the response.\nLine two of the response."
expected = "Line one of the response.\nLine two of the response."
[[tests.ollama]]
name = "empty input"
input = ""
expected = ""