Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 3.8k
improvement(response-copilot): prefer builder mode + fix builder/editor mode conversions#1648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -83,9 +83,8 @@ export function FieldFormat({ | ||
| const [activeSourceBlockId, setActiveSourceBlockId] = useState<string | null>(null) | ||
| const accessiblePrefixes = useAccessibleReferencePrefixes(blockId) | ||
| // Use preview value when in preview mode, otherwise use store value | ||
| const value = isPreview ? previewValue : storeValue | ||
| const fields: Field[] = value || [] | ||
| const fields: Field[] = Array.isArray(value) ? value : [] | ||
CollaboratorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this prevents nuking diff store if copilot outputs invalid fields i.e. not an array | ||
| useEffect(() => { | ||
| const initial: Record<string, string> = {} | ||
| @@ -547,7 +546,7 @@ export function ResponseFormat( | ||
| emptyMessage='No response fields defined' | ||
| showType={false} | ||
| showValue={true} | ||
| valuePlaceholder='Enter test value' | ||
| valuePlaceholder='Enter return value' | ||
| /> | ||
| ) | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: regex pattern incorrectly captures the character before
<, causing malformed JSON (e.g.,: <var>becomes": <var>"→"": <var>")Prompt To Fix With AI