The user hit this during acceptance test G3: "agent returned 400 Bad Request for demo-seed" when adding only the PLC pump station.
Cause:POST /api/v1/targets/demo-seed selects by manifest key (plc-pump-station), and DemoTargetSummary lists both key and name. The dashboard's DemoSeedTarget had no key field, so it selected by the display name ("Demo · PLC pump station …"). The agent answered UnknownKeys, a 400, for every selection. The test's manifest used keys as names, so it never caught the mismatch.
Fix:
DemoSeedTarget gains key, and the selection, the default selection and the row toggle use it. The display name is only shown.
The test now uses the agent's real shape: a key and a display name.
Checks: clippy with the CI flags on both dashboard feature sets; tests 63 + 46.
The user hit this during acceptance test G3: *"agent returned 400 Bad Request for demo-seed"* when adding only the PLC pump station.
**Cause:** `POST /api/v1/targets/demo-seed` selects by **manifest key** (`plc-pump-station`), and `DemoTargetSummary` lists both `key` and `name`. The dashboard's `DemoSeedTarget` had no `key` field, so it selected by the display name ("Demo · PLC pump station …"). The agent answered `UnknownKeys`, a 400, for every selection. The test's manifest used keys as names, so it never caught the mismatch.
**Fix:**
- `DemoSeedTarget` gains `key`, and the selection, the default selection and the row toggle use it. The display name is only shown.
- The test now uses the agent's real shape: a key and a display name.
**Checks:** clippy with the CI flags on both dashboard feature sets; tests 63 + 46.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
"Demo-Prüfobjekte hinzufügen" answered "agent returned 400 Bad Request for
demo-seed" for every selection: the dashboard sent the targets' display
names ("Demo · PLC pump station …"), and the agent selects by manifest key
("plc-pump-station"), so it rejected them as unknown. The dashboard now
reads the key the agent lists and selects by it; the display name is only
shown. The test's manifest now has the agent's real shape (key and name),
which is why it did not catch this.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang
merged commit d4bfb4dc2a into main2026-09-28 21:23:49 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The user hit this during acceptance test G3: "agent returned 400 Bad Request for demo-seed" when adding only the PLC pump station.
Cause:
POST /api/v1/targets/demo-seedselects by manifest key (plc-pump-station), andDemoTargetSummarylists bothkeyandname. The dashboard'sDemoSeedTargethad nokeyfield, so it selected by the display name ("Demo · PLC pump station …"). The agent answeredUnknownKeys, a 400, for every selection. The test's manifest used keys as names, so it never caught the mismatch.Fix:
DemoSeedTargetgainskey, and the selection, the default selection and the row toggle use it. The display name is only shown.Checks: clippy with the CI flags on both dashboard feature sets; tests 63 + 46.
🤖 Generated with Claude Code
https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
"Demo-Prüfobjekte hinzufügen" answered "agent returned 400 Bad Request for demo-seed" for every selection: the dashboard sent the targets' display names ("Demo · PLC pump station …"), and the agent selects by manifest key ("plc-pump-station"), so it rejected them as unknown. The dashboard now reads the key the agent lists and selects by it; the display name is only shown. The test's manifest now has the agent's real shape (key and name), which is why it did not catch this. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p