Skip to content

feat(cli): support per-command rate limiting#1977

Open
huyuanfeng2018 wants to merge 1 commit into
jackwener:mainfrom
huyuanfeng2018:codex/command-rate-limits
Open

feat(cli): support per-command rate limiting#1977
huyuanfeng2018 wants to merge 1 commit into
jackwener:mainfrom
huyuanfeng2018:codex/command-rate-limits

Conversation

@huyuanfeng2018

Copy link
Copy Markdown

Summary

  • add explicit per-command rate limit config via ~/.opencli/rate-limits.yaml
  • block configured adapter and external CLI commands before execution with RATE_LIMITED errors
  • persist sliding-window attempt state in ~/.opencli/rate-limit-state.json
  • cover rate-limit parsing, adapter dispatch, and external CLI passthrough behavior in tests

Validation

  • npx vitest run --project unit src/rate-limit.test.ts src/commanderAdapter.test.ts src/external.test.ts
  • npm run typecheck
  • npm test
  • npm run build

@huyuanfeng2018 huyuanfeng2018 changed the title [codex] Add command rate limits feat(cli): support per-command rate limiting Jun 19, 2026
@huyuanfeng2018 huyuanfeng2018 force-pushed the codex/command-rate-limits branch from 65493c4 to d2194e3 Compare June 19, 2026 14:43
@huyuanfeng2018 huyuanfeng2018 marked this pull request as ready for review June 19, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant