Describe the bug
When running agentcore invoke with the --dev flag, headers are not passed along to the dev mode server. Is there a reason for this?
To Reproduce
Steps to reproduce the behavior:
Create an agent and try to load in a custom header
req_headers = getattr(context, 'request_headers', None) or {}
custom_value = req_headers.get("x-amzn-bedrock-agentcore-runtime-custom-value")
Start the agent in development mode
Invoke the agent in dev mode
uv run agentcore invoke --dev "Do something useful" --headers "value:awesome"
Expected behavior
custom_value should have the value awesome
Error Output
custom_value is empty
Additional context
Example fix here: https://github.com/gopangea/bedrock-agentcore-starter-toolkit/tree/tl-allow-custom-headers-in-dev-mode
Describe the bug
When running
agentcore invokewith the --dev flag, headers are not passed along to the dev mode server. Is there a reason for this?To Reproduce
Steps to reproduce the behavior:
Create an agent and try to load in a custom header
Start the agent in development mode
Invoke the agent in dev mode
Expected behavior
custom_valueshould have the value awesomeError Output
custom_valueis emptyAdditional context
Example fix here: https://github.com/gopangea/bedrock-agentcore-starter-toolkit/tree/tl-allow-custom-headers-in-dev-mode