Commit e45069f
committed
fix(chat): null out SentMessage.raw before persisting to history
Post-merge review of PR #117 caught that _MessageHistoryCache.append
in chat.py did not null out raw before persisting (unlike its sibling
MessageHistoryCache.append in message_history.py, which already does).
Without this, the platform raw payload (Slack team_id/user_id,
Discord guild IDs, etc.) that #117 now correctly populates on
SentMessage.raw would persist to Redis/Postgres-backed state on
every reply, inflating storage size and PII surface.
Mirrors the null-out in message_history.py:62.1 parent 918a0e6 commit e45069f
2 files changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2454 | 2454 | | |
2455 | 2455 | | |
2456 | 2456 | | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
2457 | 2462 | | |
| 2463 | + | |
2458 | 2464 | | |
2459 | 2465 | | |
2460 | 2466 | | |
| |||
0 commit comments