12 Commits

Author SHA1 Message Date
z060142
de7e2373fd update chat option template image 2025-05-21 12:21:56 +08:00
z060142
890772f70e Add message deduplication system and UI fallback handling for updated game states
- Implemented `MessageDeduplication` class to suppress duplicate bot replies:
  - Normalizes sender and message content for reliable comparison.
  - Tracks processed messages with timestamp-based expiry (default 1 hour).
  - Integrated into `run_ui_monitoring_loop()` with support for F7/F8-based history resets.
  - Periodic cleanup thread purges expired entries every 10 minutes.

- Added new UI fallback handling logic to address post-update game state changes:
  - Detects `chat_option.png` overlay before bubble detection and presses ESC to dismiss.
  - Detects `update_confirm.png` when chat room state is unavailable and clicks it to proceed.
  - Both behaviors improve UI stability following game version changes.

- Updated `essential_templates` dictionary and constants with the two new template paths:
  - `chat_option.png`
  - `update_confirm.png`

These improvements reduce redundant bot responses and enhance UI resilience against inconsistent or obstructed states in the latest game versions.
2025-05-15 02:16:24 +08:00
z060142
31ed1da190 Update Capitol icon 2025-04-21 15:48:13 +08:00
z060142
f2cca2d394 Improve LLM system prompt update. Fix Crash caused by calling MCP 2025-04-20 21:39:43 +08:00
z060142
2510a64d22 Add Keyworld detection for Reply. Improve Multu-person chat is now handled better 2025-04-20 15:50:46 +08:00
z060142
3403c14e13 Improve LLM performance 2025-04-20 14:46:04 +08:00
z060142
f7b7864446 Optimize 2025-04-19 18:11:58 +08:00
z060142
e25e3177c2 Improve Element detection stability 2025-04-19 13:00:22 +08:00
z060142
3ec4017a1e Add Reply to specific conversation. Fix Conversation bubble detection 2025-04-19 01:37:57 +08:00
z060142
9f981a0621 Added the function of dismissing positions. Improved the stability of chat bubble detection. 2025-04-18 21:38:24 +08:00
z060142
6a4b56682c Modularize existing work logic 2025-04-18 13:17:48 +08:00
z060142
d5d7b87727 first commit 2025-04-17 01:28:22 +08:00