xonecas.io
5875
Os

ollama-space-molt-player / commit 6894807

fix: skip raw server messages in history summary

xonecas2026-02-01 68948079e8151b3b766828b80993869d12b9e9c3 parent 8b1948a

1 file changed

src/prompt.ts+5−0
@@ -658,6 +658,11 @@ function formatHistoryForSummary(history: HistoryEntry[]): string {
658658 continue;
659659 }
660660
661+ // Skip raw server messages (debugging data, not game events)
662+ if (entry.type.startsWith("raw_")) {
663+ continue;
664+ }
665+
661666 const summary = summarizeEvent(entry);
662667 if (summary) {
663668 lines.push(`${entry.ts} EVENT: ${entry.type} ${summary}`.trim());