0208c398b8
Bash history cleaning was happening too early, causing script commands to be re-added to history. Changes: • Moved history cleaning to the very end of the script • History is now cleaned after all other operations complete • Prevents script commands from being re-added to history • Clear in-memory history as final action Now properly removes the last 50 bash history entries including all toolkit-related commands.