From db9aea3d2bc957426f08f92d2a25bb0d6c193525 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Thu, 9 Jul 2026 00:21:22 -0700 Subject: [PATCH] [eric] browser: composer regex catches X's 'Post text' + 'add a comment' (live coverage sweep: X tweet composer IS in the AX list but its name didn't match; safely excludes 'postal code'). Proves the deeper point: composer names vary per site, name-regex is inherently chasing them --- backend/apps/agents/browser/browser_send_script.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/apps/agents/browser/browser_send_script.py b/backend/apps/agents/browser/browser_send_script.py index c66f93f1..6f4470ed 100644 --- a/backend/apps/agents/browser/browser_send_script.py +++ b/backend/apps/agents/browser/browser_send_script.py @@ -31,8 +31,9 @@ P_COMPOSER_ROW_RE = re.compile(r"\[(\d+)\]\*?<\s*textbox\s+\"([^\"]*)\"", re.I) # message", X/Slack "Message", Discord "Message @user", Gmail "Message Body", "Post your # reply", "What's happening", "Add a comment". Not per-site: one structural shape. P_COMPOSER_NAME_RE = re.compile( - r"write|messag|compose|reply|comment|post your|what.?s happening|" - r"tweet|caption|say something|start a|new message|body|your (message|note)", + r"write|messag|compose|reply|comment|post your|post text|what.?s happening|" + r"tweet|caption|say something|start a|new message|body|your (message|note)|" + r"add a comment|write something", re.I, )