fix(server): stop waiting for plugins in request handlers (#62796)

This commit is contained in:
Aiden Cline
2026-11-08 22:04:17 -06:00
committed by GitHub
Unverified
parent adb0053d09
commit bcaf561d94
31 changed files with 224 additions and 186 deletions
-20
View File
@@ -345,16 +345,6 @@
}
}
}
},
"503": {
"description": "ServiceUnavailableError",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ServiceUnavailableErrorEncoded"
}
}
}
}
},
"description": "Retrieve currently registered agents.",
@@ -9955,16 +9945,6 @@
}
}
}
},
"503": {
"description": "ServiceUnavailableError",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ServiceUnavailableErrorEncoded"
}
}
}
}
},
"description": "Retrieve currently registered skills.",
+1 -2
View File
@@ -3,14 +3,13 @@ import { Location } from "@opencode/schema/location"
import { Schema } from "effect"
import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/http-api"
import { LocationQuery, locationQueryOpenApi } from "./location.js"
import { AgentNotFoundError, ServiceUnavailableError } from "../errors.js"
import { AgentNotFoundError } from "../errors.js"
export const AgentGroup = HttpApiGroup.make("server.agent")
.add(
HttpApiEndpoint.get("agent.list", "/api/agent", {
query: LocationQuery,
success: Location.response(Schema.Array(Agent.Info)),
error: ServiceUnavailableError,
})
.annotateMerge(locationQueryOpenApi)
.annotateMerge(
-2
View File
@@ -2,7 +2,6 @@ import { Skill } from "@opencode/schema/skill"
import { Location } from "@opencode/schema/location"
import { Schema } from "effect"
import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/http-api"
import { ServiceUnavailableError } from "../errors.js"
import { LocationQuery, locationQueryOpenApi } from "./location.js"
export const SkillGroup = HttpApiGroup.make("server.skill")
@@ -10,7 +9,6 @@ export const SkillGroup = HttpApiGroup.make("server.skill")
HttpApiEndpoint.get("skill.list", "/api/skill", {
query: LocationQuery,
success: Location.response(Schema.Array(Skill.Info)),
error: ServiceUnavailableError,
})
.annotateMerge(locationQueryOpenApi)
.annotateMerge(