Skip to content

Commit b5f9d32

Browse files
committed
🤖 refactor: make compaction streamMessage call readable
1 parent d1d15f5 commit b5f9d32

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

src/node/services/agentSession.ts

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -734,21 +734,31 @@ export class AgentSession {
734734
: undefined;
735735

736736
// Stream compaction (no history persistence for the prompt message)
737+
const abortSignal = undefined;
738+
const additionalSystemInstructions = undefined;
739+
const maxOutputTokens = options.maxOutputTokens;
740+
const muxProviderOptions = options.sendMessageOptions?.providerOptions;
741+
const mode = undefined;
742+
const recordFileState = undefined;
743+
const changedFileAttachments = undefined;
744+
const postCompactionAttachments = undefined;
745+
const experiments = options.sendMessageOptions?.experiments;
746+
737747
return this.aiService.streamMessage(
738748
compactionMessages,
739749
this.workspaceId,
740750
model,
741751
effectiveThinkingLevel,
742752
disableAllTools,
743-
undefined,
744-
undefined,
745-
options.maxOutputTokens,
746-
options.sendMessageOptions?.providerOptions,
747-
undefined,
748-
undefined,
749-
undefined,
750-
undefined,
751-
options.sendMessageOptions?.experiments
753+
abortSignal,
754+
additionalSystemInstructions,
755+
maxOutputTokens,
756+
muxProviderOptions,
757+
mode,
758+
recordFileState,
759+
changedFileAttachments,
760+
postCompactionAttachments,
761+
experiments
752762
);
753763
}
754764

0 commit comments

Comments
 (0)