cp.nvim/lua/cp
Barrett Ruth a255fa47a0
fix(credentials): pack CSES token into single credential entry
Problem: the CSES API token was stored as a separate git credential
entry using `path=api-token`, but many credential helpers (e.g.
`cache`) ignore the `path` field, so the token was lost on
retrieval. The scraper `on_event` callback also called
`git_credential.store` from a `uv.spawn` fast event context,
causing `vim.wait` errors.

Solution: encode the CSES token into the password field as
`password<TAB>token` and decode on retrieval. One credential
entry per platform, no `path` dependency. Wrap `store` calls in
`scraper.lua` with `vim.schedule` to avoid fast event context.
2026-03-07 20:04:28 -05:00
..
commands fix(security): harden credential storage and transmission (#369) 2026-03-07 18:14:34 -05:00
pickers feat(codechef): implement full CodeChef support (#354) 2026-03-06 23:10:44 -05:00
runner feat(codechef): implement full CodeChef support (#354) 2026-03-06 23:10:44 -05:00
ui feat(codechef): implement full CodeChef support (#354) 2026-03-06 23:10:44 -05:00
cache.lua refactor(cache): remove file-based credential storage 2026-03-07 19:46:28 -05:00
config.lua fix(scraper): httpx login fast paths, proactive validation, and slug filename fix (#358) 2026-03-07 15:38:12 -05:00
constants.lua fix(scrapers): bad credentials detection and error message cleanup (#367) 2026-03-07 17:58:25 -05:00
credentials.lua feat(credentials): guard login/submit/logout on credential helper 2026-03-07 19:50:04 -05:00
git_credential.lua fix(credentials): pack CSES token into single credential entry 2026-03-07 20:04:28 -05:00
health.lua feat(credentials): guard login/submit/logout on credential helper 2026-03-07 19:50:04 -05:00
helpers.lua feat(ui): auto-hide source buffer on close 2025-10-24 14:47:12 -04:00
init.lua feat(codechef): implement full CodeChef support (#354) 2026-03-06 23:10:44 -05:00
log.lua fix(submit): use file path over stdin; fix CF CodeMirror textarea (#305) 2026-03-05 14:34:14 -05:00
race.lua fix(race): log initial countdown on start (#356) 2026-03-06 23:59:56 -05:00
restore.lua fix(submit): use file path over stdin; fix CF CodeMirror textarea (#305) 2026-03-05 14:34:14 -05:00
scraper.lua fix(credentials): pack CSES token into single credential entry 2026-03-07 20:04:28 -05:00
setup.lua feat: file conflict prompt, empty submit guard, and lint fixes (#366) 2026-03-07 16:30:51 -05:00
state.lua refactor(run): remove I/O view test navigation keymaps 2026-03-04 00:26:22 -05:00
stress.lua feat(codechef): implement full CodeChef support (#354) 2026-03-06 23:10:44 -05:00
submit.lua feat(credentials): guard login/submit/logout on credential helper 2026-03-07 19:50:04 -05:00
utils.lua feat(utils): require git in check_required_runtime 2026-03-07 19:46:35 -05:00
version.lua fix: refactor 2025-09-21 11:19:00 -04:00