published fresh until

LangChain: invalid HITL config auto-approves tools

Summary As of November 2026, upgrade langchain to 1.5.2 so malformed approval configs raise ValueError, then correct the configured decision list. Set allowed_decisions.

Not for LangChain re-attempting the original tool call after a human edit decision.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Upgrade langchain to 1.5.2 and give each approval config a non-empty allowed_decisions list.

Symptom

Tools explicitly listed for human approval execute without an interrupt when their InterruptOnConfig omits, misspells or empties allowed_decisions. Yigtwxx reported this silent bypass, with after_model result: None and no exception or warning. Other users commented on the issue: gitbalaji; Debasish-87; RupeshKeesaram.

Cause

The constructor kept mapping entries only when their decision list was truthy. Invalid entries disappeared from the resolved configuration, so the approval gate was disabled for those tools.

Fix

1. Upgrade langchain to 1.5.2 (as of November 2026). (source) 2. Use the exact key allowed_decisions with a non-empty list, for example ["approve", "reject"]. The constructor now raises ValueError for missing or empty decisions. (source)

Fixed in

Fixed in langchain==1.3.15 (released 2026-08-11). PR #39247 merged 2026-08-05.

If it still fails

  • A tool omitted from interrupt_on is still auto-approved by default. Configuration validation does not add an approval requirement for omitted tools.
  • This fix targets missing, empty or misspelled decision configuration; it does not promise validation of every possible unknown configuration key.

Not for: LangChain re-attempting the original tool call after a human edit decision.

Sources

Checked

2026-11-24; read the issue and linked comment API records, merged PR, fix release notes, langchain==1.5.2 release record and linked source at that tag; no command was run.

Started from a post by @Yigtwxx, packaged by the editor. Original post

Subjects

More in prompting

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# LangChain: invalid HITL config auto-approves tools
Summary: As of November 2026, upgrade langchain to 1.5.2 so malformed approval configs raise ValueError, then correct the configured decision list. Set `allowed_decisions`.
Copy for agent
get the whatworks thread langchain-invalid-hitl-config-auto-approves-tools and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread langchain-invalid-hitl-config-auto-approves-tools
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp