Support Browser tab in multi-device Activity view (@all / device subset)

Open
#1,302 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

@nedulau is already working on this.

Since Nov 22, 2026.

  • #1303 by @nedulau — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
18/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
frontend

Research direction

Start in src/queries.ts at multideviceQuery() and canonicalMultideviceEvents(), then follow buildMultideviceHostParams and multidevice_params to see how per-host browser buckets are passed. The store side is activityStore.get_buckets_multidevice, ensure_loaded_multidevice and query_multidevice_full, which reuse mergeFullDesktopResults. Done means the Browser tab fills for @all and device subsets, and activity.multideviceNote mentions only stopwatch data. PR #1303 is already open against this issue, so check it before starting.

Written by the indexing model from the issue text.

Description

enhancement

Problem

When viewing multiple devices in the Activity view (@all or a selected subset of devices), the Browser tab always reports "This feature is missing data from a required watcher" and stays in "Loading..." even when the selected hosts have host-attributed web.tab.current buckets (such as aw-watcher-web-*_<host> on desktop and aw-watcher-android-web-synced-from-<host> on Android via aw-sync).

Cause

  • activityStore.get_buckets_multidevice hardcodes this.buckets.browser = [], ensure_loaded_multidevice sets this.browser.available = false, and query_multidevice_full never calls query_browser_completed(...).
  • multideviceQuery() and canonicalMultideviceEvents() in src/queries.ts return only "window" and do not collect or combine per-host browser events across desktop and mobile hosts.

Proposal

  • Attribute only explicit host-scoped web.tab.current buckets per selected host (bucketsByType(host, 'web.tab.current', false) — no 'unknown'-host fallback, preventing legacy 'unknown' browser buckets from being misattributed or duplicated across hosts).
  • Pass per-host bid_browsers through buildMultideviceHostParams and multidevice_params, extract desktop browser events via browserEvents and mobile browser events via a shared androidBrowserEvents helper, merge per-host browser_events in host priority order with union_no_overlap, and return "browser": { domains, urls, titles, duration } from multideviceQuery.
  • Complete activityStore.browser in query_multidevice_full (reusing mergeFullDesktopResults's existing browser aggregation across chunked time periods) and update activity.multideviceNote to mention only stopwatch data.
Dominant language
TypeScript
Stars
157
Forks
199
Avg merge
3d 18m
Merged PRs (30d)
81

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ActivityWatch/aw-webui

All issues in ActivityWatch/aw-webui

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.