Frontmatter
| id | 8208 |
| title | ai.client.ComponentService: Make highlightComponent non-blocking |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Dec 30, 2025, 1:16 AM |
| updatedAt | Dec 30, 2025, 1:17 AM |
| githubUrl | https://github.com/neomjs/neo/issues/8208 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8169 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 30, 2025, 1:17 AM |
ai.client.ComponentService: Make highlightComponent non-blocking
tobiu assigned to @tobiu on Dec 30, 2025, 1:16 AM
tobiu added parent issue #8169 on Dec 30, 2025, 1:16 AM

tobiu
Dec 30, 2025, 1:17 AM
Input from Gemini:
✦ I have refactored
highlightComponentto be non-blocking.Changes:
- Removed
async/await.- The method now applies the style and returns
{success: true}immediately.- The style removal is handled by a background
this.timeout(duration).then(...)chain, ensuring the cleanup happens without delaying the response to the agent.
tobiu closed this issue on Dec 30, 2025, 1:17 AM
Refactor
Neo.ai.client.ComponentService=>highlightComponentto return immediately.Current Behavior: The method awaits the
duration(default 2000ms) before returning. This blocks the AI agent from performing subsequent actions (like highlighting another component) until the previous highlight expires.Desired Behavior:
this.timeout()orsetTimeout.{success: true}immediately, without waiting for the cleanup.Goal: Allow high-frequency highlighting operations without artificial delays.