Commit f763d2c
committed
fix(gateway): remove double-reverse of history messages in _send_to_agent_background
hist_msgs is already sorted oldest→newest by list(reversed(...)), so
passing reversed(hist_msgs) to _conv() flips the order again, causing
the model to read conversation history in reverse chronological order.1 parent 58bfa36 commit f763d2c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
393 | | - | |
| 393 | + | |
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| |||
0 commit comments