Commit ad6962f
committed
fix: save display_text instead of full_response to conversation logs
Fixes bug where only user input was being logged in session saves.
The issue was that we were displaying 'display_text' (harmony-formatted
response) to the user, but saving 'full_response' (raw text) to logs.
With harmony responses, if token extraction doesn't work but display
does, full_response could be empty while display_text has content.
Changes:
- Save display_text to conversation_history (line 1485)
- Update self.last_response to use display_text (line 1366)
- Ensures logs match what user sees on screen
This makes the behavior consistent: what you see is what gets saved.1 parent d36b54b commit ad6962f
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1333 | 1333 | | |
1334 | 1334 | | |
1335 | 1335 | | |
1336 | | - | |
1337 | 1336 | | |
1338 | 1337 | | |
1339 | 1338 | | |
| |||
1363 | 1362 | | |
1364 | 1363 | | |
1365 | 1364 | | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
1366 | 1368 | | |
1367 | 1369 | | |
1368 | 1370 | | |
| |||
1482 | 1484 | | |
1483 | 1485 | | |
1484 | 1486 | | |
1485 | | - | |
| 1487 | + | |
1486 | 1488 | | |
1487 | 1489 | | |
1488 | 1490 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments