When renaming a branch the menu context menu doesn't close
Version
0.14.18
Operating System
macOS
Distribution Method
dmg (Mac OS - Apple Silicon)
Describe the issue
How to reproduce (Optional)
- click on the ... button
- click on rename
- the dialog doesn't close
Expected behavior (Optional)
- When clicking on rename it should close the menu so you can rename the branch normally
Relevant log output (Optional)
Thanks a lot for reporting!
This is interesting, as it won't reproduce for me on the very same version.
However, when I tried to rename onto an existing branch, like master, the rename dialog would remain open, but an error would also show up.
Now I wonder if there is anything else we could do to learn more about it. Could you us View -> Developer Tools -> Console to see if there are any UI errors?
If not, could you start GitButler from the terminal via RUST_BACKTRACE=1 LOG_LEVEL=debug /Applications/GitButler.app/Contents/MacOS/gitbutler-tauri. Then everything the backend does will show up quite clearly.
Thanks again.
NP happy to help!
this is are the exact logs that apears when i click to open the dialog
2025-04-25T00:25:33.691983Z INFO git_get_global_config: crates/gitbutler-tauri/src/commands.rs:97: close time.busy=984µs time.idle=88.9µs key="gitbutler.aiModelProvider"
2025-04-25T00:25:33.707175Z INFO secret_get_global: crates/gitbutler-tauri/src/secret.rs:9: close time.busy=8.38ms time.idle=25.3µs handle="aiOpenAIKey"
2025-04-25T00:25:33.708708Z INFO secret_get_global: crates/gitbutler-tauri/src/secret.rs:9: close time.busy=87.3µs time.idle=15.4µs handle="aiAnthropicKey"
2025-04-25T00:25:33.709982Z INFO git_get_global_config: crates/gitbutler-tauri/src/commands.rs:97: close time.busy=126µs time.idle=17.5µs key="gitbutler.aiOllamaEndpoint"
2025-04-25T00:25:33.710924Z INFO git_get_global_config: crates/gitbutler-tauri/src/commands.rs:97: close time.busy=78.3µs time.idle=13.4µs key="gitbutler.aiOllamaModelName"
2025-04-25T00:25:33.711826Z INFO git_get_global_config: crates/gitbutler-tauri/src/commands.rs:97: close time.busy=58.9µs time.idle=8.63µs key="gitbutler.aiModelProvider"
2025-04-25T00:25:33.713331Z INFO git_get_global_config: crates/gitbutler-tauri/src/commands.rs:97: close time.busy=80.2µs time.idle=12.1µs key="gitbutler.aiOpenAIKeyOption"
2025-04-25T00:25:33.714207Z INFO git_get_global_config: crates/gitbutler-tauri/src/commands.rs:97: close time.busy=49.6µs time.idle=7.38µs key="gitbutler.aiAnthropicKeyOption"
nothing relevant on the console
i think the error shown is just bc im not using github features
Could be relevant to point out im trying to rename a remote branch that could help you narrow down the issue
Thank you - it doesn't look like anything goes obviously wrong though. It doesn't even look like the UI triggers the rename, nor does it crash in the frontend. The symptoms we see here are quite typical for panics in the backend, and it's something that should be visible when launching the UI from the terminal.
Could you share the branch names as the UI shows them?