Repository navigation
Commit bd981da
committed
fix(codex): let clear-cooldown lift an avoidance the cooldown outlived
clearCodexAccountCooldown returned before it looked at quotaAvoidUntil whenever
cooldownUntil had already passed. The two durations have different lengths on
purpose — the cooldown caps at fifteen minutes, the announced window runs up to
six hours — so the moment an operator actually reaches for this escape hatch is
usually after the cooldown lapsed and only the window is still keeping the
account out of rotation. The call was a no-op there, and the dashboard reported
cleared: false while selection kept passing the account over for hours.
Treat a live avoidance window as its own reason to act, and keep the existing
contract otherwise: failure counters and softAvoid still survive.1 parent 4b6849c commit bd981da
2 files changed
Lines changed: 32 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1074 | 1074 | | |
1075 | 1075 | | |
1076 | 1076 | | |
1077 | | - | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
1078 | 1083 | | |
1079 | 1084 | | |
1080 | 1085 | | |
1081 | 1086 | | |
1082 | | - | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
1083 | 1091 | | |
1084 | 1092 | | |
1085 | 1093 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1046 | 1046 | | |
1047 | 1047 | | |
1048 | 1048 | | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
1049 | 1071 | | |
1050 | 1072 | | |
1051 | 1073 | | |
| |||
0 commit comments