chore: refresh pi-ai patch repro note

This commit is contained in:
Peter Steinberger
2026-01-10 20:55:50 +00:00
parent c65114be1a
commit ab314a22e0
4 changed files with 24 additions and 32 deletions

View File

@@ -2,7 +2,6 @@ import { type Api, getEnvApiKey, type Model } from "@mariozechner/pi-ai";
import type { ClawdbotConfig } from "../config/config.js";
import type { ModelProviderConfig } from "../config/types.js";
import { getShellEnvAppliedKeys } from "../infra/shell-env.js";
import { normalizeProviderId } from "./model-selection.js";
import {
type AuthProfileStore,
ensureAuthProfileStore,
@@ -10,6 +9,7 @@ import {
resolveApiKeyForProfile,
resolveAuthProfileOrder,
} from "./auth-profiles.js";
import { normalizeProviderId } from "./model-selection.js";
export {
ensureAuthProfileStore,

View File

@@ -559,7 +559,9 @@ export function buildEmbeddedSandboxInfo(
bashElevated?: BashElevatedDefaults,
): EmbeddedSandboxInfo | undefined {
if (!sandbox?.enabled) return undefined;
const elevatedAllowed = Boolean(bashElevated?.enabled && bashElevated.allowed);
const elevatedAllowed = Boolean(
bashElevated?.enabled && bashElevated.allowed,
);
return {
enabled: true,
workspaceDir: sandbox.workspaceDir,