fix(knowledge): scope pins to sessions

This commit is contained in:
Bohdan Triapitsyn
2026-08-19 00:07:57 +03:00
parent a66903c73c
commit f9d1ded81a
16 changed files with 340 additions and 106 deletions
@@ -69,7 +69,13 @@ export const createContextObligatoryRuntime = ({
*/
const knowledge = sessionKnowledgeRuntime
? await sessionKnowledgeRuntime
.resolvePending(directory, sessionKnowledgeRuntime.readDeliveredSignature(session))
.resolvePending(
directory,
// Compaction removed the previously delivered block, so its stored
// signature is no longer evidence that the session still carries it.
'',
sessionKnowledgeRuntime.readPins(session),
)
.catch(() => ({ text: '', signature: '' }))
: { text: '', signature: '' };