Skip to content
Source
Sign inSign up
pingdotgg/t3code

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

ClosedLunarRed(GitHub profile, opens in a new tab) opened this issue 2 comments

Before submitting

  • I searched existing issues and did not find a duplicate.
  • 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.

  1. LunarRed(GitHub profile, opens in a new tab) added labelsneeds-triage

  2. 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?

  3. maria-rcks closed this

Sign in to join this conversation.