submit: poll for verdict on AtCoder and Codeforces #302
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/cp.nvim#302
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
After `:CP submit`, AtCoder and Codeforces return `verdict='submitted'` immediately. The actual result (AC/WA/TLE/MLE/RE) is never surfaced to the user.
Both scrapers should poll for the verdict after the form is submitted and emit `{"status": "..."}` ndjson events as updates arrive, with the final verdict displayed in the Lua notification. CSES already does this correctly via its polling endpoint.
The 120s ndjson timeout in `scraper.lua` already accommodates long-running submit processes.