Skip to content

fix(newtab): prevent null/chat navigation when search message is empty#906

Open
listende-elg wants to merge 1 commit into
browseros-ai:mainfrom
listende-elg:fix/newtab-null-chat
Open

fix(newtab): prevent null/chat navigation when search message is empty#906
listende-elg wants to merge 1 commit into
browseros-ai:mainfrom
listende-elg:fix/newtab-null-chat

Conversation

@listende-elg
Copy link
Copy Markdown

When the search field on the new tab page is submitted with an empty or null message, URLSearchParams coerces null to the string 'null', causing navigation to /null/chat and a ERR_FILE_NOT_FOUND error.

Add validation in 4 locations:

  • startInlineChat(): guard against null/empty messages
  • handleSend(): only execute default action when inputValue has content
  • executeDefaultAction(): only run action if selectedItem exists
  • runSelectedAction(): validate browseros item has a message before use

Fixes #775

When the search field on the new tab page is submitted with an empty
or null message, URLSearchParams coerces null to the string 'null',
causing navigation to /null/chat and a ERR_FILE_NOT_FOUND error.

Add validation in 4 locations:
- startInlineChat(): guard against null/empty messages
- handleSend(): only execute default action when inputValue has content
- executeDefaultAction(): only run action if selectedItem exists
- runSelectedAction(): validate browseros item has a message before use

Fixes browseros-ai#775
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 1, 2026

PR author is not in the allowed authors list.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 1, 2026

All contributors have signed the CLA. Thank you!
Posted by the CLA Assistant Lite bot.

@listende-elg
Copy link
Copy Markdown
Author

recheck

@listende-elg
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@listende-elg
Copy link
Copy Markdown
Author

recheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New tab search field navigates to null/chat when message is empty or null

1 participant