t3code icon indicating copy to clipboard operation
t3code copied to clipboard

Show Yes/No instead of true/false for boolean form questions

Open amv146 opened this issue 1 week ago • 1 comments

Area

Boolean form elicitation / question composer.

Actual behavior

When an agent asks a question using a boolean form field, the primary choices are true and false, with Yes and No underneath.

For a conversational question such as "Would you like to continue?", this exposes implementation terminology unnecessarily.

Steps to reproduce

  1. Have an ACP agent send an elicitation/create request with mode: "form" and this requestedSchema:

    {
      "type": "object",
      "properties": {
        "continue": {
          "type": "boolean",
          "description": "Would you like to continue?"
        }
      },
      "required": ["continue"]
    }
    
  2. Observe the question's choices in the composer.

Proposed behavior

Display Yes and No, while continuing to return actual boolean values to the agent.

Explicit string enums containing "true" and "false" should remain unchanged.

Impact

Cosmetic/readability issue; answering the form already works. The protocol does not mandate particular labels, so this is a UX improvement rather than a protocol-compliance bug.

Investigation

The ACP form adapter explicitly generates true/false labels, with Yes/No as descriptions.

Before Screenshot: image

Proposed Screenshot: image

The adapter separately converts submitted values into actual booleans, so changing only the display labels preserves the existing response behavior.

A minimal local change was verified through the app: selecting Yes returned boolean true, and selecting No returned boolean false. Neither answer was treated as cancelling or declining the form.

Workaround

Use true for Yes and false for No. No data loss or failure to submit was observed.

amv146 avatar Nov 20 '26 00:11 amv146

Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.

juliusmarminge avatar Nov 20 '26 00:11 juliusmarminge