Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/aipass/drone/apps/drone.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
MODULES_DIR = Path(__file__).parent / "modules"

# Interactive mode — commands/branches that bypass capture + timeout for live terminal output.
INTERACTIVE_COMMANDS = ("monitor", "audit")
INTERACTIVE_COMMANDS = ("monitor", "audit", "watchdog")
INTERACTIVE_BRANCHES = ("cli",)


Expand Down
14 changes: 14 additions & 0 deletions src/aipass/drone/tests/test_activation.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,20 @@ def test_interactive_detection_for_branch(self, mock_route: MagicMock) -> None:
call_kwargs = mock_route.call_args.kwargs
assert call_kwargs["interactive"] is True

@patch("aipass.drone.apps.drone.route_command")
def test_watchdog_routes_interactive(self, mock_route: MagicMock) -> None:
"""watchdog command should route with interactive=True (long-running poller)."""
from aipass.drone.apps.drone import _handle_target

mock_route.return_value = CommandResult(
stdout="", stderr="", exit_code=0, branch="devpulse", command="watchdog",
)

_handle_target(["@devpulse", "watchdog", "--help"])

call_kwargs = mock_route.call_args.kwargs
assert call_kwargs["interactive"] is True

@patch("aipass.drone.apps.drone.route_command")
def test_propagates_exit_code(self, mock_route: MagicMock) -> None:
"""Should return the route_command exit code."""
Expand Down
Loading