mirror of
https://github.com/browser-use/browser-use.git
synced 2026-09-14 19:59:47 +08:00
ab83ee7a8a
Fixes #3970 The LLM was typing literal placeholder names (e.g., 'user_name') instead of wrapping them in <secret> tags (e.g., '<secret>user_name</secret>'). Changes to _get_sensitive_data_description(): - Added clear 'SENSITIVE DATA' header to draw attention - Changed placeholder list format from Python list to bullet points - Added explicit 'MUST' instruction emphasizing the required format - Added concrete example using the first actual placeholder name - Added explanation that the system will replace tags with actual values This makes it much clearer to the LLM that it needs to wrap placeholder names in <secret> tags for the automatic replacement mechanism to work.