fix(memory): allow desktop distillation requests - #1292
Merged
XingYu-Zhong merged 1 commit intoSep 7, 2026
Merged
Conversation
This was referenced Sep 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix desktop Memory distillation IPC routes
Summary
GET /v1/memory/distillationandPOST /v1/memory/distillation/:candidateId/decisionare admitted.Why
PR #1266 added the runtime and renderer-side Memory distillation flow, but the desktop IPC request schema did not include its two endpoints. The renderer therefore could construct candidate-list and Allow/Deny/Withdraw requests, while the Electron main-process allowlist rejected them before they reached the Kun runtime.
The explicit distillation templates are registered before the generic
/v1/memory/{id}matcher. This preserves the existing record mutation contract and avoids treatingdistillationas a Memory record ID.Changes
src/main/ipc/app-ipc-schemas/runtime.ts.src/main/ipc/app-ipc-schemas-memory-distillation.test.ts.Tests
npm run typechecknpm run buildnpm run lint— 0 errors, 30 existing warningsopenspec validate add-kun-memory-distillation --strictgit diff --checkThe full local test suite and packaging matrix were not rerun for this three-file patch; PR CI remains the source of truth for those broader checks.
Related: #1266