fix(honcho): serialize concurrent message flushes - #72708
Conversation
|
Thanks for consolidating the two persistence-contract fixes. The underlying premise still holds on current main: Problems
Suggested changes
Automated hermes-sweeper review. |
08700c6 to
e38db42
Compare
e38db42 to
eb8f98a
Compare
eb8f98a to
7254059
Compare
|
Re-review requested. I rebased this onto current The regression fails on current |
7254059 to
0e7bdb2
Compare
0e7bdb2 to
a36fc94
Compare
|
Rebased onto current upstream Validation on head
@teknium1 @alt-glitch please review the current head. |
a36fc94 to
c9c0494
Compare
|
Rebased the focused concurrent-flush serialization fix onto current Validation: 294 Honcho plugin tests passed; focused Ruff, @coderabbitai review @teknium1 @alt-glitch please re-review the current head. |
…ager.save() sync_turn called manager._flush_session() directly, which flushes synchronously every turn no matter what writeFrequency says — the "async", "session", and every-N-turns modes were dead configuration on the main turn path. Route through save(), the dispatcher that actually implements those modes. Same bug class reported in #19650 (starship-s) and #72708 (Diaspar4u); this takes the minimal one-line routing fix without their broader lifecycle refactors. Co-authored-by: starship-s <45587122+starship-s@users.noreply.github.com>
|
Superseded by #86094, rebuilt from current main with only the remaining concurrent-flush fix and focused regression test. |
What changed
This PR is intentionally limited to one current-main concurrency defect that is not covered by #83500:
mainSuperseded scope removed
#83500 already carries the original PR's
saveMessages,writeFrequency, migration ownership, and normal async-writer shutdown work. None of that scope is resubmitted here.Validation
mainand passes with this commitscripts/run_tests.sh tests/honcho_plugin -q— 294 passedgit diff --check— passed