Skip to content

dev: Agent Inspector never shows the Local/Deployed switch for deployed runtimes (regression from 0.19) #2752

Open

Description

@orangewise

Description

In agentcore dev --mode browser, the Agent Inspector always shows "Local only" for a runtime, also when the runtime is deployed. The Local/Deployed switch does not show, so you cannot invoke the deployed runtime from the Inspector.

This worked in CLI 0.19.0. It is a regression in 1.0.

The bundled Inspector UI shows the switch only when the agent has deploymentStatus === "deployed". The dev server in 1.0.1 does not send this field:

  1. GET /api/resources (handleResources in dist/main.js) builds agents from the project spec only. It never adds deploymentStatus, deployed, or invocationUrl.
  2. POST /invocations (handleInvocations) only forwards to a locally running agent. It has no path to a deployed runtime.

In CLI 0.19.0, the dev server (dist/cli/index.mjs) sends deploymentStatus, deployed, and invocationUrl for agents, harnesses, and memories.

This is the same gap as #2735, which reports it for memories.

Steps to Reproduce

  1. agentcore create --name PocAgent --template agent-python-strands
  2. Add a target to agentcore/aws-targets.json.
  3. agentcore deploy
  4. agentcore invoke --runtime PocAgent --payload '{"prompt": "hi"}' (this works)
  5. agentcore dev --mode browser

Expected Behavior

The Inspector shows the Local/Deployed switch for PocAgent, and "Deployed" invokes the deployed runtime, as in CLI 0.19.0.

Actual Behavior

The Inspector shows the badge "Local only" with the tooltip "This agent is not deployed. Run 'agentcore deploy' to deploy your project resources in your AWS account."

CLI Version

1.0.1

Operating System

macOS

Additional Context

  • Build type CodeZip, runtime PYTHON_3_14, protocol HTTP, no memory.
  • Possible fix: in dev, resolve runtimes against the target's deployed state (as agentcore status does via resolveProjectResources), set deploymentStatus in /api/resources, and route "Deployed" invocations to InvokeAgentRuntime.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions