Skip to content

fix!(lua.endpoints): sell endpoint hangs indefinitely on Invisible Joker #195

Description

@S1M0N38

Ref: PR #190

Description

Selling an Invisible Joker (at 2/2 charges) causes the endpoint to hang indefinitely. The response is never sent and the request times out on the client side.

Steps to Reproduce

  1. Start a run: start({"deck": "RED", "stake": "WHITE", "seed": "INVIS3"})
  2. Select a blind: select()
  3. Add Invisible Joker: add({"key": "j_invisible"})
  4. Set chips high to auto-win: set({"chips": 1000})
  5. Play a hand: play({"cards": [0]})
  6. Cash out: cash_out()
  7. Go to next round: next_round()
  8. Select the next blind: select()
  9. Set chips high: set({"chips": 1000})
  10. Play a hand (round 2 to charge Invisible): play({"cards": [0]})
  11. Cash out: cash_out()
  12. Add a joker to the right of Invisible: add({"key": "j_greedy_joker"})
  13. Sell the Invisible Joker: sell({"joker": 0})
  14. The request hangs indefinitely (no response)

Expected Behavior

The endpoint should return either success (joker sold) or a timeout error after a reasonable period. It should not hang forever.

Actual Behavior

The sell request never returns. The server log shows "Selling joker 'Invisible Joker'" but no corresponding OK or ERR response. The connection remains open until the client times out.

Environment

  • OS: macOS
  • Lovely version: 0.8.0
  • SMODS version: v1.0.0~BETA-1221a
  • BalatroBot commit: 084044e

Files

Metadata

Metadata

Assignees

Labels

completed-in-devThis issue have been solved in dev branch

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions