Answer principles round 1: 0 🔴, 3 🟡 (0 misread); state listed's lock, let each module drop its own ended files, test run_loop's listing end to end

This commit is contained in:
2026-10-29 20:33:52 +01:00
parent 9f71b9aa91
commit 326866e85b
9 changed files with 79 additions and 33 deletions
+2 -1
View File
@@ -40,12 +40,12 @@ import typing
from loop_inbox.inbox import Answering, answering_lines, BACKSPACE, ENTER, ESCAPE, fitted, Listing, listing_lines, Open, pressed, Quit, Screen, Send
from loop_claude.waiting import Ask, ask_file, Asking, claim_talk, ClaudeEnded, drop_ended, MAKE_WAY_SECONDS, read_ask, send, Typed, waiting
from loop_claude.running_loops import drop_ended_loops, running_loops
from loop_claude.effects import Effects, system_effects
from failure import Failure
from loop_claude.hand_over import hand_over
from loop_claude.paths import Paths, paths_from
from loop_claude.session_lock import running
from loop_claude.running_loops import running_loops
USAGE = "usage: loop-inbox"
# Milliseconds between refreshes of the list while no key is pressed.
@@ -78,6 +78,7 @@ def run(window: curses.window, screen_off: typing.Callable[[], typing.ContextMan
screen: Screen = Listing()
while True:
drop_ended(folder)
drop_ended_loops(folder)
screen = entered(screen, refreshed(screen, folder), effects)
draw(window, screen, effects)
try: