Skip to content

fix: repair Heartflow for AstrBot 4.27 - #26

Merged
advent259141 merged 2 commits into
masterfrom
fix/astrbot-4.27-heartflow-repair
Aug 23, 2026
Merged

advent259141 merged 2 commits into
masterfrom
fix/astrbot-4.27-heartflow-repair

Conversation

@advent259141

Copy link
Copy Markdown
Owner

Summary

  • repair active-reply state, cooldown, energy recovery, concurrency, and failure rollback behavior
  • support normal and streaming LLM responses with AstrBot 4.27 event hooks
  • harden judge-provider validation, prompt isolation, score parsing, timeout handling, and bounded caches
  • update plugin metadata and configuration for AstrBot 4.27, and bump the plugin version to 2.3.0
  • add CI, 18 unit tests, and a repeatable real-AstrBot integration test

Validation

  • python -m unittest discover -s tests -v (18 passed)
  • python -m ruff check main.py tests
  • python -m ruff format --check main.py tests
  • Python compile, JSON/YAML metadata, version constraint, and git diff checks
  • AstrBot 4.27.4 end-to-end integration: 8 scenarios passed, including normal and streaming delivery, provider error rollback, timeout unlock, and concurrent cooldown

Configuration note

AstrBot built-in active reply should remain disabled while Heartflow is enabled to avoid duplicate replies. The plugin now emits a one-time warning when both are enabled.

@advent259141
advent259141 merged commit 78eb532 into master Aug 23, 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