stub out IDs for now

This commit is contained in:
Owen Lin
2025-11-13 14:09:14 -08:00
parent 6ff6d9f5f7
commit f946f2b3bb
2 changed files with 10 additions and 10 deletions
@@ -428,14 +428,14 @@ impl TryFrom<JSONRPCRequest> for ServerRequest {
server_request_definitions! {
/// NEW APIs
/// Sent when approval is requested for a specific command execution.
/// This request is used when calling turn/start instead of the legacy APIs (i.e. SendUserTurn, SendUserMessage).
/// This request is used for Turns started via turn/start.
CommandExecutionRequestApproval => "item/commandExecution/requestApproval" {
params: v2::CommandExecutionRequestApprovalParams,
response: v2::CommandExecutionRequestApprovalResponse,
},
/// Sent when approval is requested for a specific file change.
/// This request is used when calling turn/start instead of the legacy APIs (i.e. SendUserTurn, SendUserMessage).
/// This request is used for Turns started via turn/start.
FileChangeRequestApproval => "item/fileChange/requestApproval" {
params: v2::FileChangeRequestApprovalParams,
response: v2::FileChangeRequestApprovalResponse,
@@ -443,13 +443,13 @@ server_request_definitions! {
/// DEPRECATED APIs below
/// Request to approve a patch.
/// This request is used only when calling the legacy APIs (i.e. SendUserTurn, SendUserMessage).
/// This request is used for Turns started via the legacy APIs (i.e. SendUserTurn, SendUserMessage).
ApplyPatchApproval {
params: v1::ApplyPatchApprovalParams,
response: v1::ApplyPatchApprovalResponse,
},
/// Request to exec a command.
/// This request is used only when calling the legacy APIs (i.e. SendUserTurn, SendUserMessage).
/// This request is used for Turns started via the legacy APIs (i.e. SendUserTurn, SendUserMessage).
ExecCommandApproval {
params: v1::ExecCommandApprovalParams,
response: v1::ExecCommandApprovalResponse,
@@ -2696,7 +2696,6 @@ async fn apply_bespoke_event_handling(
});
}
ApiVersion::V2 => {
let item_id = call_id.clone();
let request = FileChangeRequest {
call_id,
file_changes: changes
@@ -2708,8 +2707,9 @@ async fn apply_bespoke_event_handling(
};
let params = FileChangeRequestApprovalParams {
thread_id: conversation_id.to_string(),
turn_id: event_id.clone(),
item_id,
// TODO: use the actual IDs once we have them
turn_id: "placeholder_turn_id".to_string(),
item_id: "placeholder_item_id".to_string(),
request,
};
let rx = outgoing
@@ -2746,7 +2746,6 @@ async fn apply_bespoke_event_handling(
});
}
ApiVersion::V2 => {
let item_id = call_id.clone();
let request = CommandExecutionRequest {
call_id,
command,
@@ -2757,8 +2756,9 @@ async fn apply_bespoke_event_handling(
};
let params = CommandExecutionRequestApprovalParams {
thread_id: conversation_id.to_string(),
turn_id: event_id.clone(),
item_id,
// TODO: use the actual IDs once we have them
turn_id: "placeholder_turn_id".to_string(),
item_id: "placeholder_item_id".to_string(),
request,
};
let rx = outgoing