Skip to content

Implement new tab behavior for direct address opening - #3336

Merged
esokullu merged 2 commits into
webbrain-one:mainfrom
esokullu:main
Nov 8, 2026
Merged

esokullu merged 2 commits into
webbrain-one:mainfrom
esokullu:main

Conversation

@esokullu

@esokullu esokullu commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

esokullu and others added 2 commits November 8, 2026 14:07
In Ask and Act, whatever was typed went to WebBrain, so "example.com"
became a chat or an agent task. Only Search checked for an address.
Text that is only an address now opens it in every mode, as the
address bar would; a prompt that mentions one ("summarize example.com")
has a space and still goes to WebBrain.

The check is stricter so prompts are not mistaken for addresses: a name
must end in a real top-level domain (IANA's list, vendored as tlds.js
with `npm run update:tlds`), so "node.js", "notes.txt" or "config.yaml"
stay prompts, and dotted numbers count only as four-part IPv4. It also
reads internationalized names ("türkiye.gov.tr") and IPv6, refuses
user@host forms, and opens local hosts (localhost, private IPs, .local,
.test, ...) over http as an address bar does, instead of https.

Covers Murshid, whose new tab is this page. Bundle rebuilt for Chrome
and Firefox.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EsDq6DPsJTf7Xaj7xPetpD
@vercel

vercel Bot commented Nov 8, 2026

Copy link
Copy Markdown

@esokullu is attempting to deploy a commit to the esokullu's projects Team on Vercel.

A member of the Team first needs to authorize it.

@esokullu
esokullu merged commit 7724d06 into webbrain-one:main Nov 8, 2026
1 of 3 checks passed
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.

1 participant