Repository navigation
ai: fix the five flow test failures (silent turn start limit, mock resume, guard word) - #3679
Conversation
While the live event stream is connected the turn loop only polled the engine every 10 seconds, so a turn that went quiet was seen idle too late and the 30 second resume won over the start limit. Poll every 5 seconds (and at once) while no live text has arrived, and let the quiet timer start the first time the engine is seen idle.
…wers do not name the model The guard rewrites sentences that name a pool model, so the mock now says via fallback one instead of backup-one. After an automatic continuation the mock answered the continuation note as a fresh prompt, which hid the always limited and fail midway cases; it now keeps the first prompt of the session when the new one is a continuation.
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
sha=679f839b8b9fd433f43ac5174e0a9d340324098a
🤖 Salam AI reviewVerdict: ✅ Good to merge commit SummaryThis pull request fixes five recurring flow-test failures by correcting mock behavior, test expectations, and backend turn timing. It prevents fallback answers from containing pool model names that triggered the answer guard, preserves the original session prompt across automatic continuations so scenario flags remain intact, and makes silent-turn polling detect idle/start-limit conditions before the resume path. The changes are focused and align with the described failure modes. What changed
Review
Tests
Risks
|
The Build like production and run the flow tests job fails every time it actually runs (the runs that looked green had that step skipped). Five checks fail, three causes:
Verified against a private mariadbd, the mock and the backend built with the main compiler: the full api_flow run had 0 FAIL (173 ok, stopped at the voice section because the speech mock was not running), and a loop of restarted, rate limited, fail midway and goes quiet ran 96 checks with none bad.