fix: attach_command from one builder, no kill/start_command, row-less stop, one herdr name rule, registry format 2 (Issue #71) #73

Merged
Godopu merged 15 commits from fix/issue-71 into main 2026-10-26 22:28:51 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit bd61ef532f - Show all commits

No files matched your search

+2 -2
View File
@@ -155,12 +155,12 @@ class HerdrError(Exception):
class HerdrSource(object): class HerdrSource(object):
"""Every herdr and OS read the judgement needs, in one place.""" """Every herdr and OS read the judgement needs, in one place."""
def __init__(self, target, agent, session=None, name=None): def __init__(self, target, agent, session=None, *, name):
self.target, self.session = target, session or None self.target, self.session = target, session or None
# `name` is the name herdr knows the agent by (#66), worked out once # `name` is the name herdr knows the agent by (#66), worked out once
# by StallWatch (#71); the kind is read off the original name, whose # by StallWatch (#71); the kind is read off the original name, whose
# suffix a long name's hash replaces. # suffix a long name's hash replaces.
self.name = name or target self.name = name
self.agent = resolve_agent(agent, target) self.agent = resolve_agent(agent, target)
adapter = get_adapter(self.agent) if self.agent else None adapter = get_adapter(self.agent) if self.agent else None
self.resident = tuple(adapter.resident_children) if adapter else () self.resident = tuple(adapter.resident_children) if adapter else ()
+1 -1
View File
@@ -96,7 +96,7 @@ def test_the_1x_capture_still_reads_empty():
@pytest.mark.parametrize("name", HOME_SCREENS) @pytest.mark.parametrize("name", HOME_SCREENS)
def test_stall_watch_sees_the_2x_home_box_empty(name, monkeypatch): def test_stall_watch_sees_the_2x_home_box_empty(name, monkeypatch):
src = stall_watch.HerdrSource("t", "opencode") src = stall_watch.HerdrSource("t", "opencode", name="t")
monkeypatch.setattr(src, "_herdr", lambda *args: _pane(name)) monkeypatch.setattr(src, "_herdr", lambda *args: _pane(name))
assert src.input_empty() is True assert src.input_empty() is True