mirror of
https://github.com/langgenius/dify.git
synced 2026-11-14 07:11:06 +08:00
Co-authored-by: zxhlyh <jasonapring2015@outlook.com> Co-authored-by: JzoNg <jzongcode@gmail.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
27 lines
1.4 KiB
Markdown
27 lines
1.4 KiB
Markdown
# Console Human Input Form
|
|
|
|
The authenticated session owner within the [Human Input feature].
|
|
`/human-input/[formToken]` is the signed-in Console approval page.
|
|
It reuses the Console authentication boundary and the existing form
|
|
presentation in [form]. Login redirects preserve the form URL. The backend remains the
|
|
authority for workspace access and recipient eligibility.
|
|
|
|
- `form.tsx` owns fetching, submission, expiry, and completion/error states.
|
|
- `definition.ts` validates the generated Console response, then maps ordered
|
|
`resolved_form.parts`, field defaults, actions and expiration to the shared UI.
|
|
- `links.ts` maps backstage links from Console pause details to this page.
|
|
Public V2 and unrelated links are left unchanged.
|
|
|
|
Reads and submissions use the generated GET/POST contract for
|
|
`/console/api/form/human-input/v2/{form_token}`. Submission sends `inputs` and
|
|
`action`. Errors never fall back to the old form endpoint or another auth surface.
|
|
No generated contracts or backend code are modified here.
|
|
|
|
Public `/form/[token]` and `/form-v2/[token]` pages keep their existing behavior.
|
|
This Console page retains its current authenticated upload path. Form-scoped
|
|
Console upload authorization is a separate pending API contract (WTA-3537);
|
|
module consolidation does not implement that authorization or add an endpoint.
|
|
|
|
[Human Input feature]: ../README.md
|
|
[form]: ../form/README.md
|