Skip to content
Open
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
8 changes: 3 additions & 5 deletions openhands_cli/acp_impl/slash_commands.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Slash commands implementation for ACP."""

import logging
from typing import get_args

from acp.schema import AvailableCommand, AvailableCommandInput, UnstructuredCommandInput

Expand All @@ -19,11 +20,8 @@

logger = logging.getLogger(__name__)

VALID_CONFIRMATION_MODE: list[ConfirmationMode] = [
"always-ask",
"always-approve",
"llm-approve",
]
# Derive valid modes from ConfirmationMode type to keep list in sync with type
VALID_CONFIRMATION_MODE: list[ConfirmationMode] = list(get_args(ConfirmationMode))


def get_available_slash_commands() -> list[AvailableCommand]:
Expand Down