fix: restore interactive PTY behavior
Some checks failed
tamq-ci / test (push) Failing after 6s

Assistant: codex
Assistant-Model: gpt-5.6-sol
Assistant-Session: 01a03397-4d51-7fd1-8ff2-946eb22ea2bc
This commit is contained in:
tegwick 2026-08-24 19:28:49 +02:00
parent 397a2b4d58
commit 68475922bb
15 changed files with 437 additions and 50 deletions

View file

@ -57,8 +57,9 @@ def test_detached_no_service_start_skips_socket_registration(monkeypatch, capsys
assert command == "codex"
return "plan"
def ensure_plan(self, plan):
def ensure_plan(self, plan, *, tap=True):
assert plan == "plan"
assert tap is False
return endpoint
monkeypatch.setattr("tamq.cli.TmuxManager", Manager)
@ -88,7 +89,8 @@ def test_interactive_no_service_start_attaches(monkeypatch, capsys):
def preflight(self, repos, command):
return "plan"
def ensure_plan(self, plan):
def ensure_plan(self, plan, *, tap=True):
assert tap is False
return endpoint
attached = []
@ -118,7 +120,8 @@ def test_registration_failure_rolls_back_created_windows(monkeypatch, capsys):
def preflight(self, repos, command):
return "plan"
def ensure_plan(self, plan):
def ensure_plan(self, plan, *, tap=True):
assert tap is True
return endpoint
def rollback(self, value):