[BUG]: Opening a window using Raycast on an empty workspace bounces back to previous one
bug
### Summary
When I switch to an empty workspace, and open a window using [Raycast](https://raycast.com/), it bounces back to the last focused workspace. If the last focused workspace is the current one (all windows were closed), it works normally.
This bug doesn't occur when I launch windows through the start menu.
https://github.com/user-attachments/assets/4d7eacd4-0102-4642-9dec-86558bf827d2
I've submitted this to the Raycast team too.
### Version Information
OS Name: Microsoft Windows 11 Pro
OS Version: 10.0.26200 N/A Build 26200
komorebic 0.1.40
tag:v0.1.40
commit_hash:bed314b8
build_time:2026-02-14 21:08:01 +00:00
build_env:rustc 1.93.1 (01f6ddf75 2026-02-11),stable-x86_64-pc-windows-msvc
Raycast version: v0.48.1.0
### Komorebi Configuration
```json
{
"$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.37/schema.json",
"app_specific_configuration_path": "$Env:USERPROFILE/applications.json",
"window_hiding_behaviour": "Cloak",
"cross_monitor_move_behaviour": "Insert",
"default_workspace_padding": 3,
"default_container_padding": 3,
"border": false,
"border_offset": 0,
"animation": {
"enabled": true,
"duration": 500,
"fps": 100,
"style": "EaseOutExpo"
},
"border_colours": {
"single": "#fdb9c6",
"stack": "#000000",
"monocle": "#ff5858",
"unfocused": "#adadad"
},
"float_rule_placement": "Center",
"float_override_placement": "Center",
"window_container_behaviour": "Create",
"mouse_follows_focus": true,
"monitors": [
{
"workspaces": [
{ "name": "1", "layout": "Grid" },
{ "name": "2", "layout": "Grid" },
{ "name": "3", "layout": "Grid" },
{ "name": "4", "layout": "Grid" },
{ "name": "5", "layout": "Grid" },
{ "name": "6", "layout": "Grid" },
{ "name": "7", "layout": "Grid" },
{ "name": "8", "layout": "Grid" },
{ "name": "9", "layout": "Grid" }
]
},
{
"workspaces": [
{ "name": "1", "layout": "Grid" },
{ "name": "2", "layout": "Grid" },
{ "name": "3", "layout": "Grid" },
{ "name": "4", "layout": "Grid" },
{ "name": "5", "layout": "Grid" },
{ "name": "6", "layout": "Grid" },
{ "name": "7", "layout": "Grid" },
{ "name": "8", "layout": "Grid" },
{ "name": "9", "layout": "Grid" }
]
}
]
}
```
### Hotkey Configuration
```shell
.shell powershell
# Reload configurations
alt + shift + r : komorebic retile
# Window management actions
alt + shift + space : komorebic toggle-float
lwin + t : komorebic toggle-monocle
lwin + m : komorebic minimize
lwin + w : komorebic flip-layout horizontal
ctrl + shift + w : komorebic close
# resize
ctrl + alt + h : komorebic resize-axis horizontal increase
ctrl + alt + l : komorebic resize-axis horizontal decrease
ctrl + alt + k : komorebic resize-axis vertical increase
ctrl + alt + j : komorebic resize-axis vertical decrease
# Focus
alt + h : komorebic focus left
alt + l : komorebic focus right
alt + k : komorebic focus up
alt + j : komorebic focus down
alt + space : komorebic cycle-focus next
# Move
alt + shift + h : komorebic move left
alt + shift + l : komorebic move right
alt + shift + k : komorebic move up
alt + shift + j : komorebic move down
# Workspaces
alt + 1 : komorebic focus-workspace 0
alt + 2 : komorebic focus-workspace 1
alt + 3 : komorebic focus-workspace 2
alt + 4 : komorebic focus-workspace 3
alt + 5 : komorebic focus-workspace 4
alt + 6 : komorebic focus-workspace 5
alt + 7 : komorebic focus-workspace 6
alt + 8 : komorebic focus-workspace 7
alt + 9 : komorebic focus-workspace 8
# Move windows across workspaces
alt + shift + 1 : komorebic move-to-workspace 0; komorebic focus-workspace 0
alt + shift + 2 : komorebic move-to-workspace 1; komorebic focus-workspace 1
alt + shift + 3 : komorebic move-to-workspace 2; komorebic focus-workspace 2
alt + shift + 4 : komorebic move-to-workspace 3; komorebic focus-workspace 3
alt + shift + 5 : komorebic move-to-workspace 4; komorebic focus-workspace 4
alt + shift + 6 : komorebic move-to-workspace 5; komorebic focus-workspace 5
alt + shift + 7 : komorebic move-to-workspace 6; komorebic focus-workspace 6
alt + shift + 8 : komorebic move-to-workspace 7; komorebic focus-workspace 7
alt + shift + 9 : komorebic move-to-workspace 8; komorebic focus-workspace 8
# Send windows across monitors
lwin + shift + 1 : komorebic send-to-monitor 0
lwin + shift + 2 : komorebic send-to-monitor 1
lwin + shift + 3 : komorebic send-to-monitor 2
lwin + shift + 4 : komorebic send-to-monitor 3
```
### Output of komorebic check
```shell
No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\kk-spartans
Looking for configuration files in C:\Users\kk-spartans
Found komorebi.json; this file can be passed to the start command with the --config flag
Found C:\Users\kk-spartans\.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag
```
0 条评论