fix(web): copy multi-output workflow results#34975
Open
officialasishkumar wants to merge 1 commit intolanggenius:mainfrom
Open
fix(web): copy multi-output workflow results#34975officialasishkumar wants to merge 1 commit intolanggenius:mainfrom
officialasishkumar wants to merge 1 commit intolanggenius:mainfrom
Conversation
Expose the copy action for workflow runs when the Detail tab contains serialized output but resultText is empty, which happens for multi-field Workflow WebApp outputs. Fall back to the serialized content in getCopyContent so users can copy the full result JSON from the action bar. Fixes langgenius#34632
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
Fixes #<issue number>.Summary
Fixes #34632.
Published Workflow WebApp runs with multiple output fields serialize the full result into the Detail content while
workflowProcessData.resultTextremains empty. The action bar only showed copy for workflow Result-tab text, so multi-output workflow results had no usable main copy action.This change exposes the workflow copy action on the Detail tab when serialized output exists, and makes workflow copy content fall back to that serialized output when
resultTextis empty. It keeps the existing single-string Result-tab behavior unchanged.Screenshots
Checklist
make lintandmake type-check(backend) andcd web && pnpm exec vp staged(frontend) to appease the lint godsValidation
PATH=/home/sarthak/.npm/_npx/54df5c7b67c3fbcf/node_modules/node/bin:$PATH ../node_modules/.bin/vp test app/components/app/text-generate/item/__tests__/action-groups.spec.tsx app/components/app/text-generate/item/__tests__/utils.spec.tsPATH=/home/sarthak/.npm/_npx/54df5c7b67c3fbcf/node_modules/node/bin:$PATH ../node_modules/.bin/vp run lint:ci app/components/app/text-generate/item/action-groups.tsx app/components/app/text-generate/item/utils.ts app/components/app/text-generate/item/__tests__/action-groups.spec.tsx app/components/app/text-generate/item/__tests__/utils.spec.tsPATH=/home/sarthak/.npm/_npx/54df5c7b67c3fbcf/node_modules/node/bin:$PATH NODE_OPTIONS=--max-old-space-size=8192 ../node_modules/.bin/vp run type-checktype-check:tsgo, andknip