fix(agent): warm up opencode on startup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user