Skip to content

Dev 1.4.2 - #570

Draft
ujiro99 wants to merge 52 commits into
mainfrom
dev-1.4.2
Draft

ujiro99 wants to merge 52 commits into
mainfrom
dev-1.4.2

Conversation

@ujiro99

@ujiro99 ujiro99 commented Nov 21, 2026

Copy link
Copy Markdown
Owner

No description provided.

ujiro99 and others added 27 commits November 15, 2026 13:23
Vivaldi appends an absolute URL passed to chrome.sidePanel.setOptions({ path })
to the extension origin, so the side panel showed ERR_FILE_NOT_FOUND
(chrome-extension://<id>/https://...). Chrome resolves it as a URL instead,
but blocks a side panel extension page from navigating to a web URL.

Open a relay page bundled with the extension first. When the side panel is
hosted as a tab (Vivaldi), it navigates to the target URL by itself.
Otherwise (Chrome), it asks the service worker to set the URL as the path
directly, and the result is cached so later opens skip the relay page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pd1sH5ArKQDueJGVC1vMCK
Chrome reports `favIconUrl` in a separate onUpdated event after the page
load completes, once the favicon download finishes. fetchIconUrl only
retried once 100ms after `complete`, so sites with large or uncached
favicons (e.g. movlyhub.com, seenr.app) always failed and the command was
saved with the placeholder icon.

- Keep listening for up to 3s after `complete` for favIconUrl
- Fall back to the Google favicon service on timeout or failure
- Stop removing the listener when an event arrives before the window
  is created, and catch up via tabs.get instead

Refs #557

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pd1sH4nCJL33ibMb6Cy6p5
# Conflicts:
#	packages/extension/src/service_worker.ts

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
- Store the user agent instead of a boolean when the direct URL mode is
  detected, and ignore the cached result on a different browser version,
  so that the mode is detected again if the browser behavior changes.
- Persist the detection result in parallel with setOptions so that showing
  the page is not delayed by the storage write.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Reject a missing, empty or non-positive tabId in both the relay page and
  the service worker fallback handler.
- Export relay() from the relay page so that it can be tested, and add
  tests for the relay page, sender/tabId validation and setOptions failure.
- Document that a side panel opened right after the service worker wakes up
  may still go through the relay page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Persist the direct URL mode only after setOptions succeeds, so that a
  failure does not lock later calls into the direct mode.
- Accept the relay fallback only from the exact relay page path.
- Move the relay logic to services/sidePanelRelay.ts so that importing it
  has no side effects, and keep side_panel_relay.ts as a thin entry point.
- Document the assumption that non-tab side panels accept a web URL as
  path, and that Chrome re-detects only on major updates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Vivaldi hosts the side panel as a tab, so content scripts in the side panel
connect with sender.tab like normal tabs. The service worker treated them as
normal tabs and never ran the pending side panel page action steps.

- The relay page registers its own tab as a side panel host tab before
  navigating to the target URL.
- onConnect treats connections from registered host tabs as side panel
  connections, and does not add them to connectedTabs so that they reconnect
  after navigation.
- The registrations are kept in session storage and removed when the tab is
  closed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the menu display animation settings with speed presets
(Standard / Fast / Instant) that set the delay and duration together.
Hovering a preset button previews the speed with an HTML + CSS mock.
The delay input is disabled for keyboard / click-hold startup, where the
delay is fixed to 0.

Closes #334

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pd1sH6NHgSUNMyhVxjbbcd
onConnect awaits isSidePanelHostTab before adding the tab to connectedTabs,
while onDisconnect removed it without waiting. A disconnect during the first
lookup after the service worker wakes up could be applied before the
connect, leaving a stale tab ID in connectedTabs.

- onDisconnect awaits the same lookup, so the updates are applied in the
  order of the events. It also skips side panel host tabs, which onConnect
  does not add.
- Add tests for the onConnect/onDisconnect branches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(extension): Vivaldi でサイドパネル表示モードが動作しない問題を修正
- Ignore results of superseded fetchIconUrl calls in FaviconContextProvider
- Reset the reported favicon when the tab navigates (e.g. client redirect)
- Pass the raw URL to the Google favicon service for opaque origins

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Do not disclose obviously private host names (private/loopback IPs,
localhost, single-label names and non-ICANN TLDs such as .local) to the
external favicon service; fail as before instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add tabs.get and windows.create/remove to the shared chrome mock and
override them with vi.mocked instead of stubbing a spread copy of the
global chrome object.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a reported favicon is too large to store, fail instead of falling
back to the Google favicon service for private hosts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(extension): faviconの遅延通知を待ち、取得失敗時はGoogleのサービスにフォールバックする
- Style the preset buttons like PopupPlacementField (check mark,
  selected colors) and stack them beside the preview.
- Add a mouse pointer to the preview, anchored to the selection.
- Rename the label to "Speed Preset".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pd1sH6NHgSUNMyhVxjbbcd
- Scale one preview's time with the delay and duration while keeping a
  constant interval, so faster speeds show more popups per unit of time.
- Keep previewing the current values while no preset is hovered.
- Remove the preview hint text and widen the gap to the preview.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pd1sH6NHgSUNMyhVxjbbcd
- Add a progress bar along the bottom of the preview, split into delay
  and duration segments colored like System/Commands in StorageUsage
- Show the mouse pointer together with the selection highlight
- Adjust the speed preset button height

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Keep the stored popup delay as configured; keyboard / click-hold startup
  ignores it via getEffectivePopupSpeedValues instead of rewriting it
- Remove the value conversion on startup method change
- Detect presets by effective values, keep the delay when applying a
  preset for a startup method that ignores it
- Sync the speed editor with userStyles via a watching wrapper, and skip
  saving invalid values
- Read speed values through toPopupSpeedValues in Popup and SettingForm

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Show each preview for delay + duration + a constant hold time instead of
scaling the whole preview with the speed, so slow settings do not make
the preview loop unreasonably long.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.08933% with 372 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.45%. Comparing base (fca66dd) to head (0e7c903).
⚠️ Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
...ension/src/components/option/editor/PopupSpeed.tsx 0.00% 175 Missing ⚠️
...src/components/option/editor/PopupSpeedPreview.tsx 0.00% 105 Missing ⚠️
...es/extension/src/components/option/SettingForm.tsx 0.00% 21 Missing ⚠️
...rc/components/onboarding/steps/StepLinkPreview.tsx 81.81% 12 Missing ⚠️
packages/extension/src/components/Popup.tsx 0.00% 9 Missing ⚠️
...on/src/components/onboarding/OnboardingCallout.tsx 0.00% 9 Missing ⚠️
...nsion/src/components/onboarding/OnboardingPage.tsx 0.00% 8 Missing ⚠️
...extension/src/providers/faviconContextProvider.tsx 0.00% 8 Missing ⚠️
.../components/onboarding/steps/StepSearchCommand.tsx 0.00% 4 Missing ⚠️
...ckages/extension/src/hooks/useDetectLinkCommand.ts 50.00% 4 Missing ⚠️
... and 9 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #570      +/-   ##
==========================================
+ Coverage   57.01%   58.45%   +1.43%     
==========================================
  Files         325      331       +6     
  Lines       33623    34420     +797     
  Branches     3697     3942     +245     
==========================================
+ Hits        19170    20120     +950     
+ Misses      14453    14300     -153     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

ujiro99 and others added 2 commits November 21, 2026 09:55
Pages can put data-selection-command-disabled on an element to stop the
popup menu for selections made inside it, e.g. the interactive demo on
the Hub LP.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ujiro99 and others added 23 commits November 21, 2026 10:05
Link preview (keyboard, drag and click hold) is not started from
elements inside data-selection-command-disabled either.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…areas

- Keep the selection target in disabled areas, and keep the anchor for
  the context menu method, so results are still placed at the selection.
- Release a previous click hold before checking the disabled area.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…abled area

Pages may stop the mouse events that call setAnchor (the Hub LP demo
does), so check the disabled area on every selection change as well.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Variant F keeps variant E's glow background and step rail, but goes back
to variant C's welcome timing and sample card, and asks for a double-click
on one marked word on Step 1 instead of a drag. Double-click is Chrome's
native word selection, so the gesture matches what users do on real pages.
The marked word per locale was chosen so that Chrome's double-click selects
exactly that word.

Also add two funnel events for every variant, to locate where users leave
before their first selection:
- onboarding_welcome_done: the welcome overlay handed off to Step 1
  (trigger: auto | click)
- onboarding_target_interact: first press on a step's sample text card

Retire variant E and bump the experiment id to onboarding_v6, adding it
to experiments.json while keeping the ids of published builds.

Closes #573

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pd1sH2vEh5vbFbUUdyFKqx
- Detect re-selection of the same text inside a disabled area by
  listening to selectionchange directly.
- Swallow the mouseup after a click hold only when the popup is shown.
- Share the suppression check in SelectAnchor.
- Expose isTargetEvent of useDetectLinkCommand only via __test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(extension): suppress popup and link preview in elements marked by the page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…k for any word

On the glow background, the sample text card goes back to solid white
with a soft shadow; variant C's muted card blended into the blue glow.

The double-click hint now asks for any word rather than an underlined
one: any selection moves Step 1 on, so there is no need to single out a
word. The underline is dropped, and the demo still plays on the
locale's target word.

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

The bubble and the arrow each ran their own float animation, so they were
rasterized at different sub-pixel offsets and a hairline gap opened
between them mid-animation. Wrap both in one animated layer, following
selection-command-hub@65672dd. The wrapper matches the content box, so
Radix still places the arrow where it did.

Also match the arrow's dark-mode fill to the bubble (sky-50 instead of
gray-100).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pd1sH2vEh5vbFbUUdyFKqx
- Skip onboarding_target_interact once the step's selection is recorded
- Verify every locale keeps step1TargetWord inside step1TargetText (LC-04)
- Make the welcome duration test use a non-default duration
- Require the background prop on OnboardingTargetText
- Share the demo cursor classes and move splitTargetWord tests to textUtils.test.ts
- Prefix onboarding test names per the testing guidelines

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat: run onboarding_v6 comparing variant C with variant F
On every version change, open selection-command.com/whats-new scrolled
to the new version's section, so users learn what changed. Reloading the
same version does not open it, and a failure to create the tab never
breaks the rest of onInstalled. The result is reported as
whats_new_tab_opened.

