Skip to content

Arena production fixes: invites, lobby recovery, winner logic, IDE UX#17

Draft
Cjay-Cyber-2 wants to merge 2 commits into
mainfrom
cursor/arena-fixes-production-4732
Draft

Arena production fixes: invites, lobby recovery, winner logic, IDE UX#17
Cjay-Cyber-2 wants to merge 2 commits into
mainfrom
cursor/arena-fixes-production-4732

Conversation

@Cjay-Cyber-2

@Cjay-Cyber-2 Cjay-Cyber-2 commented Jun 25, 2026

Copy link
Copy Markdown
Owner

Summary

Production checklist addressing arena issues plus anti-cheat updates:

Anti-cheat (new)

  • 3-strike system: first two violations show warnings; third violation disqualifies
  • Violations include: leaving tab, split view, side panel, devtools, window blur, paste/external input, second window
  • Persistent Warning 1/3 / 2/3 banner with remaining chances
  • Copy/paste/cut fully blocked in code editor and theory answer fields (handlers + Ctrl+C/V/X + document-level capture)

Previous fixes (from earlier in this PR)

  • Faster invite polling (800ms)
  • Recent arenas clear/remove fixes
  • Waiting room survives refresh
  • Full bounty credited to winner
  • Coding IDE question sidebar
  • Multi-question winner requires all answers correct
  • IDE caret/selection visibility

Test plan

  • Leave arena tab once → Warning 1/3 toast + banner
  • Repeat twice more → Disqualified on 3rd violation
  • Ctrl+V / right-click paste in code or answer field → blocked + counts as strike
  • Ctrl+C in answer/code fields → blocked (no text copied)
  • Host is exempt from anti-cheat
Open in Web Open in Cursor 

…ayouts

- Poll invites every 800ms and support immediate poll events for faster delivery
- Fix recent arenas sort order and align clear-all with displayed list
- Re-assert lobby membership on refresh via join API and sessionStorage recovery
- Require all questions answered and correct for multi-question winners
- Credit full prize pool reliably via winner coin transaction idempotency
- Add coding IDE left sidebar with all questions and current challenge prompt
- Fix text caret/selection visibility when custom cursor is active in editor

Co-authored-by: Chijioke Joseph <chijiokejoseph2022@gmail.com>
@vercel

vercel Bot commented Jun 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
bountixx Ready Ready Preview, Comment Jun 25, 2026 1:53pm

…a inputs

- Violations (tab leave, split view, paste, etc.) now issue warnings 1 and 2
- Third violation disqualifies the player and forfeits the arena
- Reset violation timers after each warning so strikes require separate offenses
- Block copy, cut, and paste in code editor and theory answer fields globally
- Block Ctrl+C/V/X and Shift+Insert in protected inputs; paste attempts count as strikes
- Show persistent strike warning banner with remaining chances before DQ

Co-authored-by: Chijioke Joseph <chijiokejoseph2022@gmail.com>
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.

2 participants