I have reproduced the issue on the latest CLI version.
Yes, I am on the latest version
I have searched existing posts and this report is not a duplicate.
Yes, this isn’t a duplicate
In which of these areas are you experiencing a problem?
Theme
Expected behavior
Automatic Token Refresh
Actual behavior
After developing for long periods of time, the token expires but the CLI doesn’t seem to request a new token automatically anymore, instead I get this error shown on screen:
“The access token provided is expired, revoked, malformed, or invalid for other reasons.”
Only restarting the CLI fixes it 
Reproduction steps

Verbose output
Too difficult to get as it happens so sporadically
Operating system
Windows 11
CLI version
3.89.0
Shell
Git Bash / Powershell
Nodejs version
24.6.0
What language and version are you using in your application?
N/A
Hey @ceri_waters, thanks for the post! How long would you say your development period was before you hit the error? Has this happened multiple times? If so is it around that same time frame?
Thanks!
@Josh-Shopify It’s been happening for a few weeks now, latest version possibly? I only really notice it after extended development i.e. +1 hour
One of the guys from Shopify Dev Alliance has come across the issue too (which is when I then posted).
1 Like
Hi @ceri_waters
Thanks for flagging this - there’s an update we’re working on that will be released soon that should address this issue.
1 Like
@Liam-Shopify I’ve been having this error ever since the cart ajax API issues, so don’t know if it’s related (CLI > Theme Dev > cart ajax 401). It’s intermittent for me, but probably happens a couple of times within the hour.
Same issue here. Restarting the CLI always fixes it. It seems to occur more often when I’m working on both theme and app development simultaneously, although that’s not consistent. In some cases, it simply crashes after running for some time.
EDIT: This happens a couple of times a month.
@Liam-Shopify Don’t know what the status is with this one, but I’m still getting it.
Request ID example: 54f28fe6-721d-4dcc-9e53-c22eef983881-1774519894