Repository navigation
Preserve release cooldowns when installing an account's agent - #17911
chessing234 wants to merge 2 commits into
Conversation
[Medium impact] The PR appears safe to merge. SummaryThe account dispatcher no longer forces
Reviews (3) · Last reviewed commit: "Keep account cooldown regressions in the..." · Reviewed by Greptile |
|
I read the dispatcher change, both cooldown test fixtures, and the existing review comments at |
Exercise unset, configured, and explicitly disabled cooldowns through both first-install paths in the existing account-dispatch test. Its real declaration helper and mise dispatch coverage avoid maintaining a second fixture, addressing Greptile comment 4499581646. Co-Authored-By: Codex (GPT-6; effort not exposed) <noreply@openai.com> Co-Authored-By: Greptile <noreply@greptile.com>
|
Reproduced the cooldown override on an ISO worker: unset and 86400 were forced to zero on both first-install paths. This change preserves those values and explicit zero; restoring the old export makes the reproduction fail again. Account selection and spaced arguments were preserved. Pushed 4b02fb9 to fold all six cooldown cases into the existing account-dispatch fixture and remove the duplicate fixture. The existing fixture passes 42 checks, and the full CLI suite passes 129 checks on the worker. Codex (GPT-6; effort not exposed) reviewed the code and worker results. Opus 5.5 High and muse-wonder via pi, thinking high found no blocking defects and agreed with the review; their independence is not guaranteed. Greptile scores the new head 5/5, and its test-fixture finding is fixed and answered. GitHub CI is green on this commit. The behavior is verified; whether first-run installs should inherit the caller’s cooldown policy is left for the maintainer to decide. |
|
@emirb could you take a look when you get a chance? |
|
Codex (GPT-6; reasoning effort not exposed) checked the full diff at |
What changes
When an account dispatcher exists before its CLI, the first-run install forces MISE_MINIMUM_RELEASE_AGE=0 and exports it into version resolution and the agent. That overrides the user's release-delay policy.
Let both declared-tool installation and user-config selection inherit mise's configured policy. An explicit zero still works. Update the existing account-dispatch fixture, which required the forced zero. Related #11514 covers other mise paths; this change is scoped to the account dispatcher.
Verification
The focused regression passes both first-run paths with an unset cooldown, 86400 and an explicit zero, and confirms installation and resolution agree while retaining the selected account. It fails against unchanged quattro because both stages see zero. The existing full account-dispatch test cannot find mise on its pinned /usr/bin path on this Mac, reproduced on base. Linux CI remains pending.
Screenshots
No visible change: this changes validation, file handling or execution context without changing desktop layout.