story-kit: queue 80_story_remove_model_apikey_and_rate_limit_notifications_from_chat_ui for merge
This commit is contained in:
@@ -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
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
name: "Remove model/apiKey and rate limit notifications from chat UI"
|
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
|
# Story 80: Remove model/apiKey and rate limit notifications from chat UI
|
||||||
|
|||||||
@@ -252,35 +252,10 @@ fn run_pty_session(
|
|||||||
"result" => {
|
"result" => {
|
||||||
got_result = true;
|
got_result = true;
|
||||||
}
|
}
|
||||||
// System init — log billing info via streaming display
|
// System init — suppress noisy model/apiKey notification
|
||||||
"system" => {
|
"system" => {}
|
||||||
let api_source = json
|
// Rate limit info — suppress noisy notification
|
||||||
.get("apiKeySource")
|
"rate_limit_event" => {}
|
||||||
.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"
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user