feat: preserve compact agent context and bump to 1.2.25
This commit is contained in:
@@ -32,7 +32,7 @@ test('user messages preserve only typed text while attachments remain separate m
|
||||
find(source)
|
||||
assert.ok(initializer)
|
||||
for (const request of ['이 이미지에서 슬램에 필요한 모듈만 골라봐', '첫 줄\n첨부 파일: 직접 입력한 내용']) {
|
||||
const message = vm.runInNewContext(`(${initializer})`, { request, options: { attachments: [{ name: '스크린샷.png' }] } })
|
||||
const message = vm.runInNewContext(`(${initializer})`, { request, conversationScope: undefined, options: { attachments: [{ name: '스크린샷.png' }] } })
|
||||
assert.equal(message.content, request)
|
||||
}
|
||||
})
|
||||
@@ -40,7 +40,7 @@ test('user messages preserve only typed text while attachments remain separate m
|
||||
function serialize(attachments, finalize = false, request = '설정 위치 알려줘', imageTokens = [], provider = 'QWEN') {
|
||||
return JSON.parse(vm.runInNewContext(payloadExpression, {
|
||||
courseId: 'course-1', weekNumber: 3, request, options: { attachments }, finalize,
|
||||
textAttachments: attachments ?? [], imageTokens,
|
||||
textAttachments: attachments ?? [], imageTokens, conversationContext: undefined,
|
||||
selection: provider ? { provider } : {},
|
||||
agentPlanRequestText: contextApi.agentPlanRequestText,
|
||||
context: { modules: [{ name: 'Control', files: [] }], runtimeLogs: [] }
|
||||
|
||||
Reference in New Issue
Block a user