diff --git a/src/services/command.ts b/src/services/command.ts index e548ae3..3e48a7e 100644 --- a/src/services/command.ts +++ b/src/services/command.ts @@ -788,14 +788,14 @@ export class CommandService { const ownerPart = assignmentUserIds.length === 0 ? `${ICONS.unassigned} sin responsable${groupName ? ` (${groupName})` : ''}` : `${assignmentUserIds.length > 1 ? 'šŸ‘„' : 'šŸ‘¤'} ${assignedDisplayNames.join(', ')}`; - const ackParts = [ - `${ICONS.create} ${taskId} _${description || '(sin descripción)'}_`, + const ackLines = [ + `${ICONS.create} ${codeId(taskId)} _${description || '(sin descripción)'}_`, dueFmt ? `${ICONS.date} ${dueFmt}` : null, ownerPart ].filter(Boolean); responses.push({ recipient: createdBy, - message: ackParts.join(' — '), + message: ackLines.join('\n'), mentions: mentionsForSending.length > 0 ? mentionsForSending : undefined }); diff --git a/tests/unit/services/command.test.ts b/tests/unit/services/command.test.ts index 960839b..4eb9c82 100644 --- a/tests/unit/services/command.test.ts +++ b/tests/unit/services/command.test.ts @@ -309,8 +309,8 @@ describe('CommandService', () => { expect(responses.length).toBe(1); expect(responses[0].recipient).toBe('1234567890'); - // Debe empezar con "šŸ“ " - expect(responses[0].message).toMatch(/^šŸ“ \d+ /); + // Debe empezar con "šŸ“ `0001` " + expect(responses[0].message).toMatch(/^šŸ“ `\d{4}` /); // Debe contener la descripción en cursiva compacta expect(responses[0].message).toContain('_Test task_'); // No debe usar el texto antiguo "Tarea creada"