@@ -2,7 +2,10 @@ import fs from 'fs';
22import Anthropic from '@anthropic-ai/sdk' ;
33import { type AgentTool } from '@earendil-works/pi-agent-core' ;
44import { type Model , type SimpleStreamOptions } from '@earendil-works/pi-ai' ;
5- import { streamAnthropic , type AnthropicOptions } from '@earendil-works/pi-ai/anthropic' ;
5+ import {
6+ stream as streamAnthropic ,
7+ type AnthropicOptions ,
8+ } from '@earendil-works/pi-ai/api/anthropic-messages' ;
69import {
710 AuthStorage ,
811 createAgentSession ,
@@ -322,6 +325,7 @@ async function createStudioAgentSession(
322325 noThemes : true ,
323326 noContextFiles : true ,
324327 systemPrompt,
328+ appendSystemPrompt : [ ] ,
325329 } ) ;
326330 await resourceLoader . reload ( ) ;
327331
@@ -459,10 +463,13 @@ function createWpcomAnthropicProviderConfig(
459463}
460464
461465function createSettingsManager ( _env : Record < string , string > ) : SettingsManager {
462- return SettingsManager . inMemory ( {
463- defaultThinkingLevel : 'high' ,
464- compaction : STUDIO_COMPACTION_SETTINGS ,
465- } ) ;
466+ return SettingsManager . inMemory (
467+ {
468+ defaultThinkingLevel : 'high' ,
469+ compaction : STUDIO_COMPACTION_SETTINGS ,
470+ } ,
471+ { projectTrusted : false }
472+ ) ;
466473}
467474
468475function toToolDefinition (
0 commit comments