[BUG]: StartsWith Matching_Strategy breaks but only on Twitter.com #467

Closed
opened 2026-01-05 14:50:55 +01:00 by adam · 2 comments
Owner

Originally created by @xidsyed on GitHub (Sep 7, 2024).

Describe the bug
komorebi.json

{
  "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.28/schema.json",
  "app_specific_configuration_path": "$Env:USERPROFILE/applications.yaml",
  "window_hiding_behaviour": "Cloak",
  "cross_monitor_move_behaviour": "Insert",
  "default_workspace_padding": 1  ,
  "default_container_padding": 2,
  "transparency" : false,
  "border": true,
  "border_width": 0,
  "border_implementation" : "Windows",
  "border_colours": {
    "single": "#628c8c",
    "stack": "#628c8c",
    "monocle": "#deffff",
    "unfocused": "#1e1e1e"
  },
  "stackbar": {
    "label" : "Title",
    "height": 18,
    "mode": "OnStack",
    "tabs": {
      "width": 220,
      "focused_text": "#347291",
      "unfocused_text": "#383838",
      "background": "#000000",     
      "font_size": 28, 
      "font_family" :"Consolas"
    }
  },
  "monitors": [
    {
      "workspaces": [
        {
          "name": "I",
          "layout": "BSP",
          "workspace_rules": [
            {
              "id": "idea64.exe",
              "kind": "Exe"
            },
          ],
        },
        {
          "name": "II",
          "layout": "BSP",
          "workspace_rules": [    
            {
              "id": "Obsidian.exe",
              "kind": "Exe"
            }
          ],
        },
        {
          "name": "III",
          "layout": "BSP"
        },
        {
          "name": "IV",
          "layout": "BSP",
          "workspace_rules": [
            {
              "id": "Telegram.exe",
              "kind": "Exe"
            }
          ],
        },
        {
          "name": "V",
          "layout": "BSP",
         "workspace_rules": [
            {
              "id": "ChatGPT App",
              "kind": "Title", 
              "matching_strategy" : "StartsWith"  👈👈👈
            },
            {
              "id": "Perplexity App",
              "kind": "Title", 
              "matching_strategy" : "StartsWith"
            },
            {
              "id": "Claude",
              "kind": "Title", 
              "matching_strategy" : "StartsWith"
            },
          ],
        },
        {
          "name": "VI",
          "layout": "BSP"
        },
        {
          "name": "VII",
          "layout": "BSP"
        }
      ]
    }
  ],
  "float_rules" : [
    {
      "id": "Voice call ‎- WhatsApp Beta",
      "kind": "Title",
      "matching_strategy": "Equals"
    }
  ]
}

As expected any window that starts with 'ChatGPT App' goes to Desktop number 5.

To Reproduce
Steps to reproduce the behavior:

  1. Add the a workspace rule on workspace 2 for window title 'ChatGPT App' and matching_strategy 'StartsWith'
  2. Reload Config (or restart komorebi for changes to take effect)
  3. Now click on https://x.com/levelsio/status/1832089872116727958
  4. The chrome tab will jump to workspace 2

Expected behavior
The windows with titles not starting with 'ChatGPT App' should be unaffected by the rule😭

Screenshots and Videos
image
Operating System

OS Name:                   Microsoft Windows 11 Home
OS Version:                10.0.22631 N/A Build 22631

komorebic check Output

No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\mmsye

Looking for configuration files in C:\Users\mmsye

Found komorebi.json; this file can be passed to the start command with the --config flag

Found C:\Users\mmsye\.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag

Additional context
It happens on every tweet with the word 'ChatGPT' in it.

Originally created by @xidsyed on GitHub (Sep 7, 2024). **Describe the bug** `komorebi.json` ```json { "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.28/schema.json", "app_specific_configuration_path": "$Env:USERPROFILE/applications.yaml", "window_hiding_behaviour": "Cloak", "cross_monitor_move_behaviour": "Insert", "default_workspace_padding": 1 , "default_container_padding": 2, "transparency" : false, "border": true, "border_width": 0, "border_implementation" : "Windows", "border_colours": { "single": "#628c8c", "stack": "#628c8c", "monocle": "#deffff", "unfocused": "#1e1e1e" }, "stackbar": { "label" : "Title", "height": 18, "mode": "OnStack", "tabs": { "width": 220, "focused_text": "#347291", "unfocused_text": "#383838", "background": "#000000", "font_size": 28, "font_family" :"Consolas" } }, "monitors": [ { "workspaces": [ { "name": "I", "layout": "BSP", "workspace_rules": [ { "id": "idea64.exe", "kind": "Exe" }, ], }, { "name": "II", "layout": "BSP", "workspace_rules": [ { "id": "Obsidian.exe", "kind": "Exe" } ], }, { "name": "III", "layout": "BSP" }, { "name": "IV", "layout": "BSP", "workspace_rules": [ { "id": "Telegram.exe", "kind": "Exe" } ], }, { "name": "V", "layout": "BSP", "workspace_rules": [ { "id": "ChatGPT App", "kind": "Title", "matching_strategy" : "StartsWith" 👈👈👈 }, { "id": "Perplexity App", "kind": "Title", "matching_strategy" : "StartsWith" }, { "id": "Claude", "kind": "Title", "matching_strategy" : "StartsWith" }, ], }, { "name": "VI", "layout": "BSP" }, { "name": "VII", "layout": "BSP" } ] } ], "float_rules" : [ { "id": "Voice call ‎- WhatsApp Beta", "kind": "Title", "matching_strategy": "Equals" } ] } ``` As expected any window that starts with 'ChatGPT App' goes to Desktop number 5. **To Reproduce** Steps to reproduce the behavior: 1. Add the a workspace rule on workspace 2 for window title 'ChatGPT App' and matching_strategy 'StartsWith' 2. Reload Config (or restart komorebi for changes to take effect) 3. Now click on https://x.com/levelsio/status/1832089872116727958 4. The chrome tab will jump to workspace 2 **Expected behavior** The windows with titles not starting with 'ChatGPT App' should be unaffected by the rule😭 **Screenshots and Videos** ![image](https://github.com/user-attachments/assets/d1e7e451-f7b8-4037-92a5-d0b8f747761a) **Operating System** ``` OS Name: Microsoft Windows 11 Home OS Version: 10.0.22631 N/A Build 22631 ``` **`komorebic check` Output** ``` No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\mmsye Looking for configuration files in C:\Users\mmsye Found komorebi.json; this file can be passed to the start command with the --config flag Found C:\Users\mmsye\.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag ``` **Additional context** It happens on every tweet with the word 'ChatGPT' in it.
adam added the bug label 2026-01-05 14:50:55 +01:00
adam closed this issue 2026-01-05 14:50:55 +01:00
Author
Owner

@LGUG2Z commented on GitHub (Sep 7, 2024):

This is an undocumented quirk- workspace rules don't support the full range of matchers yet, only the Legacy and Regex matchers.

Latest update is here: eac4c8e9b1

@LGUG2Z commented on GitHub (Sep 7, 2024): This is an undocumented quirk- workspace rules don't support the full range of matchers yet, only the Legacy and Regex matchers. Latest update is here: https://github.com/LGUG2Z/komorebi/commit/eac4c8e9b1c79dc0efb7fb2d67628dad4e8c2093
Author
Owner

@xidsyed commented on GitHub (Sep 7, 2024):

I see. Hope it gets patched soon :)

@xidsyed commented on GitHub (Sep 7, 2024): I see. Hope it gets patched soon :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#467