gitbutlerapp / gitbutler

The GitButler version control client, backed by Git, powered by Tauri/Rust/Svelte
https://gitbutler.com
Other
11.48k stars 467 forks source link

AI service should not show error toast while not signed in #4158

Open mtsgrd opened 1 week ago

mtsgrd commented 1 week ago

Version

dev

Operating System

Mac OS X

Distribution Method

dmg (Apple Silicon)

Describe the issue

When switching from e.g. trunk view to the workspace I see multiple concurrent error toasts about not being able to use AI for summarizing code unless I'm logged in.

image

How to reproduce

Make sure you have at least one branch with changes, and logged out, and then refresh the board view.

Expected behavior

Since I'm not logged in I would expect AI summarization to be turned off.

Relevant log output

No response

Caleb-T-Owens commented 1 week ago

This is happening when we try to generate a vbranch name but fail. We can just not show errors in that case.

I'll make a PR for that