Repository navigation
fix(runtime): bug bash fixes for V2 warmup hooks in dev, add runtime, and templates - #2918
Merged
jariy17 merged 1 commit intoNov 25, 2026
Merged
Conversation
… and templates - dev: for MCP, any GET /ping response but 502 or 429 counts as ready, as on AgentCore Runtime; a hook path without a leading "/" fails with a clear message; a Python CodeZip hook on its own port warns and names the cause; headless dev refuses CodeZip agents whose hooks share an own port. - add runtime and dev warn when hooksConfiguration has no camelCase build.warmup.action.httpPost.path. The schema stays loose. - --platform-version help and the runtime READMEs no longer name V1 as the service default. - Runtime READMEs and AGENTS.md explain how each protocol serves the warmup hook and that the SDK version must support it. - BMA template: POST /warmup keeps the Codex and CloudWatch agent binaries in memory in the V2 snapshot and warms their start-up files; the README shows how to enable it. BMA's profile is unchanged.
jariy17
approved these changes
Nov 25, 2026
3 tasks done
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.
Description
Fixes from the 2026-11-25 release bug bash for platform version V2 warmup hooks, plus a warmup hook for the BMA template.
dev(F-tj-C31, defect feat: add cursor movement and editing shortcuts to text inputs #7). For MCP,devnow treats anyGET /pingresponse except 502 or 429 as ready, as AgentCore Runtime does (/pingis optional for MCP). Before, a FastMCP agent with a warmup hook waited 120 s on ~480/ping404s and failed. HTTP, AG-UI and A2A still need Healthy. A2A'sPOST /warmup404 in C31 came from the template not serving the route; the docs now cover it./(F-tj-C29, defect feat: Add tree-style summary display for agent and project creation #4).devfails before starting the agent withhas warmup hook path "warmup", which must start with "/", instead ofFailed to parse URL from http://127.0.0.1:8080warmup. Other path, port and size rules are still left to the service.hooksConfiguration(F-tj-C28, defect feat: testing fixes as well as refactoring test organization and to use npm & tsx #3). The schema stays loose so new service fields pass through.add runtimeanddevnow warn whenhooksConfigurationhas no camelCasebuild.warmup.action.httpPost.path: PascalCase keys and typos likewarmUp, whichdevused to skip silently. If you'd rather go back to strict schemas so these fail ataddlike s3BucketMount, that's a small change.HookConfig(port=…)(F-tj-C30, defect fix: fix secret input UI #5).devruns these under uvicorn, where the SDK doesn't serve hook ports.devnow warns at start and adds the cause and fix to the startup error, instead of only "did not accept connections within 120s".devrefuses to start them together and names the agents and the port. The Inspector warns, since it starts agents one at a time.--platform-versionhelp and the runtime READMEs no longer say V1 is the service default: it depends on the account.bedrock-agentcoreversion must have@app.warmup/warmupHook. Both AGENTS.md files point coding agents at it.POST /warmup: thememorycall keeps the Codex and CloudWatch agent binaries in memory in the V2 snapshot (about 520 MiB, mapped once), and thediskcall starts each once. No process keeps running, so sessions share no random state. BMA's README shows how to turn it on (platformVersion: V2plushooksConfiguration). BMA's profile is unchanged, so existing and new BMA projects behave the same until the hook is configured.Related Issue
No issue: fixes for the bug bash findings F-tj-C28, F-tj-C29, F-tj-C30, F-tj-C31, F-tj-C41 and F-visomasu-C42 on the 2026-11-25 release bug bash page.
Constructs PR: aws/agentcore-l3-cdk-constructs#492
Documentation PR
Documentation is included here (runtime READMEs, AGENTS.md, BMA README).
Type of Change
Testing
How have you tested the change?
bun test(5161 pass, 6 skip)bun run test:e2e, or explained why they are not applicable(CI does not run them for you): not run; covered by the bug bash cases and the manual runs below
bun run typecheckbun run lint:checkbun run format:checkbun run auditbun run secrets:checkbun run buildsrc/assets/, I updated affected snapshots withbun test <test-file> --update-snapshotsand committed them (no snapshot changes)by this PR (none re-recorded)
command.md(the release workflow regenerates it)New tests:
src/core/dev/readiness.test.ts: MCP readiness on a 404, 502 and 429 keep it waiting, a path without/is refused, the uvicorn hint for a Python CodeZip own-port hook, the hooks warning for PascalCase keys, awarmUptypo and a missing warmup (and none for a recognized hook, no hooks or{}), shared own hook ports, and the hint added to a startup failure.src/handlers/project/dev/index.test.ts:dev --agentwarns on PascalCase hooks; headlessdevrefuses CodeZip agents sharing a hook port before starting any.src/handlers/project/add/runtime/index.test.ts:add runtimewarns on PascalCase hooks and still adds them; no warning for a recognized hook.src/core/project/templates/bedrockManagedAgents.test.ts: the BMA server serves/warmup.Manual, with the bash build's bundled constructs, in ap-southeast-2:
dev --agenton the mcp-python-fastmcp template with V2 and a/warmupcustom route: ready after one/ping404, both warmup calls succeed.codex --versiontook 5-7 ms (0.3-3.4 s without the hook) and the CloudWatch agent's-version44-62 ms (3.4-9.2 s without).Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.