Skip to content

Commit 794ee30

Browse files
test: cover reply init writer skill cache
Exercise runtime-only resolvedSkills on the cached writer-store entry so the reply-init revision guard proves the persisted-shape normalization path. Co-authored-by: Copilot <[email protected]>
1 parent eac364a commit 794ee30

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/config/sessions/session-accessor.test.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,14 @@ describe("session accessor file-backed seam", () => {
500500
const snapshot = loadReplySessionInitializationSnapshot({ sessionKey, storePath });
501501

502502
expect(snapshot.currentEntry?.skillsSnapshot?.prompt).toBe(prompt);
503-
snapshot.currentEntry!.skillsSnapshot!.resolvedSkills = [
503+
clearSessionStoreCacheForTest();
504+
const writerStore = loadSessionStore(storePath, { clone: false });
505+
const writerEntry = writerStore[sessionKey];
506+
if (!writerEntry?.skillsSnapshot) {
507+
throw new Error("expected hydrated writer skills snapshot");
508+
}
509+
expect(writerEntry.skillsSnapshot.prompt).toBe(prompt);
510+
writerEntry.skillsSnapshot.resolvedSkills = [
504511
{
505512
name: "reply-skill",
506513
description: "runtime-only resolved skill body",

0 commit comments

Comments
 (0)