Skip to content

Browser tab shows "No data" due to hostname suffix mismatch in bucket names #71

@Crim3z

Description

@Crim3z

Version: 0.3.3
OS: CachyOS, Using Hyprland as my WM

Describe the bug
The Browser tab in the ActivityWatch web UI shows "No data" even though
the web extension bucket contains data. The Window tab also showed "No data"
until I worked around it.

Root cause
awatcher names buckets with a hostname suffix, e.g.:

  • aw-watcher-window_cachyos-x8664
  • aw-watcher-web-zen_cachyos-x8664

But the ActivityWatch web UI's default queries use find_bucket() with
prefixes like "aw-watcher-window_" and "aw-watcher-web-zen" (no hostname),
which causes the Browser tab query to fail to match the correct bucket.

The server logs confirm this:
BucketQueryError("Failed to find bucket matching filter 'aw-watcher-window_unknown'")

Expected behavior
The Browser tab should display data from the web extension bucket.

Workaround
None found for the Browser tab. The Query Explorer works as a manual workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions