fix(cses): remove verdict poll loop from submit

Problem: The submit method polled for a verdict for up to 120s, but
verdicts are never displayed in cp.nvim by design.

Solution: Remove the poll loop and `SUBMIT_POLL_TIMEOUT` constant.
After a successful POST, immediately return `SubmitResult(success=True)`.
This commit is contained in:
Barrett Ruth 2026-03-06 21:47:52 -05:00
parent c7f2af16d4
commit fc2331c242
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
2 changed files with 3 additions and 36 deletions

View file

@ -13,4 +13,3 @@ BROWSER_TURNSTILE_POLL = 5000
BROWSER_ELEMENT_WAIT = 10000
BROWSER_SETTLE_DELAY = 500
SUBMIT_POLL_TIMEOUT = 30.0