fix: hopefully shell now parity with old

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-26 07:23:48 +02:00
parent 3556ab45b3
commit fd1b8e7bd4
10 changed files with 1079 additions and 33 deletions

View File

@@ -32,6 +32,10 @@ defmodule BDS.Desktop.Automation do
GenServer.call(session, {:press, shortcut}, @request_timeout)
end
def native_menu_action(session, action) when is_binary(action) do
GenServer.call(session, {:native_menu_action, action}, @request_timeout)
end
def reload(session) do
GenServer.call(session, :reload, @request_timeout)
end
@@ -102,6 +106,11 @@ defmodule BDS.Desktop.Automation do
{:reply, normalize_simple_reply(reply), state}
end
def handle_call({:native_menu_action, action}, _from, state) do
{reply, state} = driver_request(state, %{"command" => "native_menu_action", "action" => action})
{:reply, normalize_simple_reply(reply), state}
end
def handle_call(:reload, _from, state) do
{reply, state} = driver_request(state, %{"command" => "reload"})
{:reply, normalize_simple_reply(reply), state}