Skip to content

Commit b2f6e8c

Browse files
committed
refactor(computer-use): retry provider open after failure; drop changelog entry
1 parent f99fe1a commit b2f6e8c

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Docs: https://docs.openclaw.ai
66

77
### Changes
88

9-
- **Computer Use plugin SDK:** centralize the `computer.act` and `screen.snapshot` wire shapes and register node-host fulfillers through one provider seam while preserving the existing command policy and behavior.
109
- **Secret egress host binding:** bind each shared-store secret to exact HTTPS destination hosts across CLI, Gateway RPC, and Control UI so unbound sentinel substitution fails closed before plaintext egress.
1110
- **Release validation:** defer beta candidate Parallels smoke to postpublish `release:beta-smoke` by default, keep stable/full prepublish coverage, and bound nested release workflow monitors with explicit job timeouts.
1211
- **macOS app profiles:** isolate named app instances across state, preferences, Keychain, Gateway services, and duplicate-instance ownership while keeping host-global login and node services untouched.

‎src/plugins/computer-use-contract.ts‎

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,19 @@ export function registerComputerUseProvider(
159159
let executionPromise: Promise<ComputerUseExecution> | undefined;
160160

161161
const getExecution = (context?: OpenClawPluginNodeHostCommandContext) => {
162-
executionPromise ??= provider.openExecution(
163-
context?.sessionKey ? { sessionKey: context.sessionKey } : {},
164-
);
162+
if (!executionPromise) {
163+
const opened = provider.openExecution(
164+
context?.sessionKey ? { sessionKey: context.sessionKey } : {},
165+
);
166+
// A failed open must not wedge the provider behind a cached rejection;
167+
// the next command call retries openExecution instead.
168+
opened.catch(() => {
169+
if (executionPromise === opened) {
170+
executionPromise = undefined;
171+
}
172+
});
173+
executionPromise = opened;
174+
}
165175
return executionPromise;
166176
};
167177
const closeExecution = async (reason: string) => {

0 commit comments

Comments
 (0)