Prompt history: list preview shows the message as written, not the engine's time line (#660)

Version 0.1.13.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Richard
2026-09-19 15:36:55 +02:00
co-authored by Claude Opus 5
parent 5adf4c1ca6
commit 996330a77e
6 changed files with 19 additions and 6 deletions
@@ -207,6 +207,7 @@ public sealed class PromptHistoryTests : IDisposable
t.AgentId.ShouldBe("wetterdienst");
t.Entries.Select(e => e.Kind).ShouldBe(["user", "assistant", "tool_result", "assistant"]);
t.Entries[0].Text.ShouldContain("Wie ist das Wetter?");
items.Single().Prompt.ShouldBe("Wie ist das Wetter?", "the list shows the message, not the time line the engine adds");
t.Entries[2].Text.ShouldNotBeNull().ShouldContain("18 °C", Case.Sensitive, "stored as the model saw it, frame included");
t.Entries[3].Text.ShouldBe("Es sind 18 °C.");
(await _store.GetSystemPromptAsync(t.SystemPromptHash!, default)).ShouldNotBeNull().ShouldContain("wetterdienst");