The Kabul regime is allied with India, while Pakistan has ties with the Taliban. Nothing can change this basic fact. Besides the days of the Kabul regime are numbered. There is only one way this story is going to end and that will be with the Taliban seizing power.
Yes, things could get better with the Taliban in power. But that regime would be unstable as it is hard to believe that the Taliban will form a govt. with the Northern Alliance/Kabul Regime, while the Americans simply won't be funding a hardline religious regime. Without foreign aid the Afghan state which barely exists as it is, will continue to crumble, struggle to maintain order or change things in a meaningful way. On top of that, I just don't believe that the Taliban will not play double-games with Pakistan since they too do not trust the Pakistanis.
Bottom-line: the instability in Afghanistan is unlikely to go away anytime soon, which continue to be a major problem for Pakistan.