You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
keys tool does not perform variable substitution #1776
This is somewhat easy to trigger in practice: when the agent needs to clear an existing field value before typing a new one, it naturally uses the keys tool for the whole flow (Ctrl+A → Delete → type), and the final type step skips substitution.
Steps to Reproduce
Create an agent with variables (e.g. { token: "my-secret-value" })
Give it a task that involves clearing an existing input field and replacing it with %token%
The agent uses keys for the flow: keys(press, Ctrl+A) → keys(press, Delete) → keys(type, %token%)
The literal string %token% is typed instead of my-secret-value
Suggested fix
In keys.ts, the keysTool factory should accept variables (like typeTool does) and substitute before typing
Activity
[Claimed browserbase#1978] fix: add variable substitution to keys ste…
[Claimed browserbase#1978] fix: add variable substitution to keys ste…