Skip to content

reload_agents reload current_app_name_ref? #4956

@mbao

Description

@mbao

🔴 Required Information

Please ensure all items in this section are completed to allow for efficient
triaging. Requests without complete information may be rejected / deprioritized.
If an item is not applicable to you - please mark it as N/A

Describe the Bug:
A clear and concise description of what the bug is.

Steps to Reproduce:
Please provide a numbered list of steps to reproduce the behavior:

  1. update agent py file

Expected Behavior:
A clear and concise description of what you expected to happen.

the agent that I modified reload

Observed Behavior:
What actually happened? Include error messages or crash stack traces here.

current_app_name_ref agent reloaded, but not the one I modified

Environment Details:

  • ADK Library Version (pip show google-adk):
    1.27.1

  • Desktop OS:** [e.g., macOS, Linux, Windows]
    MacOS

  • Python Version (python -V):
    3.12.12
    Model Information:

  • Are you using LiteLLM: Yes/No
    Yes

  • Which model is being used: (e.g., gemini-2.5-pro)
    qwen-plus

    def setup_observer(observer: Observer, adk_web_server: AdkWebServer):
      agent_change_handler = AgentChangeEventHandler(
          agent_loader=agent_loader,
          runners_to_clean=adk_web_server.runners_to_clean,
          current_app_name_ref=adk_web_server.current_app_name_ref,
      )
      observer.schedule(agent_change_handler, agents_dir, recursive=True)
      observer.start()

Metadata

Metadata

Assignees

Labels

needs review[Status] The PR/issue is awaiting review from the maintainerweb[Component] This issue will be transferred to adk-web

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions