public historyChanged(message as LLMThreadMessage, context as ArrayList<LLMThreadMessage>)
Records one appended message or a replacement of the compacted context.
| Parameter | Description |
|---|---|
message | New message, or null after context compaction. |
context | Snapshot of the active provider context; changing the list does not modify the session. Tool call metadata must be retained on disk. |
journal.historyChanged(message, session.messages())