13 Commits
Author SHA1 Message Date
Waleed 45e36ff55b improvement(links): make go/ and sim/ work with no setup (#9698)
* improvement(links): make go/ and sim/ work on install with no setup

Chrome treats go/x as a search until it has seen the host. It counts a visit to an unfamiliar single-label host as typed, so the extension now visits both hosts once on install, in background tabs that close themselves. That removes the Browser shortcuts modal and its Enable buttons, and the Links header now just links to the store.

Drop the managed bookmarks export with it. The /sim-links/<org>/<name> route stays so bookmarks already distributed keep opening.

* improvement(links): only teach Chrome when links are on, and open links in the organization they belong to

Teaching Chrome go/ for everyone would turn a typed go/foo into a Sim page for people without links, so the visit now waits for the signed-in session to report links as enabled. History expires after 90 days, so the visit repeats weekly at browser start and retries when it did not complete.

Links page Open and Copy, the shortcut chips and the org route now resolve in the organization they name rather than the session's landing organization. A link can't point back into link resolution. Suggestions match inside names, a missing link offers similar names, a typed phrase searches Links, and an organization without links gets an explanation instead of a 404.

* improvement(extension): tidy page capture and session handling

Use the shared UTF-8 length helper, drop redundant mounted guards, reuse ExtensionSessionExpired and the repeated capture messages, style the page-access error, and guard that the stale-transcript e2e sends before the socket closes.

* fix(extension): visit short hosts when a signed-in panel is ready

Installing signed out and signing in through the panel left go/ and sim/ untaught until the next browser start. Prove it end to end: nothing is visited signed out, and each host is visited once after sign-in.

* improvement(links): keep sim/ URLs, tell the extension when sign-in finishes, and fix what the feature audit found

A user belongs to one organization, so org-scoped link URLs fixed nothing and lost values and queries. Restore them, and drop the redirect-loop guard, which refused real aliases and broke editing them. The hosted app now posts signed-in from the extension layout, so members without chat access still get shortcuts. Typed phrases find hyphenated names, Copy link confirms, the omnibox hint matches what Enter does, and the docs match the behaviour. Share the extension dialog shell and remove an unreachable recovery branch.

* improvement(extension): remove opt-in search recovery

Shortcuts now work without setup, so recovery was extra config that needed search-site access and could catch real searches like go/ast. An update clears the rules and setting from earlier versions, and the recover route stays until those versions have updated.

* improvement(links): remove the search recovery and organization link routes

Links has few users so far, so nothing needs to keep working from earlier versions: no bookmarks export remains to serve, and no recovery rules to catch.

* improvement(extension): disclose the keyboard shortcut in the privacy policy
2026-11-04 19:14:58 -08:00
Waleed e89400f435 improvement(extension): simplify page access and enable voice input (#9683)
* improvement(extension): enable page access across websites

* fix(extension): distinguish unreadable pages from missing access

* improvement(extension): keep page-access copy concise

* test(extension): wait for the page access action

* fix(extension): complete access grants after dialog dismissal

* test(extension): exercise voice restart and sign-in recovery

* test(extension): grant microphone for the embedded app origin

* fix(extension): enable voice input and resume signed-in panels safely

* refactor(extension): shorten copy and verify session recovery

* fix(extension): clear stale authentication when returning to Chat

* fix(extension): keep recovery actions accessible and connected

* test(extension): use accessible link fields and retain voice proof

* test(extension): preserve link-flow failures when capturing evidence
2026-11-04 17:18:35 -08:00
Waleed ffa0225303 improvement(links): open go/ links alongside sim/ and call the page Links (#9686)
* improvement(links): open go/ links alongside sim/ and call the page Links

* improvement(links): share the go/ and sim/ host list and show link names without a prefix

* improvement(links): name both prefixes in the extension description and recovery policy

* improvement(links): drop extension version qualifiers from the docs
2026-11-04 15:42:32 -08:00
Waleed 5e57170f77 fix(extension): preserve capture focus and Sim Link routes (#9665)
Allow selected read-only custom-element text, preserve the initiating composer focus through deferred capture, and correct encoded organization bookmark names and legacy Sim aliases.

Retain keyboard and mouse denial coverage with real typing assertions. Four regressions reproduced on the unfixed code; final CI passed with 55 successful checks and 26 intentional skips.
2026-11-04 02:33:18 -08:00
Waleed 965f3366e5 fix(extension): preserve composer focus and pending page reads (#9657)
* fix(extension): preserve composer focus and pending page reads

* test(extension): isolate reference scenarios and trace native drops

* fix(extension): stabilize browser recovery checks

* chore(extension): document composer focus handle

* test(extension): verify pending file drag delivery

* test(extension): await persisted attachment cleanup
2026-11-03 20:36:30 -08:00
Waleed 329af08eb0 feat(extension): improve page capture, attachments, and browser shortcuts (#9629)
Improve page reference, site access, screenshot attachments, keyboard controls, and scoped browser shortcut onboarding. Preserve drafts and capture boundaries, add optional declarative shortcut recovery, and document installation and privacy.

Validated by completed CI, packaged Chromium and real app/HTTP acceptance, and current reviews with all discussions resolved.
2026-11-03 18:43:59 -08:00
e4627fbeb7 chore(extension): bring the main extension hotfix into staging (#9568)
* chore(ci): give the Trigger.dev upload job room for a slow image push (#8115)

(cherry picked from commit 43c9f6c97a)

* improvement(extension): document browser data handling and limited use

* fix(extension): attach Sim pages and streamline composer controls (#9560)

* fix(extension): attach Sim pages and streamline composer controls

* fix(extension): normalize Sim paths before capture

* fix(extension): exclude revealed secrets and keep large composers usable

* fix(extension): disclose link handling and keep gesture checks passive

---------

Co-authored-by: Siddharth Ganesan <33737564+Sg312@users.noreply.github.com>
Co-authored-by: Vikhyath Mondreti <vikhyathvikku@gmail.com>
Co-authored-by: Theodore Li <theo@sim.ai>
2026-11-02 12:14:10 -08:00
Waleed 2e6bbb149d fix(extension): attach Sim pages and streamline composer controls (#9560)
* fix(extension): attach Sim pages and streamline composer controls

* fix(extension): normalize Sim paths before capture

* fix(extension): exclude revealed secrets and keep large composers usable
2026-11-02 10:05:48 -08:00
Waleed 1515ce2c40 improvement(release): harden favicons, sim links, and the extension from a pre-release audit (#9530)
* improvement(release): harden favicons, sim links, and the extension from a pre-release audit

* fix(release): forward sim/ queries verbatim through the proxy, budget favicon lookups per caller, refresh oversized cached icons

* refactor(release): simplify the favicon lookup budget, share the link-name cap, read sim/ queries as Next parses them

* fix(sim-links): forget a row's menu when the row leaves the results
2026-10-31 11:57:36 -07:00
Waleed c56d83ecda fix(extension): keep site access compatible with strict CSP (#9524) 2026-10-31 02:48:49 -07:00
Waleed c2cb498832 improvement(sim-links): pass queries through, trim pasted punctuation, and suggest links from the address bar (#9508)
* improvement(sim-links): pass queries through, trim pasted punctuation, and suggest links from the address bar

* fix(extension): keep typed values when a suggestion is chosen, bound the suggestion cache
2026-10-31 01:28:33 -07:00
Waleed 91479e6f47 feat(extension): open typed sim/ links through the Sim link resolver (#9486)
Typing sim/<name> in Chrome opens the organization's Sim link: one static declarativeNetRequest rule rewrites top-level navigations to http(s)://sim/* to <Sim origin>/sim/*, keeping the path and query. Adds declarativeNetRequestWithHostAccess and http(s)://sim/* host access used only by that rule.
2026-10-30 16:49:19 -07:00
Waleed 5facc5f265 feat(extension): bring Sim chat and page context to Chrome (#9454)
* feat(extension): bring Sim chat and page context to Chrome

* refactor(extension): consolidate page capture in the chat composer

* fix(extension): align shared chat and harden capture lifecycle

* fix(extension): revalidate access and protect page previews

* fix(extension): refresh permissions and retain completed answers

* fix(extension): keep workspace selection recoverable

* chore(extension): tighten production QA evidence

* fix(extension): retain drafts through permission-policy outages

* fix(extension): enforce policy independently of access requests
2026-10-30 02:34:04 -07:00