You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 70e476b
Browse filesBrowse the repository at this point in the historyBrowse files
fix(acp): titled multi-select form questions reach the user, and empty selections stay valid
ACP form elicitations with a titled multi-select (`items.anyOf` of
`{ const, title }` options) were rejected by effect-acp before the adapter
saw them: the agent got an invalid-params error. The schema generator
recursed into `properties` maps as if they were schemas, so
TitledMultiSelectItems' property named `anyOf` was read as a combinator and
the type was generated as Schema.Never in v1 and v2. The generator now maps
`properties` values as subschemas while keeping their names, and leaves
literal data keywords (`const`, `default`, `enum`, `examples`) alone. The
regenerated files change only TitledMultiSelectItems; the generator also
moves the five elicitation declarations that depend on it. They were
produced with @effect/openapi-generator 4.0.0-rc.112, the version that
reproduces the committed files byte for byte.
The form parser offers titled items as a fixed multi-select with each
option's const as its value. Multi-select answers must be arrays. An
explicit `[]` is kept, for required and optional fields, instead of
cancelling or being dropped; a selection of only unknown options is still
invalid, and `minItems`/`maxItems` are enforced.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
{"type":"expect_outbound","label":"session.prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"registry-replay-session-1","prompt":[{"type":"text","text":"<t3_code_instructions>\n<any>\n</t3_code_instructions>\n\n<user_request>\nAsk which areas this fixture should cover, allowing several. After receiving the answer, respond exactly: titled multi-select fixture complete\n</user_request>"}]}}}
7
+
{"type":"emit_inbound","label":"elicitation.request","frame":{"kind":"request","method":"elicitation/create","params":{"sessionId":"registry-replay-session-1","mode":"form","message":"Choose the fixture areas.","requestedSchema":{"type":"object","title":"Fixture areas","properties":{"fixture_areas":{"type":"array","title":"Areas","description":"Which areas should this fixture cover?","minItems":1,"items":{"anyOf":[{"const":"schemas","title":"Strict schemas","description":"Typed wire shapes"},{"const":"ui","title":"UI flexibility"},{"const":"docs","title":"Docs"}]}}},"required":["fixture_areas"]}}}}
0 commit comments