Skip to content

Open-source AI podcast clipper. Generate vertical clips with face tracking and burned-in captions. CLI, MCP server, web app.

fix: flush stdin and strip non-printable chars from interactive menu input

Nika Siradzee0ba32f9a99b
diff --git a/backend/cli.py b/backend/cli.py
index 67b4c8c..a4b386d 100644
--- a/backend/cli.py
+++ b/backend/cli.py
@@ -1443,7 +1443,9 @@ def interactive_menu():
print()
try:
- choice = input(f" {accent}▸{reset} ").strip().strip("\r")
+ _flush_stdin()
+ raw = input(f" {accent}▸{reset} ")
+ choice = "".join(c for c in raw if c.isprintable()).strip()
except (EOFError, KeyboardInterrupt):
print()
return