fix(sidecar): remove hardcoded ACPX extension path that breaks npm hoisting#1135
Conversation
…isting The SIDECAR_ACPX_EXTENSION_PATH env var was hardcoded to a nested node_modules path, but npm hoisted pi-orchestrator-config to the top-level node_modules. The sidecar's resolveExtensionPath() auto-resolves via require.resolve, so the env var override is unnecessary and breaks when npm hoisting changes.
|
Report bugs in Issues Welcome! 🎉This pull request will be automatically processed with the following features: 🔄 Automatic Actions
📋 Available CommandsPR Status Management
Review & Approval
Testing & Validation
Container Operations
Cherry-pick Operations
Branch Management
Label Management
✅ Merge RequirementsThis PR will be automatically approved when the following conditions are met:
📊 Review ProcessApprovers and ReviewersApprovers:
Reviewers:
Available Labels
AI Features
Security Checks
💡 Tips
For more information, please refer to the project documentation or contact the maintainers. |
PR Summary by QodoFix sidecar startup by removing hardcoded ACPX extension path (npm hoisting-safe) Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewPrevious review resultsReview updated until commit e33dbf3 Results up to commit 4793993
Great, no issues found!Qodo reviewed your code and found no material issues that require review |
…xample Add missing pi-sidecar env vars (ACPX_AGENTS, VERTEX_CLAUDE_1M, SIDECAR_PORT), Vertex AI volume mount, and dual healthcheck for webhook server + sidecar.
|
Code review by qodo was updated up to the latest commit e33dbf3 |
|
New container for ghcr.io/myk-org/github-webhook-server:latest published |
Problem
After merging #1127 (pi-sidecar migration), the sidecar logs show on container startup:
The
SIDECAR_ACPX_EXTENSION_PATHenv var inentrypoint.shhardcodes a nestednode_modulespath, but npm hoistedpi-orchestrator-configto the top-levelnode_modules/.Fix
Remove the
SIDECAR_ACPX_EXTENSION_PATHexport fromentrypoint.sh. The sidecar'sresolveExtensionPath()function already auto-resolves viarequire.resolve(), which correctly handles npm hoisting.Changes
entrypoint.sh: Removed hardcodedSIDECAR_ACPX_EXTENSION_PATHexport