Refs #563

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Do not await the What's New tab, so a slow tab creation never delays
  the context menu setup
- Note that a downgrade also opens the page
- Test that onInstalled opens it only on update, even when saving the
  existing settings fails, and without blocking the context menu
- Restore console spies after each What's New test

Refs #563

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(extension): open the Hub's What's New page after an update
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New installs now start Link Preview with a left-click long press instead
of Shift+click, so it works without the keyboard. Existing users keep
their saved startup method.

The onboarding Link Preview step now explains the gesture that matches
the user's startup method (long press, click + key, or drag).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pd1sH2SVL35AWHUxzVCAqk
The long press and drag callouts showed a keycap whose label repeated
the gesture already named in the text. Show only an icon above the text
instead, and shorten the Japanese text so it fits on one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pd1sH2SVL35AWHUxzVCAqk
Address review findings on making long press the default:

- Keep Shift+click for existing installs without saved settings, instead
  of saving the new long press default on update
- Cancel a pending link preview hold when the pointer moves or a native
  drag starts, so dragging a link no longer opens a preview
- Start a link preview hold only on links, so a long press on a button
  never re-clicks it in a preview window
- Open the onboarding callout once the settings are loaded, so it never
  shows the default gesture to users who set another one
- Expose GestureHint to tests through __test

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

Address the second round of review findings:

- Listen for mousemove and dragstart in the capture phase, so a page
  that stops their propagation cannot keep a hold from being cancelled
- Ignore a long press on a button laid over a link (e.g. a card whose
  whole area is a link); only a press on the link itself counts
- Show the modifier key in the onboarding callout with the same labels
  as the options page (e.g. "Command(⌘)" on Mac)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pd1sH2SVL35AWHUxzVCAqk
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Drop props from the useLeftClickHold effect dependencies so the
  listeners are not re-registered on every render
- Note that a detected hold is kept when the pointer moves afterwards
- Show the Shift icon when the keyboard param falls back to Shift
- Revert the formatting-only change in inputUtils.test.ts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(extension): start link preview with a long press by default

This branch has not been deployed

No deployments
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