Online grammar checkers verify this sentence as correct:
I told him “I just put commas where my brain pauses.” He said, “You need to get your brain examined.”
The online software seems to be fine with or without a comma in the first line, but it insists that I use a comma in the second line after 'He said'.
My question is: Why do I not need a comma after the phrase 'I told him' in the first line? Isn't that an introductory phrase too?