From 3cb15c1f8efb576691af2cd2714235e3001bf960 Mon Sep 17 00:00:00 2001 From: Adam Creeger Date: Mon, 16 Feb 2026 18:19:21 -0500 Subject: [PATCH] fix(add-issue): always run body through enhancement agent Previously --body bypassed enhancement entirely. Now the enhancer agent always receives the content (title + body combined, or just description), and its idempotency check skips enhancement if already well-structured. --- src/commands/add-issue.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/commands/add-issue.ts b/src/commands/add-issue.ts index 14119d34..ff2d5609 100644 --- a/src/commands/add-issue.ts +++ b/src/commands/add-issue.ts @@ -69,8 +69,11 @@ export class AddIssueCommand { throw new Error('Description is required and must be more than 30 characters with at least 3 words') } - // Step 2: Skip enhancement if body provided, otherwise enhance description - const issueBody = body ?? await this.enhancementService.enhanceDescription(description) + // Step 2: Enhance the content - pass title + body together for full context, + // or just the description if no body provided. + // The enhancer agent will skip enhancement if the content is already well-structured. + const enhancementInput = body ? `${description}\n\n${body}` : description + const issueBody = await this.enhancementService.enhanceDescription(enhancementInput) // Step 3: Create GitHub issue with original as title, body as body const result = await this.enhancementService.createEnhancedIssue(