mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-29 15:01:48 +03:00
fix(gateway): hide phantom main agent when agents.list is configured (openclaw#12364) thanks @arosstale
Verified: - pnpm build - pnpm check - pnpm test Co-authored-by: arosstale <117890364+arosstale@users.noreply.github.com> Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
This commit is contained in:
@@ -14,6 +14,7 @@ Docs: https://docs.openclaw.ai
|
|||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
|
|
||||||
|
- Gateway/Agents: stop injecting a phantom `main` agent into gateway agent listings when `agents.list` explicitly excludes it. (#11450) Thanks @arosstale.
|
||||||
- Agents/Heartbeat: stop auto-creating `HEARTBEAT.md` during workspace bootstrap so missing files continue to run heartbeat as documented. (#11766) Thanks @shadril238.
|
- Agents/Heartbeat: stop auto-creating `HEARTBEAT.md` during workspace bootstrap so missing files continue to run heartbeat as documented. (#11766) Thanks @shadril238.
|
||||||
- Telegram: cap bot menu registration to Telegram's 100-command limit with an overflow warning while keeping typed hidden commands available. (#15844) Thanks @battman21.
|
- Telegram: cap bot menu registration to Telegram's 100-command limit with an overflow warning while keeping typed hidden commands available. (#15844) Thanks @battman21.
|
||||||
- CLI: lazily load outbound provider dependencies and remove forced success-path exits so commands terminate naturally without killing intentional long-running foreground actions. (#12906) Thanks @DrCrinkle.
|
- CLI: lazily load outbound provider dependencies and remove forced success-path exits so commands terminate naturally without killing intentional long-running foreground actions. (#12906) Thanks @DrCrinkle.
|
||||||
|
|||||||
@@ -394,7 +394,7 @@ export function listAgentsForGateway(cfg: OpenClawConfig): {
|
|||||||
let agentIds = listConfiguredAgentIds(cfg).filter((id) =>
|
let agentIds = listConfiguredAgentIds(cfg).filter((id) =>
|
||||||
allowedIds ? allowedIds.has(id) : true,
|
allowedIds ? allowedIds.has(id) : true,
|
||||||
);
|
);
|
||||||
if (mainKey && !agentIds.includes(mainKey)) {
|
if (mainKey && !agentIds.includes(mainKey) && (!allowedIds || allowedIds.has(mainKey))) {
|
||||||
agentIds = [...agentIds, mainKey];
|
agentIds = [...agentIds, mainKey];
|
||||||
}
|
}
|
||||||
const agents = agentIds.map((id) => {
|
const agents = agentIds.map((id) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user