When compaction is invoked directly via compactEmbeddedPiSessionDirect(), the ExtensionRunner is not initialized, leaving ctx.model undefined. This fix stores the model in the session-scoped runtime registry when building extension paths, then uses it as a fallback when ctx.model is unavailable during compaction summarization. Fixes #4121 |
||
|---|---|---|
| .. | ||
| context-pruning | ||
| compaction-safeguard-runtime.ts | ||
| compaction-safeguard.test.ts | ||
| compaction-safeguard.ts | ||
| context-pruning.test.ts | ||
| context-pruning.ts | ||