rehashing an old post, and jotted down the advice that has been posted, but thought I would toss in what my '01 2.5L wrangler is doing.
Just got it Monday 1/25/21 with a supposed rebuilt engine, but had a check engine light on. Idle was rough, some stalling. Had the light scanned and came up O2 sensor bank 1 sensor 2. So while i was at the parts store I ordered the sensor, NTK of course as i had googled the engine symptons and everyone under the sun said NTK lol.
Went to change the sensor and noticed that the plug in wasn't connected all the way, so i plugged it back in and started the Jeep. Engine light was gone and idle was spot on, with the exception of a very slight "cough" every once in awhile. Figured a tune up may fix this. Anyway, go to drive it, just leave the drive and the engine light comes back on....
With the exception of a random super rough idle here and there (not all the time) she ran and drove really really well. This was a short trip, maybe 4-6 blocks in stop/go type of setting.
Get home, idle seems to be getting better, so thought maybe tune-up and run it for a bit as the previous owner stated it had set since last summer.
I decided after dinner to take take her for a longer run and stretch her legs a bit. Leave the house and all seems fine going through town. idle is getting better, good acceleration, etc. Cruise through town (25mph-35mph areas, stop and go) and all seems great. Head out of town to wind her up a bit (55mph) and that's when the bucking and lose of power starts. No sooner get out of town and just total loss of power....the farther i push the gas pedal the more she bogs down, but will stay running.
I limp her home, foot barely on the pedal, can barely get mid range in 3rd.....and shut her off once in the driveway. About half hour later, go out and fire her up and she's idling fine. take off again and around town seems back to normal.
Now, i still have the check engine light, which i will be getting checked today and go from there. The O2 sensor in it just may be bad afterall, but after reading through this thread I'm no wondering if it could be TPS also. guess I will see what code or codes is on it now that the light is back on and go from there.