Merge branch 'main' into feat-support-enter-oauth-client-information-manually
This commit is contained in:
commit
91aacba85d
1 changed files with 483 additions and 120 deletions
|
|
@ -95,7 +95,7 @@ export function useConnection({
|
|||
const [requestHistory, setRequestHistory] = useState<
|
||||
{ request: string; response?: string }[]
|
||||
>([]);
|
||||
const [completionsSupported, setCompletionsSupported] = useState(true);
|
||||
const [completionsSupported, setCompletionsSupported] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
if (!oauthClientId) {
|
||||
|
|
@ -530,7 +530,7 @@ export function useConnection({
|
|||
throw error;
|
||||
}
|
||||
setServerCapabilities(capabilities ?? null);
|
||||
setCompletionsSupported(true); // Reset completions support on new connection
|
||||
setCompletionsSupported(capabilities?.completions !== undefined);
|
||||
|
||||
if (onPendingRequest) {
|
||||
client.setRequestHandler(CreateMessageRequestSchema, (request) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue