كان على وشك أن تخرج.

English Translation

He was about to go out.

Isn’t “تخرج” feminine? Thus, “She was about to go out”?

Yes تخرج is feminine therefore كان should be كانت
Or
change تخرج to يخرج for the sentence to be correct