This repository was archived by the owner on Aug 6, 2026. It is now read-only.
fix(pi): clear retry status when streaming resumes - #4034
Merged
Conversation
|
😎 Merged successfully - details. |
|
React Doctor found 1 issue in 1 file · 1 warning. 1 warning
Reviewed by React Doctor for commit |
Contributor
Prompt To Fix All With AI### Issue 1
packages/ui/src/features/sessions/components/session-update/StatusNotificationView.tsx:49-51
**Rate-limit variants go unrecognized**
When Pi reports a retry as `Rate limited` or `rate_limit`, this expression does not classify it as a rate limit, causing the UI to show only the generic retry countdown instead of the intended rate-limit explanation.
```suggestion
const rateLimited = /\b429\b|rate[ _]limit(?:ed)?|too many requests/i.test(
message ?? "",
);
```
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Reviews (1): Last reviewed commit: "fix(pi): clear retry status when streami..." | Re-trigger Greptile |
tatoalo
approved these changes
Jul 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
THIS UGLY THING
Changes
Validation
pnpm --filter @posthog/agent exec vitest run src/pi/conversation/translatePiConversation.test.tspnpm --filter @posthog/ui exec vitest run src/features/sessions/components/session-update/StatusNotificationView.test.tspnpm --filter @posthog/agent exec tsc --noEmitpnpm --filter @posthog/ui exec tsc --noEmitpnpm typecheckAutomatic notifications