- Renamed and refactored the `sanitizeTerminalCommand` function to `stripTerminalCommandPrompt` for clarity. - Enhanced the command sanitization process to preserve leading whitespace while removing known shell prompt prefixes. - Updated references in `terminalInputTracker.ts` to utilize the new function, improving command normalization and candidate addition logic.