فهرست منبع

flip toolcall prune defaults

Dax Raad 4 روز پیش
والد
کامیت
6eddf08244
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/opencode/src/session/compaction.ts

+ 1 - 1
packages/opencode/src/session/compaction.ts

@@ -88,7 +88,7 @@ export const layer: Layer.Layer<
     // calls, then erases output of older tool calls to free context space
     // calls, then erases output of older tool calls to free context space
     const prune = Effect.fn("SessionCompaction.prune")(function* (input: { sessionID: SessionID }) {
     const prune = Effect.fn("SessionCompaction.prune")(function* (input: { sessionID: SessionID }) {
       const cfg = yield* config.get()
       const cfg = yield* config.get()
-      if (cfg.compaction?.prune === false) return
+      if (!cfg.compaction?.prune) return
       log.info("pruning")
       log.info("pruning")
 
 
       const msgs = yield* session
       const msgs = yield* session