I’m also working on a Chrome extension and having issues with setting the value of the chat input <textarea> programatically. With the below approach, I can briefly see a value change, but then it disappears (likely a controlled component). I’ve tried sending some KeyboardEvent after changing the value, but haven’t had any luck. Any ideas?
let chatInput = document.querySelector('.chat-input .tw-textarea');
chatInput.value = chatInput.value + ' testing...';