List every running loop in loop-inbox, with the ID and tagline of each item its chunk takes
This commit is contained in:
+11
-3
@@ -1,4 +1,5 @@
|
||||
"""Show the interrupts of every loop-claude on this machine, oldest first, and answer each one here.
|
||||
Below them, list every loop-claude that runs and the todo.md items its chunk takes.
|
||||
|
||||
usage: loop-inbox
|
||||
|
||||
@@ -20,8 +21,14 @@ loop-inbox running. A loop with claude open, for a release ready to cut, the rou
|
||||
asking for its project's model, as on a project's first run, asks on its own terminal only. q quits
|
||||
loop-inbox; the loops keep waiting.
|
||||
|
||||
Below the questions, each running loop shows its checkout, the number it waits as, if any, and a
|
||||
line per todo.md item its chunk takes: the item it was routed on, then those the judge found the
|
||||
worker took in, each with its tagline from the default branch. A loop whose process is gone drops
|
||||
off this list too.
|
||||
|
||||
The loops' questions are files in ~/.local/state/loop-claude, read and written as
|
||||
bin/loop_claude/waiting.py describes.
|
||||
bin/loop_claude/waiting.py describes; the running loops are files beside them, as
|
||||
bin/loop_claude/running_loops.py describes.
|
||||
|
||||
Exit 2 when stdin or stdout is not a terminal, or on an unknown argument.
|
||||
"""
|
||||
@@ -39,6 +46,7 @@ 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.
|
||||
@@ -103,10 +111,10 @@ def key_name(key: str | int) -> str:
|
||||
|
||||
|
||||
def refreshed(screen: Screen, folder: pathlib.Path) -> Screen:
|
||||
"""screen with the loops as they wait now, unless the human is typing a number; a question that no longer waits leaves the answer screen."""
|
||||
"""screen with the loops as they wait and run now, unless the human is typing a number; a question that no longer waits leaves the answer screen."""
|
||||
match screen:
|
||||
case Listing(_, "", note):
|
||||
return Listing(tuple(waiting(folder)), "", note)
|
||||
return Listing(tuple(waiting(folder)), "", note, tuple(running_loops(folder)))
|
||||
case Answering(ask) if not still_waits(folder, ask):
|
||||
return Listing(note=no_longer_waits(ask))
|
||||
return screen
|
||||
|
||||
Reference in New Issue
Block a user