Repository navigation
fix(ui): expose both decisions playground endpoints - #45817
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
|
kerry seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Summary
Let users QA
/v1/decisionsand/v1/systemonein the Decisions Playground, with Form and JSON views for both requests and responsesTLDR
Problem this solves:
/v1/decisionsAPI shapeHow it solves it:
Intentional product change: the TypeSafe-specific endpoint option is removed, but configured TypeSafe models and backend routes remain available. Both endpoints offer Form and JSON editing. Form shows answer cards; JSON shows the actual response JSON. Switching views reuses the existing response without another request. Examples omit
modeluntil discovery or explicit selection, preserving proxy-default routingUser Flow
Before, users cannot explore the OpenAI Decisions request and response shapes
Decisions · /v1/systemoneandTypeSafe · /typesafe/v1/systemonestateand aquestionsobjectAfter, users can QA both APIs and inspect their actual shapes
/v1/decisionsor/v1/systemone, then choose a configured modelinputand array questions for Decisions, orstateand keyed questions for System OneValidation
182 focused tests pass across ten Playground test files. Coverage includes both request and response formats, Form/JSON switching without resending, predicate/choice/score/refusal cards, boolean choices, adding/removing form items, metadata and message preservation, independent drafts, reset, validation, cancellation, late responses and model discovery
npm run typecheckandmake checkpass. ESLint reports one existing component-complexity warning and no errorsAutomated browser testing and live provider calls have not been run by this session
Caveats
Low
Pre-Submission checklist
Type
Bug Fix
Final Attestation
Link to Devin session: https://app.devin.ai/sessions/9b4fbfc9194c4fb78d3fb268908344c4
Open in Devin Desktop: https://app.devin.ai/desktop/session/9b4fbfc9194c4fb78d3fb268908344c4?variant=devin
Requested by: @kerry-berri
Note
Devin errored when opening this Pull Request as kerry-berri.
As a fallback, Devin opened this PR as itself.