[LS] Language Server api token expires unexpectedly, breaking Duo Code suggestions and Duo Workflow
Problem
Initially during Duo Workflow dogfooding multiple people reported error messages that point at an expired Duo Workflow token while Duo Chat is still working. See screenshots:
It turns out that this problem is not specific to Duo Workflow but a general problem of the Language Server.
When the token expiry happens:
- Duo Workflow shows errors when trying to run it
- Duo Code suggestions is still working according to the availability indicator but no actual suggestions are shown and the Language Server Logs show an error like shown in these logs.
Users that have this issue are leaving their VSCode window of a specific project open for multiple hours while not working in the project, when they come back the error appears and can only be resolved by re-opening vs-code for this project.
Duo Chat is still working as normal.
Desired Outcome
The language server retains/refreshes the token appropriately so that both Duo Workflow and Code suggestions continue to work after long idle times of the specific project window.
Proposed Solution
TBD
