feat: apply agent profile settings atomically

This commit is contained in:
Federico Jaramillo Martinez
2026-07-14 00:11:39 +02:00
parent adc2e297a4
commit 8b5ccc2fd9
33 changed files with 794 additions and 163 deletions
+5
View File
@@ -11,6 +11,7 @@ export const PI_WEB_CAPABILITIES = {
workspaceFileSuggestions: "workspace.fileSuggestions",
piPackagesManage: "piPackages.manage",
selectedMachineSettings: "settings.selectedMachine",
agentProfileConfig: "settings.agentProfile",
} as const;
export type PiWebCapability = typeof PI_WEB_CAPABILITIES[keyof typeof PI_WEB_CAPABILITIES];
@@ -149,6 +150,8 @@ export interface PiPackageMutationResponse extends PiPackagesResponse {
removed?: boolean;
}
export type PiWebAgentDirEnvSource = "pi-web" | "pi-compatibility";
export interface PiWebConfigEnvOverrides {
host: boolean;
port: boolean;
@@ -157,6 +160,8 @@ export interface PiWebConfigEnvOverrides {
subsessions: boolean;
agentCommand: boolean;
agentDir: boolean;
/** The configured directory environment source, even when Pi compatibility is inactive for the desired command. */
agentDirSource?: PiWebAgentDirEnvSource;
agentSessionDir: boolean;
}