From 49ad47cf5903dec06db5f1c6c23eff42f4b582fb Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 8 Mar 2026 03:07:42 -0700 Subject: [PATCH] fix(agent): non-null assertion for serverHost/sshUser in deployToUserServer Co-Authored-By: Claude Sonnet 4.6 --- .../infrastructure/services/agent-instance-deploy.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/services/agent-service/src/infrastructure/services/agent-instance-deploy.service.ts b/packages/services/agent-service/src/infrastructure/services/agent-instance-deploy.service.ts index 3431730..99e24c0 100644 --- a/packages/services/agent-service/src/infrastructure/services/agent-instance-deploy.service.ts +++ b/packages/services/agent-service/src/infrastructure/services/agent-instance-deploy.service.ts @@ -69,9 +69,9 @@ export class AgentInstanceDeployService { ): Promise { const creds: PoolServerCreds = { id: '', - host: instance.serverHost, + host: instance.serverHost!, sshPort: instance.sshPort, - sshUser: instance.sshUser, + sshUser: instance.sshUser!, sshKey, }; const hostPort = await this.allocatePort(creds.host);