Skip to content

Commit 21bcc31

Browse files
committed
2 parents f4fb6dc + f44eb3a commit 21bcc31

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

clawd-on-desk/src/minicpm-chat.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,18 @@ class Sidecar {
451451
MINICPM_PARENT_PID: String(process.pid),
452452
};
453453

454+
// Strip proxy environment variables to avoid socksio dependency issues.
455+
// The sidecar only makes local HTTP calls (localhost:18766) and downloads
456+
// from HuggingFace (which has its own proxy handling via huggingface_hub).
457+
const proxyVars = [
458+
"http_proxy", "https_proxy", "ftp_proxy", "socks_proxy",
459+
"HTTP_PROXY", "HTTPS_PROXY", "FTP_PROXY", "SOCKS_PROXY",
460+
"all_proxy", "ALL_PROXY",
461+
];
462+
for (const v of proxyVars) {
463+
delete env[v];
464+
}
465+
454466
let proc;
455467
if (this.sidecarBin) {
456468
// Production path: a self-contained gateway binary. No Python

clawd-on-desk/src/permission.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ function estimateBubbleHeight(sugCount) {
459459

460460
function getAnchorWorkArea(petBounds) {
461461
const bounds = petBounds || ctx.getPetWindowBounds();
462+
if (!bounds) return { x: 0, y: 0, width: 1920, height: 1080 };
462463
const cx = bounds.x + bounds.width / 2;
463464
const cy = bounds.y + bounds.height / 2;
464465
return ctx.getNearestWorkArea(cx, cy);

0 commit comments

Comments
 (0)