Roo-Code/webview-ui/src
Roo Code 5b450e0908 fix: guard active @ replacement and extract needsSpaceBeforeMention helper
- Extract needsSpaceBeforeMention(text) helper for consistent space detection
- Use helper across insertMention, ChatTextArea drag/drop, and text insertion
- Add findActiveAtIndex to guard @ replacement (only replace @ with no whitespace between it and cursor)
- Handle \n and \r as whitespace in space-before-mention check
- Add comprehensive tests for active @ detection and helper function

Addresses PR review feedback:
1. Guard replacement to active @ segment only
2. Align space-before-mention behavior across insertion paths
2026-01-06 17:32:25 +00:00
..
__tests__ feat: rename Account tab to Cloud tab (#7558) 2025-08-30 18:57:00 -04:00
components fix: guard active @ replacement and extract needsSpaceBeforeMention helper 2026-01-06 17:32:25 +00:00
context separate task sync roomote control (#7799) 2025-09-10 12:43:11 -07:00
hooks feat: Bring back a way to temporarily and globally pause auto-approve without losing your toggle state (#8024) 2025-09-16 08:59:17 -04:00
i18n feat: Bring back a way to temporarily and globally pause auto-approve without losing your toggle state (#8024) 2025-09-16 08:59:17 -04:00
lib Add shadcn/ui + Storybook 2025-01-30 12:50:09 -08:00
oauth Add a new @roo-code/types package and use it everywhere (#3912) 2025-05-26 12:06:45 -07:00
utils fix: guard active @ replacement and extract needsSpaceBeforeMention helper 2026-01-06 17:32:25 +00:00
vite-plugins fix: prevent empty mode names from being saved (fixes #5766) (#5767) 2025-08-04 11:03:34 -07:00
App.tsx feat: Move slash commands to Settings tab with gear icon for discoverability (#7988) 2025-09-15 15:41:00 -04:00
index.css Make Posthog telemetry the default (#7909) 2025-09-11 15:50:40 -04:00
index.tsx PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
preflight.css Bring most of Tailwind's preflight.css back 2025-02-03 12:18:28 -08:00
types.d.ts Welcome page OAuth (#1913) 2025-03-23 10:08:16 -04:00
vite-env.d.ts Remove lucide 2025-01-30 14:47:59 -08:00