Repository navigation
fix(acp): form choices with matching titles get distinct labels - #48427
StiensWout wants to merge 7 commits into
Conversation
…f quotes Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Titled choices whose labels collide, such as an empty value and a pair of quotes, now fall back to quoted values like enum choices already do. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Only the colliding titled choices show their quoted values; every value is quoted only if that still leaves two labels alike. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…el scenario Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — ACP form choices with matching titles now receive distinct quoted-value labels. Submitted values and validation remain unchanged, limiting the impact to choice presentation. You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
In an ACP form, choices whose titles matched showed the same label. For example, an empty value and a value of two quote characters both appeared as
"", so the user could not tell which one they were picking. Now only the colliding titled choices (oneOf/anyOf) are labeled with their quoted values, and choices with unique titles keep them. Every value is quoted only if that would still leave two labels alike.Related: #48389, #35996, #45050, #45792, #48334
Reproduction on main
Commit 679441f6b0 (main). Both choices are labeled
"", with no description that tells them apart. Expected: The labels distinguish the empty value from the value containing two quote characters.The cause is at
packages/provider-acp/src/server/elicitationForm.ts:84. Ranpnpm scenarios:prove scripts/scenarios/acp-titled-empty-choice-label.e2e.ts --target webwith the repro scenario added: it failed in 2 of 2 runs on a clean boat.dev VM, withexpected "\"\"" not to be "\"\""in the output.Evidence
Environment: The web app in Chromium on Linux x64, a fresh checkout on a boat.dev VM reset before each run.
Proven: the repro fails at the test commit aad8c1b55d and passes on the head 2a8032c024, both on main 9ba2879064.
Both choices are labeled
"", with no description that tells them apart.The labels distinguish the empty value from the value containing two quote characters.
Tests
pnpm exec vp run check:changed 9ba28790648466118cb9039516172d8586232f15passed on head.Not in this change
Who did the work
Made in T3 Code by Claude Opus 5.5 and GPT 6.2 Sol