mirror of
https://github.com/usestrix/strix.git
synced 2026-10-16 04:28:23 +00:00
The no-session branch already logged that queued messages were not persisted, but still returned a positive count/items, reporting them as delivered to every caller. Return 0, [] instead, matching what the log already says happened. Flagged in review on this PR (itzzdev09): https://github.com/usestrix/strix/pull/1161 Also adds the regression test that review flagged as worth keeping: mailbox[0:0] = queued (not append) is what keeps a message that arrives during a failed write's restore sorted after the one being retried. Two existing tests relied on root having no session attached while still expecting a positive pending count from consume_pending; that only worked because of the bug above. Gave both a real session, matching how every other agent in this test suite is set up. |
||
|---|---|---|
| .. | ||
| agents | ||
| config | ||
| core | ||
| interface | ||
| llm | ||
| report | ||
| runtime | ||
| skills | ||
| telemetry | ||
| tools | ||
| utils | ||
| __init__.py | ||