Agent allow-list not enforced correctly mid-session: presets enabled after session start are visible in agent_availability but rejected by call_agent
Bug report
Severity: warning
Category: code-bug
Service: chat / multi-agent
What happened
When a user enables agent presets mid-session via the chat HUD agent picker, the updated allow-list is injected into the next turn via the agent_availability system-reminder block — the newly enabled presets appear with their preset IDs and descriptions. However, calling call_agent with those preset IDs fails with:
Error: preset "<id>" is not allow-listed for this project. Run list_agents to see available ids, or ask the user to enable it from the chat HUD agent picker.
Additionally, list_agents returns an empty list throughout the same session, even after multiple turns following the user enabling presets.
Steps to reproduce
- Start a new chat with no agent presets allow-listed for the project.
- During the chat, the user enables one or more presets via the HUD agent picker.
- On the next turn,
agent_availabilityinjection correctly shows the newly enabled presets with their IDs. - Call
list_agents— returns empty. - Call
call_agentwith a preset ID from theagent_availabilityinjection — returns the error above.
Expected behaviour
Presets enabled mid-session should become callable via call_agent in the same session. At minimum, list_agents should reflect the current allow-list state.
Actual behaviour
list_agents returns empty. call_agent rejects the preset as not allow-listed. The agent_availability injection and the runtime enforcement are out of sync.
Workaround
Starting a fresh chat after enabling presets resolves the issue — the allow-list is read correctly at session start.
Context
- Session: project "memory" (/storage/projects/memory)
- Presets affected: Board Curator (jn7a9c2fmr2f09v5vv35v8csn5868h4v), Wiki Curator (jn77bt8qmw81jjs9d9yx9kjd0s868b4h)
- The
agent_availabilityinjection listed 23 presets correctly;list_agentsreturned 0;call_agentrejected all of them - Date: 2026-05-10
Additional note
The report_issue tool specified in the system prompt for bug reporting is not registered in this environment (not found in deferred tool list). Filing via GitHub as fallback.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