From 8133ef2847bafac0afb42d01d05ac96542850ff8 Mon Sep 17 00:00:00 2001 From: Dave Date: Mon, 23 Feb 2026 15:36:09 +0000 Subject: [PATCH] story-kit: queue 80_story_remove_model_apikey_and_rate_limit_notifications_from_chat_ui for merge --- ...d_rate_limit_notifications_from_chat_ui.md | 20 +++++++++++ ...d_rate_limit_notifications_from_chat_ui.md | 2 +- server/src/llm/providers/claude_code.rs | 33 +++---------------- 3 files changed, 25 insertions(+), 30 deletions(-) create mode 100644 .story_kit/work/2_current/80_story_remove_model_apikey_and_rate_limit_notifications_from_chat_ui.md diff --git a/.story_kit/work/2_current/80_story_remove_model_apikey_and_rate_limit_notifications_from_chat_ui.md b/.story_kit/work/2_current/80_story_remove_model_apikey_and_rate_limit_notifications_from_chat_ui.md new file mode 100644 index 0000000..37482fb --- /dev/null +++ b/.story_kit/work/2_current/80_story_remove_model_apikey_and_rate_limit_notifications_from_chat_ui.md @@ -0,0 +1,20 @@ +--- +name: "Remove model/apiKey and rate limit notifications from chat UI" +test_plan: approved +--- + +# Story 80: Remove model/apiKey and rate limit notifications from chat UI + +## User Story + +As a user, I want the chat UI to not show noisy notifications like "[claude-opus-4-6 | apiKey: none]" and rate limit messages, so that the interface is clean and distraction-free. + +## Acceptance Criteria + +- [ ] The chat UI no longer displays the model/apiKey notification (e.g. '[claude-opus-4-6 | apiKey: none]') +- [ ] The chat UI no longer displays rate limit related messages +- [ ] Normal chat functionality is unaffected + +## Out of Scope + +- TBD diff --git a/.story_kit/work/4_merge/80_story_remove_model_apikey_and_rate_limit_notifications_from_chat_ui.md b/.story_kit/work/4_merge/80_story_remove_model_apikey_and_rate_limit_notifications_from_chat_ui.md index 8da6bd0..37482fb 100644 --- a/.story_kit/work/4_merge/80_story_remove_model_apikey_and_rate_limit_notifications_from_chat_ui.md +++ b/.story_kit/work/4_merge/80_story_remove_model_apikey_and_rate_limit_notifications_from_chat_ui.md @@ -1,6 +1,6 @@ --- name: "Remove model/apiKey and rate limit notifications from chat UI" -test_plan: pending +test_plan: approved --- # Story 80: Remove model/apiKey and rate limit notifications from chat UI diff --git a/server/src/llm/providers/claude_code.rs b/server/src/llm/providers/claude_code.rs index 5dee6ce..b551014 100644 --- a/server/src/llm/providers/claude_code.rs +++ b/server/src/llm/providers/claude_code.rs @@ -252,35 +252,10 @@ fn run_pty_session( "result" => { got_result = true; } - // System init — log billing info via streaming display - "system" => { - let api_source = json - .get("apiKeySource") - .and_then(|s| s.as_str()) - .unwrap_or("unknown"); - let model = json - .get("model") - .and_then(|s| s.as_str()) - .unwrap_or("unknown"); - let _ = token_tx - .send(format!("_[{model} | apiKey: {api_source}]_\n\n")); - } - // Rate limit info — surface briefly in streaming display - "rate_limit_event" => { - if let Some(info) = json.get("rate_limit_info") { - let status = info - .get("status") - .and_then(|s| s.as_str()) - .unwrap_or("unknown"); - let limit_type = info - .get("rateLimitType") - .and_then(|s| s.as_str()) - .unwrap_or("unknown"); - let _ = token_tx.send(format!( - "_[rate limit: {status} ({limit_type})]_\n\n" - )); - } - } + // System init — suppress noisy model/apiKey notification + "system" => {} + // Rate limit info — suppress noisy notification + "rate_limit_event" => {} _ => {} } }