build(docker): fix agent image build
Agent CI/CD / docker-image (push) Successful in 2m3s
Agent CI/CD / deploy-fallback-log (push) Has been skipped

This commit is contained in:
2026-06-07 17:53:19 +08:00
parent 5020e58b7e
commit 741e39b444
3 changed files with 16 additions and 5 deletions
+11
View File
@@ -167,6 +167,7 @@ export class OpencodeRuntimeAdapter {
"starting opencode server in embedded mode",
);
const startedAt = Date.now();
let runtime;
try {
runtime = await createOpencode({
@@ -186,6 +187,16 @@ export class OpencodeRuntimeAdapter {
throw error;
}
logger.info(
{
elapsedMs: Math.max(0, Date.now() - startedAt),
hostname: config.OPENCODE_HOSTNAME,
port: config.OPENCODE_PORT,
mode: config.OPENCODE_MODE,
},
"opencode server started in embedded mode",
);
this.closeServer = () => {
runtime.server.close();
};