Different interpretation of regex in the Activity and Timeline sections

Open
#939 6 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

@Yarish652 is already working on this.

Since Oct 16, 2026.

  • #155 by @TimeToBuildBob — closed without merging
  • #670 by @TimeToBuildBob — closed without merging

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
65/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript

Research direction

The issue is about regex-based categorization working in the timeline view but not in the activity view. Start by examining the categorization logic in the webui, likely in components or stores handling activity and timeline data. Look for differences in how regex is applied between the two views. Check the test suite for categorization to understand expected behavior. Verify the fix by creating a test case that reproduces the described split failure in activities.

Written by the indexing model from the issue text.

Description

Hi, everyone.

ActivityWatch version: v0.13.2
Modules: aw-server,aw-watcher-window,aw-watcher-afk
OS: Windows 10

I need to split an activity between clients. To do this, I use a category with the regex app_name.*unic_word_for_app_from_title.*. This works for the timeline, but not for the activity.

Example:
Name: TG
Parent: AKARN
App: telegram.exe
Words: AKARN,Elena V
Regex: telegram.exe.*(AKARN|Elena V).*
Case insensitive: True
Color: green

Name: TG
Parent: ACG
App: telegram.exe
Words: ACG,Admin V
Regex: telegram.exe.*(ACG|Admin V).*
Case insensitive: True
Color: dark cyan

I see a split in the timeline:

Image

ImageImage

But not in activities:

Image Image
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.