共用 OpenCode TLS httpsAgent 建立邏輯 #22
Reference in New Issue
Block a user
Delete Branch "ai-review-resolve/20260620134144"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
變更摘要
httpsAgent建立邏輯集中到app/config.js的getOpenCodeHttpsAgent()。app/llm.js與app/preflight.js共用同一個 helper,避免兩處重複判斷OPENCODE_SKIP_TLS_VERIFY。.gitea/ai-review/findings.jsonfinding。影響範圍
OPENCODE_SKIP_TLS_VERIFY=true時仍會對 OpenCode 呼叫套用rejectUnauthorized: false。GITEA_SKIP_TLS_VERIFY流程。測試
npm test:144 個測試通過。注意事項
🤖 AI Code Review 團隊