Answer stability round 2: 0 🔴, 1 🟡; drop keys typed before the question when a release ready to cut opens claude too, and say where item 182's paste ends

This commit is contained in:
2026-10-17 23:41:59 +02:00
parent e7f5443688
commit 1f380af695
3 changed files with 10 additions and 9 deletions
+2 -2
View File
@@ -27,10 +27,10 @@ def put_question(question: str, answer_here: bool, effects: Effects) -> str | Ta
print(f"\n{question}", file=sys.stderr)
if stop := needs_terminal(ANSWER_QUESTION, effects.on_terminal()):
return stop
# Keys typed while the worker ran wait on the terminal, so they would answer a question no one has read, here or in claude's session, which reads them too. A paste's lines after the first are dropped with them at the next question, never taken as its answer; a longer answer goes through TALK.
effects.discard_typed()
if not answer_here:
return Talk()
# Keys typed while the worker ran wait on the terminal, so they would answer a question no one has read. A paste's lines after the first are dropped with them at the next question, never taken as its answer; a longer answer goes through TALK.
effects.discard_typed()
try:
answer = effects.input(ASK_ANSWER).strip()
except EOFError: