Clear inline suggestions when none are present (#848)

This commit is contained in:
iovxw 2026-01-28 00:55:35 +08:00 committed by GitHub
parent 215dd14054
commit 1455b6090b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -421,6 +421,8 @@ class KawaiiBarComponent : UniqueViewComponent<KawaiiBarComponent, FrameLayout>(
val suggestions = response.inlineSuggestions
if (suggestions.isEmpty()) {
isInlineSuggestionPresent = false
evalIdleUiState()
idleUi.inlineSuggestionsBar.clear()
return true
}
var pinned: InlineSuggestion? = null