Answer product-owner round 1: 1 🔴, 1 🟡 (1 misread); DM through the checkout of a held-up issue's repo and show the DM in the window

This commit is contained in:
2026-11-19 02:44:22 +01:00
parent 1c6f229cd9
commit d652ab20d3
4 changed files with 20 additions and 9 deletions
+3 -3
View File
@@ -36,8 +36,8 @@ class Effects:
claude_on_terminal: typing.Callable[[list[str], str, dict[str, str]], int]
# Drops what was typed on the terminal and not yet read.
discard_typed: typing.Callable[[], None]
# Sends the human a direct message through the notifier the project's config names, as `notify` does, for the project whose checkout holds the current directory; a Failure where it could not.
dm: typing.Callable[[str], Failure | None]
# Sends the human a direct message through the notifier the project's config names, as `notify` does, for the project whose checkout holds the given directory, else the current directory; a Failure where it could not.
dm: typing.Callable[[str, str | None], Failure | None]
execv: typing.Callable[[str, list[str]], None]
git: git_repo.Git
input: typing.Callable[[str], str]
@@ -75,7 +75,7 @@ def system_effects(backends: typing.Mapping[Notifier, Backend[typing.Any]] = BAC
claude=lambda args, cwd, stdin: subprocess.run(["claude", *args], capture_output=True, cwd=cwd, input=stdin, text=True),
claude_on_terminal=claude_on_terminal,
discard_typed=lambda: termios.tcflush(sys.stdin, termios.TCIFLUSH),
dm=lambda text: notify(text, None, pathlib.Path.home(), backends),
dm=lambda text, directory: notify(text, directory, pathlib.Path.home(), backends),
execv=os.execv,
git=git_repo.git,
input=input,