Skip to content

Commit 08d8454

Browse files
committed
refactor actHandler
1 parent 898e1f4 commit 08d8454

File tree

4 files changed

+176
-186
lines changed

4 files changed

+176
-186
lines changed

packages/core/lib/v3/cache/ActCache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export class ActCache {
171171
const execute = async (): Promise<ActResult> => {
172172
const actionResults: ActResult[] = [];
173173
for (const action of entry.actions) {
174-
const result = await handler.actFromObserveResult(
174+
const result = await handler.takeDeterministicAction(
175175
action,
176176
page,
177177
this.domSettleTimeoutMs,

packages/core/lib/v3/cache/AgentCache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ export class AgentCache {
557557
if (actions.length > 0) {
558558
const page = await ctx.awaitActivePage();
559559
for (const action of actions) {
560-
await handler.actFromObserveResult(
560+
await handler.takeDeterministicAction(
561561
action,
562562
page,
563563
this.domSettleTimeoutMs,
@@ -581,7 +581,7 @@ export class AgentCache {
581581
if (!Array.isArray(actions) || actions.length === 0) return;
582582
const page = await ctx.awaitActivePage();
583583
for (const action of actions) {
584-
await handler.actFromObserveResult(
584+
await handler.takeDeterministicAction(
585585
action,
586586
page,
587587
this.domSettleTimeoutMs,

0 commit comments

Comments
 (0)