Before submitting#
Area#
apps/web
Steps to reproduce#
- Open a Git project in T3 Code.
- Click + Add action.
- Create an action, assign a keybinding, and save it.
- Edit the action, focus the keybinding field, press Backspace to clear it, and save.
- Inspect
~/.t3/userdata/keybindings.json.
- Assign a different keybinding to the same action and save again.
- Inspect
keybindings.json again, then delete the action and inspect the file once more.
Expected behavior#
Clearing an action's keybinding should remove that action's existing entry from keybindings.json. Changing the keybinding should replace the old entry. Deleting the action should remove any keybinding entries for its generated command.
Actual behavior#
Clearing the keybinding and saving leaves the old entry in keybindings.json. Assigning a different keybinding adds another entry for the same generated script.<action-id>.run command instead of replacing the old one. Deleting the action also leaves its keybinding entries behind, so stale shortcuts accumulate for an action that no longer exists.
Impact#
Minor bug or occasional failure
Version or commit#
T3 Code desktop app 0.0.32
Environment#
macOS, T3 Code desktop app 0.0.32
Logs or stack traces#
Screenshots, recordings, or supporting files#
file-f2dae801c263e5595d2e22231cddd057.jpg
Workaround#
Manually remove the stale entries from ~/.t3/userdata/keybindings.json.
Hey, I’d be happy to work on this. Is anyone already working on a fix, or should I go ahead and pick it up?