Просмотр исходного кода

test(workspace-context): cite compacted surface source

Tianyi Cui 3 месяцев назад
Родитель
Сommit
5266905455

+ 4 - 1
packages/context/workspace-context/tests/workspace-context.spec.ts

@@ -2182,7 +2182,10 @@ describe('dynamic nested workspace context injection', () => {
       agent.session.append('user/message', {
         content: [{ type: 'text', text: 'compacted summary' }],
         source: { kind: 'plugin', plugin: 'compact' },
-      }, { surfaceOp: { op: 'replace', start: contextSeq, end: contextSeq } })
+      }, {
+        surfaceOp: { op: 'replace', start: contextSeq, end: contextSeq },
+        sourceEventSeqs: [contextSeq],
+      })
 
       const afterCompact = await ctx.tools.execute({
         callId: CallId('read-after-compact'),