Skip to content

Bug: request_human_input todo_list field — required validation passes on all-blank rows, and the field UI is hardcoded English #2079

Closed

Description

@yannickmonney

Area / route
Chat — request_human_input todo_list field (TodoListFieldInput in human-input-fields.tsx, validated in human-input-request-card.tsx). Two defects in the same field, merged.

Sites

  • [29] required todo_list human-input field passes submit validation when all rows are blank
    • Evidence: human-input-request-card.tsx:299-323 (validation: todo_list falls to the else checking typeof value === 'string' && !value.trim()); human-input-fields.tsx:291-306 (TodoListFieldInput always seeds a row and serializes via JSON.stringify → non-empty string even when content is '')
  • [28] request_human_input todo_list field (TodoListFieldInput) renders hardcoded English UI with no i18n
    • Evidence: human-input-fields.tsx has no useT import; hardcoded strings at human-input-fields.tsx:345 (Sub-question ${index + 1}), :350 (${fieldLabel} item ${index + 1} aria-label), :359 (Remove item ${index + 1} title), :373 ('Add item'); grep of messages/en.json for these strings returns nothing

Notes
[29] fix: add an explicit todo_list case to the required-field validation in handleSubmit that parses the value (reuse parseTodoList) and requires >=1 row with non-empty content (and minItems if >0). [28] fix: add a useT namespace (reuse humanInputRequest/approvalCommon), introduce keys for the four hardcoded strings (with {n} interpolation), translate across en/de/fr/de-CH; the agent-supplied {fieldLabel} stays as-is.


Filed by an automated manual-review pass (live browser QA + a 25-agent code-grounded audit, each finding adversarially verified). Deduped against open issues (incl. #1972–#1999, settings/forms epic #1941–#1966, audit cluster #1842–#1846) and recently-closed issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    automatedbugpriority: mediumservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions