Skip to content

Commit 3aaedc4

Browse files
committed
Fix extension initial screenshot handling in browser mode
1 parent 89d5a86 commit 3aaedc4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/cli/src/extensions/host.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,9 @@ export class HarnessExtensionHost {
696696
// During startup the user's first prompt owns the first-turn screenshot; an
697697
// extension message here must not consume it (see `startedUp`).
698698
if (!this.startedUp) return undefined;
699+
// Browser mode tools use viewport coordinates; skip OS-display capture so we
700+
// do not mix coordinate frames on the first turn.
701+
if (this.harness.getMode() === "browser") return undefined;
699702
if (await sessionHasPriorTurn(this.session)) return undefined;
700703
return this.initialScreenshot();
701704
}

0 commit comments

Comments
 (0)