capitalize the text for key press and hold key actions (#2263)
This commit is contained in:
@@ -484,7 +484,7 @@ async def parse_anthropic_actions(
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
elif action in ["key", "hold_key"]:
|
elif action in ["key", "hold_key"]:
|
||||||
text = tool_call_input.get("text")
|
text = tool_call_input.get("text", "")
|
||||||
if not text:
|
if not text:
|
||||||
LOG.warning(
|
LOG.warning(
|
||||||
"Anthropic CUA error: key action has no text",
|
"Anthropic CUA error: key action has no text",
|
||||||
@@ -492,6 +492,7 @@ async def parse_anthropic_actions(
|
|||||||
)
|
)
|
||||||
idx += 1
|
idx += 1
|
||||||
continue
|
continue
|
||||||
|
text = text.capitalize()
|
||||||
response = f"Press keys: {text}"
|
response = f"Press keys: {text}"
|
||||||
hold = action == "hold_key"
|
hold = action == "hold_key"
|
||||||
duration = tool_call_input.get("duration", 0)
|
duration = tool_call_input.get("duration", 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user