904 trans disengages then reengages

Look at and smell the fluid. If it looks brown and not red and smells burned, you probably have a direct clutch issue. It's worth doing a transmission service on it to check the pan for debris. If the fluid is burned and you have debris in the pan, it's time for a rebuild.