Answer principles round 1: 0 🔴, 4 🟡 (0 misread); move the session lock into its own module, split loop-inbox's look from its removal, test every lock branch, file items 253 and 254

This commit is contained in:
2026-10-29 18:26:44 +01:00
parent 5df105033c
commit fb22bc33db
6 changed files with 139 additions and 63 deletions
+3 -1
View File
@@ -33,11 +33,12 @@ import sys
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, MAKE_WAY_SECONDS, read_ask, running, send, Typed, waiting
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.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
USAGE = "usage: loop-inbox"
# Milliseconds between refreshes of the list while no key is pressed.
@@ -69,6 +70,7 @@ def run(window: curses.window, screen_off: typing.Callable[[], typing.ContextMan
window.timeout(REFRESH_MS)
screen: Screen = Listing()
while True:
drop_ended(folder)
screen = entered(screen, refreshed(screen, folder), effects)
draw(window, screen, effects)
try: