Canning chili with beans
If you are going to be canning this for long term storage you will need to be pressure canning it, and as that will mean some pretty high heat you'd be better off not cooking you beans too long before canning. I'd add them in a few minutes before the end of cooking just to get them warmed up in preparation for canning it as a half hour of cooking plus pressure canning would probably mean mush.