refactor: rename pty_process to cc_runner

The module has long since moved away from PTY technology, using
claude -p with --output-format stream-json and --resume instead.
Rename to cc_runner to accurately reflect what it does.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Yuyao Huang (Sam)
2026-03-30 00:55:19 +08:00
co-authored by Claude Sonnet 4.6
parent a278ece348
commit 1b2bb8cdc2
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ def mock_run_claude():
Default return value is a short CC-style output string.
"""
mock = AsyncMock(return_value="Claude Code: task complete.")
with patch("agent.pty_process.run_claude", mock), \
with patch("agent.cc_runner.run_claude", mock), \
patch("agent.manager.run_claude", mock):
yield mock