Repository navigation
Commit aad0c6e
fix(fetcher/codex): address coderabbit review findings
- `read_jsonl_files` now also filters on the `rollout-` filename prefix, so a
future stray file under `~/.codex/sessions/YYYY/MM/DD/` can't quietly shadow
the lex-sorted "newest rollup" lookup `codex_subscription` does.
- Module doc on `src/fetcher/codex/mod.rs` previously claimed "no network"
for both fetchers — corrected: `codex_usage` does make one host-fixed HTTP
GET for the LLM pricing snapshot. `codex_subscription` stays local-only.
- `llm_pricing::price_for` prefix lookup now lowercases the key it compares
against. `data/llm_pricing.json` ships lowercase keys today, but the lookup
shouldn't silently miss if a future LiteLLM sync ships a mixed-case id.
- Workflow's `actions/checkout` step gains `persist-credentials: false` — the
sync step uses `peter-evans/create-pull-request`'s own token, so checkout
doesn't need to leave credentials in the workspace.
- Documented why `fetch_reads_jsonl_from_env_override_root` holds
`TEST_ENV_LOCK` across an `.await`; the future doesn't re-take the lock,
so the `#[allow(clippy::await_holding_lock)]` is safe.
Skipped from the review:
- SHA-pinning Actions: existing workflows in the repo use floating `@v6` /
`@v7` tags; matching the precedent. Worth a separate hardening pass.
- Returning `embedded_floor() -> &'static PriceMap`: it's only hit on the
HTTP-failure cold path, so the clone cost is negligible vs the API
ergonomics win of returning an owned map.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent 6d09272 commit aad0c6e
5 files changed
Lines changed: 30 additions & 7 deletions
File tree
- .github/workflows
- src/fetcher
- claude
- codex
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
953 | 957 | | |
954 | 958 | | |
955 | 959 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
81 | 90 | | |
82 | 91 | | |
83 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | | - | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
90 | 93 | | |
91 | 94 | | |
92 | | - | |
| 95 | + | |
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| |||
0 commit comments