LearnNewsExamplesServices
Frontmatter
id7641
titleRefactor: Improve `createComment` with icon map and better formatting
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 25, 2025, 11:50 AM
updatedAtOct 25, 2025, 12:10 PM
githubUrlhttps://github.com/neomjs/neo/issues/7641
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 25, 2025, 12:10 PM

Refactor: Improve createComment with icon map and better formatting

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 25, 2025, 11:50 AM

Based on a code review, the createComment tool will be refactored to improve maintainability and the visual format of the final comment.

Changes:

  1. Icon Map: An AGENT_ICONS constant will be introduced to replace the if/else logic, making it easier to add new agents. A default icon will be included.
  2. Horizontal Rule: A markdown horizontal rule (---) will be added after the comment header for better visual separation.
  3. Agent Name: The agent name in the header will be cleaned to use only the first word (e.g., "Gemini" instead of "Gemini 2.5 pro").
  4. JSDoc: The JSDoc for the createComment method will be updated to be more explicit about the responsibilities of the agent vs. the tool.
tobiu added the enhancement label on Oct 25, 2025, 11:50 AM
tobiu added the ai label on Oct 25, 2025, 11:50 AM
tobiu referenced in commit c08245b - "Refactor: Improve createComment with icon map and better formatting #7641" on Oct 25, 2025, 12:09 PM
tobiu closed this issue on Oct 25, 2025, 12:10 PM
tobiu assigned to @tobiu on Oct 25, 2025, 12:10 PM