Skip to content

Commit 27b9d7e

Browse files
committed
openagi: remove dead scroll_amount parameter
Scroll amount was stored but never used; the only call to _execute_scroll hardcoded notches=1. Align with docstring: 1 scroll event = 1 notch, model controls amount by emitting N scroll actions. Remove parameter and assignment to fix misleading API. Made-with: Cursor
1 parent 27255b7 commit 27b9d7e

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

pkg/templates/python/openagi-computer-use/kernel_handler.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def __init__(
4646
self,
4747
session: "KernelBrowserSession",
4848
action_pause: float = 0.1,
49-
scroll_amount: int = 3,
5049
wait_duration: float = 1.0,
5150
type_delay: int = 50,
5251
):
@@ -56,13 +55,11 @@ def __init__(
5655
Args:
5756
session: The Kernel browser session to control
5857
action_pause: Pause between actions in seconds
59-
scroll_amount: Amount to scroll (wheel units / notches)
6058
wait_duration: Duration for wait actions in seconds
6159
type_delay: Delay between keystrokes in milliseconds
6260
"""
6361
self.session = session
6462
self.action_pause = action_pause
65-
self.scroll_amount = scroll_amount
6663
self.wait_duration = wait_duration
6764
self.type_delay = type_delay
6865

0 commit comments

Comments
 (0)