Add helper method for checking if the LLM token needs to be refreshed (#47511)

This PR adds a new `needs_llm_token_refresh` helper method for checking
if the LLM token needs to be refreshed.

We were duplicating the check for the `x-zed-expired-token` header in a
number of spots, and it will be gaining an additional case soon.

Release Notes:

- N/A
097cfae77eMarshall Bowers committed on 1/23/2026, 8:50:50 PM· committed by GitHubparent5d8fd87
4 files changedLine totals unavailable