From 862f5a0561efd07fcbb617dfd87e8ff5d754d89f Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Thu, 18 Jul 2024 14:22:30 -0400 Subject: [PATCH] Handle supermaven account status messages (#14749) Sets the account status state to allow the Supermaven button to move out of the "Supermaven is initializing..." state. We also need to add the ability to sign out and change tiers but I will do that in a separate PR. Release Notes: - Improved Supermaven status messages ([#12715](https://github.com/zed-industries/zed/issues/12715)). --- crates/supermaven/src/supermaven.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/supermaven/src/supermaven.rs b/crates/supermaven/src/supermaven.rs index e4ab556490..cac2fc050b 100644 --- a/crates/supermaven/src/supermaven.rs +++ b/crates/supermaven/src/supermaven.rs @@ -354,7 +354,11 @@ impl SupermavenAgent { None => AccountStatus::Ready, }; } + SupermavenMessage::ActivationSuccess => { + self.account_status = AccountStatus::Ready; + } SupermavenMessage::ServiceTier { service_tier } => { + self.account_status = AccountStatus::Ready; self.service_tier = Some(service_tier); } SupermavenMessage::Response(response) => {