pub struct MetadataUpdateClientMetadataRequest {
pub clear: Option<bool>,
pub remove: Option<Vec<String>>,
pub set: Option<HashMap<String, String>>,
}Expand description
Atomic patch for client-owned session metadata. Operations apply in clear, remove, then set order. The resulting bag must satisfy the ClientMetadata entry and serialized-size limits. Local storage coordinates concurrent runtime processes; custom SessionFs providers must serialize writers that access the same session from multiple processes.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§clear: Option<bool>Remove every existing client metadata entry before applying remove and set. Defaults to false.
remove: Option<Vec<String>>Case-sensitive keys to remove. Missing keys are ignored. Each key must be non-empty, at most 256 UTF-8 bytes, and outside the reserved copilot/ and github/ namespaces.
set: Option<HashMap<String, String>>String entries to add or replace. Set wins when a key also appears in remove. Each key must be non-empty, at most 256 UTF-8 bytes, and outside the reserved copilot/ and github/ namespaces. Each value may contain at most 16 KiB of UTF-8 data.