Skip to content

Conversation

@GodGMN
Copy link

@GodGMN GodGMN commented Dec 28, 2025

This is a PR to fix the issue with the Auto-Image mode. It was constantly retrying the Cloudflare bot validation thingy without much success. I also fixed the x-pawtect-variant header, which had changed. Now it does paint properly

  • Add token validation before each batch
  • Cache WASM token to prevent repeated verifications
  • Wait for token regeneration to complete before retrying
  • Use network interception for WASM token capture
  • Add x-pawtect-variant header to API requests

Please note that I had never used the plugin before, so I don't have a baseline on how the experience used to be. It seems a bit rough, after sending the request to paint, an error pops up and you go into offline mode, I haven't been able to determine why, because the paint request goes through just fine. But since it did go through, after waiting a few seconds, when the map updates, you can see your painting. The charges seem to not update by themselves but nothing an F5 can't fix.

I haven't tested with multiple accounts as I only have one myself.

- Add token validation before each batch
- Cache WASM token to prevent repeated verifications
- Wait for token regeneration to complete before retrying
- Use network interception for WASM token capture
- Add x-pawtect-variant header to API requests
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