Skip to content

Fix bot e2e on staging, await room routes, guard unreadable shop answers - #39

Merged
Finesssee merged 1 commit into
mainfrom
ts/followups
Oct 14, 2026
Merged

Finesssee merged 1 commit into
mainfrom
ts/followups

Conversation

@Finesssee

Copy link
Copy Markdown
Collaborator

Three follow-ups from #38.

  • Bot e2e. !fray e2e on staging stopped at the bot's own moves because pixfray is in CHAT_BOTS. Programmatic plays from runCommand on a BOT_DEBUG site now pass; the bot's typed lines are still ignored. Unit test reaches 18 of 18 and checks a typed line stays refused.
  • Un-awaited returns. 11 return internal(...) sites in handle() escaped its try/catch, so a throwing room gave a rejected fetch instead of the 503 answer. Added awaits and the oxlint rule typescript/return-await: in-try-catch. New auth test.
  • Shop unreadable answer. A 2xx purchase answer the page can't parse now says the purchase may have gone through and keeps the button disabled. New block in tests/ui.ts (one POST after two clicks).

bun run check 394/394, tests/ui.ts and tests/arena-browser.ts pass.

- The BOT_DEBUG bot account's own !fray e2e and sparring moves play again; its typed chat lines stay ignored as a chat bot.
- handle() awaits every room and save route, so a throwing room gets the Worker's error answer (lint rule return-await in-try-catch).
- A purchase whose 2xx answer the page can't read says it may have gone through and keeps the button off.
@coderabbitai

coderabbitai Bot commented Oct 14, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: nesszer/pixfray/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 13b495f9-5b3f-4a8c-abf1-ea2c4b377ee2
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Finesssee
Finesssee merged commit 6179bdf into main Oct 14, 2026
3 checks passed
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.

1 participant