feat: headless_prompt method on AgentProvider + --prompt arg
test / integration (pull_request) Successful in 24s
test / coverage (pull_request) Failing after 55s
lint / lint (push) Failing after 2m10s
test / unit (pull_request) Failing after 13m3s

This commit is contained in:
2026-06-29 12:55:19 -04:00
parent fe354d3ffb
commit 4424eee9fa
@@ -314,5 +314,14 @@ class TestCodexSuperviseMcp(unittest.TestCase):
)
class TestCodexHeadlessPrompt(unittest.TestCase):
def test_returns_prompt_as_positional_arg(self):
self.assertEqual(["Do the task"], CodexAgentProvider().headless_prompt("Do the task"))
def test_preserves_prompt_text_verbatim(self):
text = "Fix issue #42: the widget breaks on empty input"
self.assertEqual([text], CodexAgentProvider().headless_prompt(text))
if __name__ == "__main__":
unittest.main()