Forward install attempt IDs for remote plugins (#37773)

## Why

Clients need to correlate a remote plugin installation request with a specific
installation attempt.

## What changed

- Add the optional `installAttemptId` field to `PluginInstallParams`.
- Forward the value as `install_attempt_id` in the remote plugin install POST
  body.
- Preserve the existing empty request body when the field is omitted.

## Testing

- Cover protocol serialization and remote install request bodies with and
  without an attempt ID.

GitOrigin-RevId: ffdceff4f9329b650848e6428a9ba39646c242c3
This commit is contained in:
kylepatel-oai authored and copyberry committed 2026-08-10 03:28:19 +00:00
1 parent c9c6c0daa9
commit 89a335ed50
16 files changed
+186 -11

No files matched your search

@@ -2118,6 +2118,7 @@ mod tests {
params: v2::PluginInstallParams {
marketplace_path: Some(absolute_path("/tmp/marketplace")),
remote_marketplace_name: None,
install_attempt_id: None,
plugin_name: "plugin-a".to_string(),
},
};