From add07f9c06019ad168e7be4012d9b942e16d070d Mon Sep 17 00:00:00 2001 From: James Graham Date: Thu, 13 Jun 2024 18:36:44 +0100 Subject: [PATCH] Unconditionally return the unhandledPromptBehavior capability When creating a session, ensure that we always return the used value of this capability, whether or not it was passed in. --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index c97f7b73..152b43cf 100644 --- a/index.html +++ b/index.html @@ -2304,8 +2304,7 @@

Global State

  • Let serialized user prompt handler be serialize the user prompt handler. -

  • If serialized user prompt handler is not null, set - a property on capabilities with the name +

  • Set a property on capabilities with the name "unhandledPromptBehavior", and the value serialized user prompt handler. @@ -10583,7 +10582,8 @@

    User Prompt Handler

    To serialize the user prompt handler:

      -
    1. If the user prompt handler is null, return null. +

    2. If the user prompt handler is null, return + "dismiss and notify".

    3. If the user prompt handler has [=map/size=] 1, and user prompt handler [=list/contains=]