Repository navigation
feat(accounts): auto-pause repeated permanent account refusals #7153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
a76e928
feat(accounts): opt in to auto-pause permanent account refusals
lidge-jun eb374a3
fix(accounts): register pause route and extracted Responses owners
lidge-jun a2b3ad8
Merge remote-tracking branch 'origin/dev' into feat/7101-auto-pause-p…
lidge-jun d3e41de
Merge remote-tracking branch 'origin/dev' into HEAD
lidge-jun 957b075
Merge remote-tracking branch 'origin/dev' into HEAD
lidge-jun d1b1960
Merge remote-tracking branch 'origin/dev' into feat/7101-auto-pause-p…
lidge-jun a3b3a6d
Merge remote-tracking branch 'origin/dev' into HEAD
lidge-jun 1d64b3b
fix(accounts): inject refusal observer across transport leaf boundary
lidge-jun b36cfb0
Merge dev into permanent-refusal auto-pause and compose distributed k…
lidge-jun 36e01f9
Preserve pause ownership through distributed revisions and pacing rew…
lidge-jun b8d84a1
test(responses): cover replay ownership after auto-pause rotation
lidge-jun 1be259c
test(responses): supply the replay conversation header
lidge-jun 8a46924
fix(responses): rebind replay owners after auto-pause rotation
lidge-jun cbe6563
test(responses): require the exact sibling replay identity
lidge-jun 16c1381
Merge dev into account auto-pause and retain compact gateway boundaries
lidge-jun af383c8
Merge origin/dev into feat/7101-auto-pause-permanent-refusals
lidge-jun bb6e6f1
fix(accounts): fence auto-pause against policy changes and address re…
lidge-jun 6a2bf5c
fix(accounts): count auto-pause refusals only for the credential on t…
lidge-jun 828defc
fix(accounts): report oauthDispatch final sends and fence WebSocket a…
lidge-jun 1b75d31
fix(accounts): count a nested physical response once per account
lidge-jun 9da3386
fix(accounts): keep live auto-pause fences across detached config loads
lidge-jun 6222eb0
fix(accounts): fence observed disk policy changes across detached loads
lidge-jun 04fefeb
fix(accounts): bind the Codex workspace into auto-pause ownership and…
lidge-jun 33b81a2
Merge origin/dev into feat/7101-auto-pause-permanent-refusals
lidge-jun a7b05e9
fix(accounts): never re-enroll an observed-deleted provider from a st…
lidge-jun 9e180ae
Merge origin/dev into feat/7101-auto-pause-permanent-refusals
lidge-jun 06e146c
test(accounts): auto-pause attribution reads post-compression wire he…
lidge-jun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| import type { AccountPauseReason } from "../../src/types/account-auto-pause"; | ||
| import type { Locale, TFn, TKey } from "./i18n/shared"; | ||
|
|
||
| const REASON_KEYS = { | ||
| oauth_organization_disabled: "accountPause.reason.organizationDisabled", | ||
| account_permission_denied: "accountPause.reason.permissionDenied", | ||
| subscription_inactive: "accountPause.reason.subscriptionInactive", | ||
| subscription_expired: "accountPause.reason.subscriptionExpired", | ||
| plan_downgraded: "accountPause.reason.planDowngraded", | ||
| } satisfies Record<AccountPauseReason, TKey>; | ||
|
|
||
| /** Display fixed reason labels and timestamps in the selected dashboard language. */ | ||
| export function formatAccountPauseTooltip( | ||
| t: TFn, locale: Locale, details: { reason: string; pausedAt: number }, | ||
| ): string { | ||
| const reason = Object.hasOwn(REASON_KEYS, details.reason) | ||
| ? t(REASON_KEYS[details.reason as AccountPauseReason]) : t("codexAuth.paused"); | ||
| const date = new Date(details.pausedAt); | ||
| return Number.isNaN(date.getTime()) ? reason : t("accountPause.tooltip", { reason, date: date.toLocaleString(locale) }); | ||
| } |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.