@@ -29,16 +29,16 @@ export function isPiSupportedProvider(providerId: string): providerId is PiSuppo
2929
3030/**
3131 * Whether a Pi block mode hands the model API key into the sandbox and
32- * therefore always requires the user's own key. Create PR ('cloud') runs the
33- * model client inside the sandbox, so Sim never supplies a hosted key for it:
34- * the block always shows the API Key field, copilot validation never strips
35- * it, and execution requires BYOK. Review Code and Local Dev keep the model
36- * client in Sim and follow the normal hosted-key rules. All three enforcement
37- * sites (block condition, edit-workflow validation, key resolution) consume
38- * this predicate so they cannot drift.
32+ * therefore always requires the user's own key. Create PR ('cloud') and Update
33+ * PR ('cloud_branch') run the model client inside the sandbox, so Sim never
34+ * supplies a hosted key for them: the block always shows the API Key field,
35+ * copilot validation never strips it, and execution requires BYOK. Review Code
36+ * and Local Dev keep the model client in Sim and follow the normal hosted-key
37+ * rules. All three enforcement sites (block condition, edit-workflow
38+ * validation, key resolution) consume this predicate so they cannot drift.
3939 */
4040export function isPiByokOnlyMode ( mode : unknown ) : boolean {
41- return mode === 'cloud'
41+ return mode === 'cloud' || mode === 'cloud_branch'
4242}
4343
4444/** Returns Pi's provider ID for a supported Sim provider. */
0 commit comments