That may be true at junior levels, but as you become more senior your output is judged on a whole bunch of other things:
- Do you elevate the rest of your team? Through entoring, teaching, documentation etc.
- Do you participate productively in higher level strategic planning? Helping the company decide what to build next for example - senior engineers should participate in planning, in order to help the company understand how features can best be built, when to pay down technical debt etc.
- Do other people look forward to working with you, or do they avoid it? This can have a major impact on your ability to deliver value.
Plenty more things like that.
You emphasized only!
Also just a comment on your original comment, where you essentially stated that inter-personal skills are also important. In toxic work environments often individual contributors are dumped with so much of work, that if they even ever attempted to help/interact with someone else they would fall behind on their own work. And then they are held task for not doing their work. I have seen this multiple times pan out. Remember you are dealing with unreasonable people, and they will get you in the end no matter how good you are, if they do not like you for some reason ( for example you are a different ethnicity, and you don't speak their language, which may not be English)
From what you have said you are certainly not a junior dev. Where I see you being somewhat naive is exposure to toxic work environments. A large number of devs and their managers are just immature and nitpicky. Somehow a technology stack is a religion for them. I personally do not know anything that will satisfy such people. And then people can be unimaginably evil, something that often escapes the typical naive engineer/dev who often do not discover it even after having worked up until retirement. Like others have mentioned you have probably dodged a bullet. And your 3 weeks gap is barely anything. Often people can have larger gaps between jobs. Sometimes you can even cover up these gaps by lying on your resume. So point being, relax, do what you can and move on....