diff --git a/README.md b/README.md index b03f4e1..d289da8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ai 0.3.2 +# ai 0.3.3 Kompakt terminalklient för OpenRouter, optimerad för PicoCalc/Lyra. diff --git a/pyproject.toml b/pyproject.toml index 93c9473..ce6275c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "ai-terminal" -version = "0.3.2" +version = "0.3.3" description = "Compact terminal AI client for OpenRouter" requires-python = ">=3.10" dependencies = ["httpx>=0.27,<1", "PyYAML>=6.0"] diff --git a/src/ai/tui.py b/src/ai/tui.py index 1d79f27..114d130 100644 --- a/src/ai/tui.py +++ b/src/ai/tui.py @@ -516,7 +516,12 @@ class App: self.draw(status, self.display_messages()) - key = self.s.get_wch() + try: + key = self.s.get_wch() + except curses.error: + # timeout() lets streaming update the display while waiting + # for keyboard input. curses raises ERR on timeout. + continue if key == -1: continue