Closed
Description
If I restart DTD in VS Code, interacting with Copilot Chat will sometimes trigger a call to "Connect to DTD" with a stable URI (because it reuses the last URI it fetched, unaware that it has changed). This results in an exception, which prevents the action from getting any further:
If I tell it to "try again" then it re-requests the DTD URI from Dart-Code and everything works.
I wonder if improving the error message when "Connect to DTD" fails may help the model understand that it should try getting an updated DTD URI by calling the "Get DTD URI" tool again? (for example if it suggesting "checking the DTD URI", instead of just providing the raw exception text)