Repository navigation
Bot harnesses take no orders from a run's extra forwarded props - #2073
Merged
Merged
Conversation
The server passes a run's forwarded props on to the Bot as the browser sent them, less its own openbot keys. ag-ui-claude-sdk applies a list of them to Claude Code: resume and fork_session (load another saved conversation), model and fallback_model (a model the organization never allowed), betas, max_turns, max_budget_usd, output_format and the rest. The model endpoint already dropped them; a full Bot now does too. The server's own openbotModel still decides the model.
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 23, 2026 19:45
…reach the framework The server passes a run's forwarded props on as the browser sent them, less its own openbot keys, and three more frameworks obeyed some of the rest. ag-ui-langgraph took nodeName and command: nodeName started the graph past the model, so a call left in the thread ran with the arguments it carried, and command.resume resumed the graph with no conversation. ag_ui_adk and ag_ui_strands took injectA2UITool, which added a generate_a2ui tool and, given a tool's name, took that granted tool away. Each harness now passes no forwarded props on; the ones it uses are read before that.
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Four Bot harnesses no longer pass a run's forwarded props on to their framework: Claude Agent SDK, LangGraph (Python), ADK and Strands. Each reads the props it uses first, then hands the framework none.
Why
The server passes a run's
forwardedPropson to the Bot as the browser sent them, less its ownopenbot*keys. Some frameworks read the rest as orders.Claude Agent SDK (
ag-ui-claude-sdk0.1.5). Its own allowlist already dropsmcp_servers,allowed_tools,permission_mode,cwd,hooks,tools,envandsystem_prompt, so a browser could not add an MCP server or loosen permissions. But the keys on its list reached Claude Code's command line on a full Bot:resume,fork_session,resume_session_at: load another saved conversation in the containermodel,fallback_model: a model the organization never allowed (fallback_modeleven when the server chose the model)betas,max_turns,max_budget_usd,output_format,include_partial_messages,enable_file_checkpointing,strict_mcp_configMeasured on the real harness under uvicorn with a real AG-UI run. Before this change, Claude Code was started with
--resume=another-persons-thread-id --fork-session --resume-session-at=msg-123 --model ... --fallback-model ... --betas ... --max-turns 1 --max-budget-usd 0.01 --json-schema .... After it, none of those flags appear, and--mcp-configholds onlyag_ui. The model endpoint (/model) already dropped them.LangGraph (
ag-ui-langgraph0.0.45).nodeName/node_namestarted the graph past the model. A thread ending in a call the Bot made earlier had that call run with the arguments it carried, and the model was never asked.command.resumeresumed the graph with no conversation.ADK (
ag-ui-adk) and Strands (ag-ui-strands).injectA2UITooladded agenerate_a2uitool that calls the model again. Given a tool's name, it also took that granted tool away from the run.The other harnesses (agno, antigravity, microsoft, ag2, pydantic-ai, llamaindex, langroid, crewai, langgraph-ts, mastra) were checked against their installed framework versions. Nothing they read from these props takes effect today.
Tests
Each harness gets
tests/test_forwarded_props_stay_out.py. Each test fails on main and passes with the fix:nodeName,node_nameorcommand.resumegoes exactly as the same run without them. On main, the call left in the thread ran with "chosen by the sender" arguments and one model call fewer.injectA2UIToolas without it. On main,generate_a2uiwas added, or replaced the granted tool.Full suites, run locally: Claude SDK 160 passed, ADK 35, Strands 22. LangGraph: 192 passed, and the 2 Docker-only provider tests could not run here, with no Docker on this machine.