Skip to content

fix(web): preserve HITL input name on prefill selection#37805

Open
luochen211 wants to merge 1 commit into
langgenius:mainfrom
luochen211:fix/hitl-save-response-as
Open

fix(web): preserve HITL input name on prefill selection#37805
luochen211 wants to merge 1 commit into
langgenius:mainfrom
luochen211:fix/hitl-save-response-as

Conversation

@luochen211

Copy link
Copy Markdown
Contributor

Summary

Fixes #37787.

  • Preserve the Human Input Save response as value when the pre-populate variable picker commits a selector update.
  • Update paragraph default-value changes to derive from the latest temporary payload instead of a previously rendered payload snapshot.
  • Add regression coverage for a stale pre-populate selector callback so the output variable name remains available after selecting an upstream variable.

Verification

  • pnpm -C web test app/components/base/prompt-editor/plugins/hitl-input-block/__tests__/input-field.spec.tsx
  • pnpm -C web type-check
  • pnpm lint --quiet web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx web/app/components/base/prompt-editor/plugins/hitl-input-block/__tests__/input-field.spec.tsx

Risk

  • Scope: limited to the HITL input field editor state update path.
  • Regression risk: low; select/file input paths are unchanged, and the existing input-field test suite still passes.

@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jun 23, 2026
@github-actions github-actions Bot added the web This relates to changes on the web. label Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files. web This relates to changes on the web.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Human Input: "Save response as" is cleared when selecting a pre-filled field

1 participant