Skip to content

Commit

Permalink
Unconditionally return the unhandledPromptBehavior capability
Browse files Browse the repository at this point in the history
When creating a session, ensure that we always return the used value
of this capability, whether or not it was passed in.
  • Loading branch information
jgraham committed Jun 13, 2024
1 parent a63c0e8 commit add07f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2304,8 +2304,7 @@ <h3>Global State</h3>
<li><p>Let <var>serialized user prompt handler</var>
be <a>serialize the user prompt handler</a>.

<li><p>If <var>serialized user prompt handler</var> is not null, set
a property on <var>capabilities</var> with the name
<li><p>Set a property on <var>capabilities</var> with the name
"<code>unhandledPromptBehavior</code>", and the value <var>serialized
user prompt handler</var>.

Expand Down Expand Up @@ -10583,7 +10582,8 @@ <h3>User Prompt Handler</h3>
<p>To <dfn>serialize the user prompt handler</dfn>:

<ol class=algorithm>
<li><p>If the <a>user prompt handler</a> is null, return null.
<li><p>If the <a>user prompt handler</a> is null, return
"<code>dismiss and notify</code>".

<li><p>If the <a>user prompt handler</a> has [=map/size=] 1,
and <a>user prompt handler</a> [=list/contains=]
Expand Down

0 comments on commit add07f9

Please sign in to comment.