175
const contributor = new ctor();
176
const fullPrompt = contributor.resolveFullSystemPrompt?.(model, context);
178
return fullSystemPrompt(fullPrompt);
179
}
180
const sections = contributor.resolveSectionOverrides?.(model, context);
181
>
// An empty overrides object is treated as "no override" so we keep the
promptRegistry.ts
182
>
// default identity customization rather than emitting a
183
>
// `{ mode: 'customize', sections: {} }` that drops it.
184
>
if (sections && Object.keys(sections).length > 0) {
185
return sectionOverrides(sections);
186
}
187
return COPILOT_AGENT_HOST_SYSTEM_MESSAGE;
189
190
/**