mirror of
https://github.com/openai/codex.git
synced 2026-11-24 23:22:05 +00:00
Deprecate detached review delivery (#42602)
## What changed - Emit a connection-scoped `deprecationNotice` when `review/start` uses `delivery: "detached"`, including when validation later rejects the request. - Preserve detached review behavior while directing callers to use `thread/start` followed by an inline review for a separate review thread. - Document the deprecation and migration options in the app-server protocol and README. ## Testing - Cover the notice for accepted and rejected detached reviews. - Verify that omitted, null, and inline delivery do not emit the notice. GitOrigin-RevId: 4234a09d2bb7ef8053091580175dc8cbe8d7512c
This commit is contained in:
1 parent
8f31b64c7f
commit
f84c9776dc
11 files changed
+81
-33
No files matched your search
@@ -333,6 +333,17 @@ impl TurnRequestProcessor {
|
||||
request_id: &ConnectionRequestId,
|
||||
params: ReviewStartParams,
|
||||
) -> Result<Option<ClientResponsePayload>, JSONRPCErrorError> {
|
||||
if matches!(params.delivery, Some(ApiReviewDelivery::Detached)) {
|
||||
self.outgoing
|
||||
.send_server_notification_to_connections(
|
||||
&[request_id.connection_id],
|
||||
ServerNotification::DeprecationNotice(DeprecationNoticeNotification {
|
||||
summary: "review/start with delivery \"detached\" is deprecated and will be removed in a future release.".to_string(),
|
||||
details: Some("Use thread/start followed by review/start with delivery \"inline\" for a separate review thread, or thread/fork followed by turn/start with your own review instructions.".to_string()),
|
||||
}),
|
||||
)
|
||||
.await;
|
||||
}
|
||||
self.review_start_inner(request_id, params)
|
||||
.await
|
||||
.map(|()| None)
|
||||
|
||||
Reference in new issue
Block a user