google / google/adk-js

Dev UI raises a spurious "system instructions were modified between consecutive turns" alert for every multi-agent workflow

Open
#735 0 comments 0 reactions 1 assignee Claimed by @Varun-S10 View on GitHub
Dominant language
TypeScript
Stars
1.4k
Forks
205
Avg merge
3d 16h
Merged PRs (30d)
92

Description

> Dev UI issue (prebuilt `adk-web` bundle served by `adk web`) — please transfer to google/adk-web if that is the right home.

The performance check diffs consecutive LLM requests in a session without regard for which agent issued them, so two different agents running one after another in a workflow always trip it. Distinct agents having distinct system instructions is the normal shape of every workflow, not a misconfiguration a developer can fix.

```
cd dev && npx adk web ../samples/workflows/dynamic --port 8123
# app=sequence_route, send "Hello", then click the ⚠ Performance chip on event #4
```

```
Performance Alert: System instructions were modified between consecutive turns in this session.
Preceding Instruction: You are an agent. Your internal name is "city_generator_agent".
Current Instruction: You are an agent. Your internal name is "city_report_agent".
```

Fires on every run of the sample and will fire on essentially every workflow with 2+ LLM agents, training reviewers to ignore a warning that would be meaningful in a single-agent session. The check should compare consecutive requests for the *same* agent, or skip diffs that cross an agent boundary.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.