🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🐛 fix(hetero): forward device exec args (#16935)
AmAzing-0ad9220c87d3
diff --git a/apps/server/src/services/aiAgent/__tests__/execAgent.heteroFiles.test.ts b/apps/server/src/services/aiAgent/__tests__/execAgent.heteroFiles.test.tsindex 1e41820729d..d7841c4f283 100644--- a/apps/server/src/services/aiAgent/__tests__/execAgent.heteroFiles.test.ts+++ b/apps/server/src/services/aiAgent/__tests__/execAgent.heteroFiles.test.ts@@ -348,7 +348,7 @@ describe('AiAgentService.execAgent - hetero early-exit file attachments', () =>);});- it('should not pass selector args to device dispatch without capability gating', async () => {+ it('should pass resolved Claude Code model and effort args to device dispatch', async () => {heteroAgentConfig.agencyConfig = {boundDeviceId: 'device-1',executionTarget: 'device',@@ -366,7 +366,7 @@ describe('AiAgentService.execAgent - hetero early-exit file attachments', () =>const dispatchParams = mockDispatchAgentRun.mock.calls[0][0];expect(dispatchParams).toEqual(expect.objectContaining({ deviceId: 'device-1' }));- expect(dispatchParams).not.toHaveProperty('args');+ expect(dispatchParams.args).toEqual(['--model', 'opus', '--effort', 'high']);});describe('image delivery to the dispatched CLI', () => {diff --git a/apps/server/src/services/aiAgent/index.ts b/apps/server/src/services/aiAgent/index.tsindex 9befbfafdd7..2aca04d767c 100644--- a/apps/server/src/services/aiAgent/index.ts+++ b/apps/server/src/services/aiAgent/index.ts@@ -2018,6 +2018,7 @@ export class AiAgentService {const result = await deviceGateway.dispatchAgentRun({...heteroParams,+ args: heteroExecArgs,cwd: deviceCwd,deviceId: dispatchDeviceId,systemContext: deviceSystemContext,