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
"Contains" page watch never matches when its text has a trailing space #184
In the app, create a page watch with the condition "Text appears" and type In stock (a phone keyboard adds the trailing space after an autocompleted word).
Point it at a page whose text includes In stock. or ends with In stock.
Let the watch check the page.
Expected behavior
The watch matches and sends an alert.
Actual behavior
The watch reports "Watching" on every check and never alerts. The same happens when the value contains a double space or a line break.
Cause
AgentService.observe collapses whitespace in the page text before it searches, but compares monitor.value as typed. The new watch form in agent-ui.tsx trims the title and URL but sends the value untrimmed, and monitorInputSchema does not trim it either.
Activity