VideoContentBlock not supported in OpenAI block translator
The OpenAI block translator in langchain-core does not handle VideoContentBlock, causing a ValueError when sending video content blocks to OpenAI-compatible models via langchain-openai.

LangChain
Published reports for this stack, with severity, affected version, and a direct path into each diagnostic.
The OpenAI block translator in langchain-core does not handle VideoContentBlock, causing a ValueError when sending video content blocks to OpenAI-compatible models via langchain-openai.
The splitter fails to extract media URLs from nested <source> elements inside <video> and <audio> tags, resulting in empty Markdown links when preserve_videos or preserve_audio is enabled. This causes data loss for common HTML media patterns.
langchain.agents.create_agent's type annotations hardcode AgentState[ResponseT] for the state_schema parameter and return type, erasing the specific subclass passed by the user and causing type mismatch errors for downstream code.
When using ChatOpenAI with with_structured_output and streaming=True, LangChain emits a UserWarning from Pydantic during serialization of an AIMessageChunk. The warning indicates that the 'parsed' field contains a BaseModel instance while the field type expects None. The output is still produced correctly, but the warning pollutes logs and indicates a type mismatch in the streaming path.
ChatOllama lacks a constructor-level max_retries field. Although Pydantic accepts the extra keyword, it is not retained as a model field and is not used to configure retry behavior in the underlying Ollama HTTP client. This prevents provider-agnostic retry configuration from being applied to Ollama requests.
The issue tracks the need to hold integration package releases until langchain-tests is released, because the stricter standard tests depend on updated provider profiles. Releasing in the wrong order can cause users to encounter incompatible standard tests.
When a prompt template contains partial variables, pretty_repr() formats the template with dummy variables only for input_variables, causing the real partial values to be substituted and exposed in the output. This breaks the expectation that pretty_repr() shows the original template structure.
Two unit tests in langchain-core (test_convert_to_openai_function_nested_v2 and test_sync_in_sync_lambdas) are decorated with @pytest.mark.xfail even though the underlying issues have been fixed. Running pytest reports XPASS (unexpectedly passing) for both tests. The stale markers should be removed to ensure test suite reflects current expected behavior and future regressions are not silently swallowed as XFAIL.
The unit test test_mset_chmod in tests/unit_tests/storage/test_filesystem.py fails on Windows because Windows does not support POSIX-style group and other chmod permission bits, causing assertion mismatches for modes 0o770 and 0o700.
The legacy Qdrant class overrides similarity_search_with_relevance_scores and asimilarity_search_with_relevance_scores to return raw distance scores, bypassing the base VectorStore normalization pipeline. Removing these overrides restores correct [0,1] relevance scores.
The FilesystemFileSearchMiddleware incorrectly rejects any path containing two consecutive dots, blocking valid directory names like 'src..old'. This causes glob searches over legitimate files to return no results. A component-wise traversal check fixes the issue while preserving security.
When using custom header patterns (e.g., **, ***) and strip_headers=False, nested custom headers are split into separate chunks instead of being merged into a single chunk like standard Markdown headers. This creates a header-only chunk for the parent header, which can degrade downstream processing.
ChatDeepSeek with response_format=json_object streams reasoning_content as one aggregated chunk because langchain-openai uses the beta streaming helper when response_format is present, which buffers the full response.
`langchain-model-profiles` CLI `refresh` performs global string replacements (`true`->`True`, `false`->`False`, `null`->`None`) on a `json.dumps` result, corrupting quoted JSON keys and values that contain those substrings. The generated `_profiles.py` still imports successfully but with silently altered profile data.
`_ConfigurableModel.batch_as_completed` and `abatch_as_completed` incorrectly reject singleton tuple configs, causing an AttributeError despite the annotated `Sequence[RunnableConfig]` contract. The code checks only for `list`, not the abstract `Sequence`, so non-list sequences are passed to `ensure_config` unnormalized.
ImagePromptValue is marked serializable and dumps() succeeds, but loads() fails because the class is absent from both deserialization allowlists (legacy langchain and langchain_core namespaces) in langchain_core/load/mapping.py. Its three sibling prompt values all round-trip correctly.
RunnableParallel.get_input_schema merges step input schemas but fails to exclude the Pydantic v2 root model synthetic field 'root', causing the returned schema to reject every valid input that invoke accepts when any step is RunnablePassthrough or unannotated RunnableLambda.
`create_image_block` in langchain-core accepts base64 data without a `mime_type`, unlike its siblings `create_video_block`, `create_audio_block`, and `create_file_block`. This produces blocks that cannot be converted to valid provider payloads and violates the function's documented contract.
In `_MultiModalMessagePromptTemplate.aformat`, the `DictPromptTemplate` branch incorrectly calls the synchronous `format()` instead of awaiting `aformat()`. This means any subclass overriding `aformat` is silently bypassed on the async path, breaking consistency with the sibling `StringPromptTemplate` and `ImagePromptTemplate` branches which correctly await their async variants.
Static type checking fails for create_agent when a heterogeneous list of middleware objects with different state_schema types is combined with an explicit state_schema argument. Runtime behavior works correctly, but type inference collapses all middleware to AgentMiddleware[AgentState, ...], causing `no-matching-overload` errors.
langchain-openai's `_create_usage_metadata` only extracts known keys (`audio`, `cached_tokens`, `reasoning_tokens`) from `prompt_tokens_details` and `completion_tokens_details`, causing provider-specific fields like `text_tokens`, `accepted_prediction_tokens`, and `rejected_prediction_tokens` to be silently lost.
In langchain-core, `merge_configs` calls `ensure_config` on each input, which injects `DEFAULT_RECURSION_LIMIT = 25` when absent. This makes an explicitly provided `recursion_limit=25` indistinguishable from the injected default, causing it to be silently removed from the merged config.
On Windows, FilesystemFileSearchMiddleware returns virtual paths containing native backslashes (e.g., '/src\\nested\\example.py') instead of the contract's forward-slash format, causing inconsistent and non-portable tool outputs.
On Windows, path validation in FilesystemClaudeTextEditorMiddleware and FilesystemClaudeMemoryMiddleware rejects valid nested virtual paths due to backslash vs forward slash mismatch in allowed_prefixes comparison.
Three security regression tests in langchain-core's prompt loading tests unconditionally create symlinks, causing OSError [WinError 1314] on default Windows environments. This makes the core test suite fail for contributors without elevated privileges or Developer Mode, and the suite has no Windows CI to catch it.
The max_length parameter is not applied when using the lightweight 'sentencizer' pipeline, causing spaCy's default limit of 1,000,000 characters to be used instead of the user-specified limit.
ChatDeepSeek only overrides sync `_generate` and `_stream` to translate `JSONDecodeError` from the OpenAI SDK into a DeepSeek-specific message. The inherited async `_agenerate` and `_astream` are not wrapped, so async callers still receive the opaque `json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)`.
The parse_json_markdown function in langchain_core.utils.json uses a case-sensitive regex to identify fenced code blocks, causing parsing failures when models output fences with uppercase 'JSON' or 'Json'. This affects users of JsonOutputParser and other utilities relying on this function.
MarkdownHeaderTextSplitter incorrectly includes CommonMark optional closing hash sequences in header metadata values, e.g. '# Title ##' yields metadata 'Title ##' instead of 'Title'. This breaks filtering and grouping by header.
When a piece cannot be split further because no separators remain, it is appended directly to the output without applying strip_whitespace, causing inconsistent leading/trailing whitespace compared to merged chunks.