Enhance AWS credentials file monitoring and Claude history management
- Implement continuous file monitoring for AWS credentials and config files
- Add ability to restart monitoring after file changes or deletions
- Improve error handling and logging for file monitoring operations
- Refactor file monitoring logic for better maintainability
- Ensure proper cleanup of file monitors on app termination
- Implement logic to prevent consecutive 'user' messages in Claude history
- Add cleanupClaudeHistory method to maintain consistent message order