fix: trim activation header to avoid YAML formatting issues in kilo installer

This commit is contained in:
Davor Racić 2026-02-05 08:42:25 +01:00
parent dcc55dd0d5
commit dbd0bde6d3
1 changed files with 2 additions and 2 deletions

View File

@ -102,8 +102,8 @@ class KiloSetup extends BaseIdeSetup {
const whenToUseMatch = artifact.content.match(/whenToUse="([^"]+)"/);
const whenToUse = whenToUseMatch ? whenToUseMatch[1] : `Use for ${title} tasks`;
// Get the activation header from central template
const activationHeader = await this.getAgentCommandHeader();
// Get the activation header from central template (trim to avoid YAML formatting issues)
const activationHeader = (await this.getAgentCommandHeader()).trim();
const roleDefinitionMatch = artifact.content.match(/roleDefinition="([^"]+)"/);
const roleDefinition = roleDefinitionMatch