refactor(ActionExecutor): rework staged execution and runner submit

Context:
This refactor drops unnecessary method abstractions and cleans the action execution flow.
Additionally, method 'run' is renamed to 'submit' in RunnerClient, which better reflects that execution results are held in MetaAction.
This commit is contained in:
2026-01-25 19:38:53 +08:00
parent 830503eee4
commit 5ffdab9e4a
6 changed files with 91 additions and 145 deletions

View File

@@ -835,7 +835,7 @@ public class LocalRunnerClientTest {
try {
MetaAction metaAction = buildMetaAction(MetaActionType.MCP, "missing-client", "missing-tool", Map.of());
client.run(metaAction);
client.submit(metaAction);
Assertions.assertNotNull(metaAction.getResult().getData());
} finally {
executor.shutdownNow();
@@ -862,7 +862,7 @@ public class LocalRunnerClientTest {
Assertions.assertTrue(hasActionKey(existedMetaActions, key -> key.startsWith("playwright::")));
MetaAction metaAction = buildMetaAction(MetaActionType.MCP, "playwright", "browser_navigate", Map.of("url", "https://deepwiki.com/microsoft/vscode"));
client.run(metaAction);
client.submit(metaAction);
Assertions.assertNotEquals(MetaAction.ResultStatus.WAITING, metaAction.getResult().getStatus());
} finally {
executor.shutdownNow();