There is no cohesive Pakistani state response most times because there is no cohesive "Pakistani".
In the establishment you have lobby groups belonging to various different sectors, whether it be news & media owners, wadheras, feudals, industrialists, lawyers, provincial elites, business owners, mafia groups like sugar, electricity mafia, etc and last but not least, the military.
Now all of these are of different ethnicities and sects. Many are Pashtuns who are strongly pro-Afghanistan, they advocate for mass immigration into Pakistan for demographic goals, they subtly are very pro Afghan nationalism over Pakistan. Their goals are ethnic interests. They oppose Pakistani interests seen as "Punjabi". Then you have the Sindhis, they don't want challenge to PPP in Sindh or Wadheras, they want Karachi under their control. So on and on with other groups like Shias to Iran.
In this muddled environment, you cannot expect a cohesive policy because you are being internally subverted against your interests. They possess pressure groups like rallying ethno nationalist sentiment.
Now you can hate Afghanistan all you want for being aggressively violent and anti-Pakistan, but the Pashtuns rule their through violence and iron fist for centuries. No issue there, they kill you with impunity.
Pakistan cannot lift a finger without risking upsetting some local lobby group or some international ally.
You be aggressive against Afghanistan? Now you upset the mullahs and Pashtun nationalists that deeply penetrated the state, you risk local riots.