Retire the section-headers decision, reject an interrupt without a question, and name file_writes by what it does
This commit is contained in:
@@ -27,5 +27,5 @@ def interrupt(root, session_id, model, path, question, paths):
|
||||
if isinstance(entries, Failure):
|
||||
return Stop(1, f"could not tell whether you typed anything: {entries.reason}")
|
||||
if human_turns(entries) <= before:
|
||||
return human.needed(TO, "the interrupt ended without you typing anything")
|
||||
return human.needed(TO, "the interrupt ended with nothing typed")
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user