44dc0a9387
- Extracted screenshot formatting logic into dedicated `formatScreenshot()` function with options support. - Consolidated prompt source deduplication into `dedupePromptSource()` helper to prevent rule duplication. - Refactored editor text sanitization to use `replaceTabs()` utility for consistent tab width handling. - Added test coverage verifying editor respects configured tab width when loading text programmatically.