Skip to content

fix(runtime): bug bash fixes for V2 warmup hooks in dev, add runtime, and templates - #2918

Merged
jariy17 merged 1 commit into
aws:release/2026-11-25from
vigneshsundar1997:fix/v2-bug-bash
Nov 25, 2026
Merged

jariy17 merged 1 commit into
aws:release/2026-11-25from
vigneshsundar1997:fix/v2-bug-bash

Conversation

@vigneshsundar1997

@vigneshsundar1997 vigneshsundar1997 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Description

Fixes from the 2026-11-25 release bug bash for platform version V2 warmup hooks, plus a warmup hook for the BMA template.

  • MCP readiness in dev (F-tj-C31, defect feat: add cursor movement and editing shortcuts to text inputs #7). For MCP, dev now treats any GET /ping response except 502 or 429 as ready, as AgentCore Runtime does (/ping is optional for MCP). Before, a FastMCP agent with a warmup hook waited 120 s on ~480 /ping 404s and failed. HTTP, AG-UI and A2A still need Healthy. A2A's POST /warmup 404 in C31 came from the template not serving the route; the docs now cover it.
  • Hook path without a leading / (F-tj-C29, defect feat: Add tree-style summary display for agent and project creation #4). dev fails before starting the agent with has warmup hook path "warmup", which must start with "/", instead of Failed to parse URL from http://127.0.0.1:8080warmup. Other path, port and size rules are still left to the service.
  • Unrecognized 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 runtime and dev now warn when hooksConfiguration has no camelCase build.warmup.action.httpPost.path: PascalCase keys and typos like warmUp, which dev used to skip silently. If you'd rather go back to strict schemas so these fail at add like s3BucketMount, that's a small change.
  • Python CodeZip with HookConfig(port=…) (F-tj-C30, defect fix: fix secret input UI #5). dev runs these under uvicorn, where the SDK doesn't serve hook ports. dev now warns at start and adds the cause and fix to the startup error, instead of only "did not accept connections within 120s".
  • Two CodeZip agents with the same own hook port (F-tj-C41, defect refactor: remove shell mode #6). Headless dev refuses to start them together and names the agents and the port. The Inspector warns, since it starts agents one at a time.
  • Platform version default. --platform-version help and the runtime READMEs no longer say V1 is the service default: it depends on the account.
  • Runtime docs (C42, defect fix: improve TUI initial screen based on project state #10). The V2 section of the Python and TypeScript READMEs says how the agent serves the hook (the warmup-type header, memory then disk, 2xx when done), how each protocol adds the route and which routes it can't use, and that the bedrock-agentcore version must have @app.warmup / warmupHook. Both AGENTS.md files point coding agents at it.
  • BMA warmup hook. BMA's lifecycle server now serves POST /warmup: the memory call keeps the Codex and CloudWatch agent binaries in memory in the V2 snapshot (about 520 MiB, mapped once), and the disk call starts each once. No process keeps running, so sessions share no random state. BMA's README shows how to turn it on (platformVersion: V2 plus hooksConfiguration). 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

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other (please describe):

Testing

How have you tested the change?

  • I ran bun test (5161 pass, 6 skip)
  • I ran the relevant end-to-end tests with 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
  • I ran bun run typecheck
  • I ran bun run lint:check
  • I ran bun run format:check
  • I ran bun run audit
  • I ran bun run secrets:check
  • I ran bun run build
  • If I modified src/assets/, I updated affected snapshots with bun test <test-file> --update-snapshots and committed them (no snapshot changes)
  • If I re-recorded fixtures or golden files, every change beyond account identifiers is explained
    by this PR (none re-recorded)
  • This PR does not change 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, a warmUp typo 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 --agent warns on PascalCase hooks; headless dev refuses CodeZip agents sharing a hook port before starting any.
  • src/handlers/project/add/runtime/index.test.ts: add runtime warns 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 --agent on the mcp-python-fastmcp template with V2 and a /warmup custom route: ready after one /ping 404, both warmup calls succeed.
  • READMEs rendered for HTTP, MCP, A2A and AG-UI (Python) and MCP (TypeScript), no unrendered tags.
  • BMA template with V2 and the hook, deployed: memory call 0.03 s, disk call 0.05 s. In 3 new sessions, the first codex --version took 5-7 ms (0.3-3.4 s without the hook) and the CloudWatch agent's -version 44-62 ms (3.4-9.2 s without).

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.

… 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
jariy17 merged commit 0728529 into aws:release/2026-11-25 Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants