t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Editing or deleting an action leaves stale keybindings

Open LunarRed opened this issue 3 months ago • 2 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Open a Git project in T3 Code.
  2. Click + Add action.
  3. Create an action, assign a keybinding, and save it.
  4. Edit the action, focus the keybinding field, press Backspace to clear it, and save.
  5. Inspect ~/.t3/userdata/keybindings.json.
  6. Assign a different keybinding to the same action and save again.
  7. 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.

LunarRed avatar Aug 08 '26 07:08 LunarRed

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?

ashish200729 avatar Aug 08 '26 08:08 ashish200729

@t3dotgg

ashish200729 avatar Aug 08 '26 08:08 ashish200729