fix(agent): warm up opencode on startup
Agent CI/CD / docker-image (push) Successful in 1m59s
Agent CI/CD / deploy-fallback-log (push) Has been skipped

This commit is contained in:
2026-06-08 20:19:46 +08:00
parent 8ed73b1da6
commit 873c169c2c
3 changed files with 53 additions and 1 deletions
+4 -1
View File
@@ -50,7 +50,10 @@ export class OpencodeRuntimeAdapter {
async ensureClient(): Promise<OpencodeClient> {
if (!this.clientPromise) {
this.clientPromise = this.bootstrapClient();
this.clientPromise = this.bootstrapClient().catch((error) => {
this.clientPromise = null;
throw error;
});
}
return this.clientPromise;
}