mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
fix: filter rate_limit_event from Claude Remote/Local chat paths (#423)
This commit is contained in:
@@ -39,6 +39,10 @@ export function isClaudeChatVisibleSystemSubtype(subtype: unknown): subtype is s
|
||||
}
|
||||
|
||||
export function isClaudeChatVisibleMessage(message: { type: unknown; subtype?: unknown }): boolean {
|
||||
if (message.type === 'rate_limit_event') {
|
||||
return false
|
||||
}
|
||||
|
||||
if (message.type !== 'system') {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user