Headless `run` is unusable outside a configured HOME: silent hangs, exit-code 0 on fatal errors, provider env split-brains
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- bun, google-cloud, typescript
- Lĩnh vực
- authentication, cli, cloud, testing-qa
Hướng nghiên cứu
Bắt đầu với eval harness trong PR #1092 và tái hiện các lần chạy chỉ dùng environment đã được ghi nhận thông qua CLI run đã biên dịch, đồng thời thu thập OPTIMIZER_EVAL_TRANSCRIPT. Kiểm tra provider.ts:629 cùng các nhánh xử lý lỗi và thoát stream, sau đó dùng bun test để xác minh rằng các lỗi nghiêm trọng trả về mã khác 0, các process kết thúc, các stream hoàn tất hoặc thất bại, và các biến provider đã được ghi nhận hoạt động nhất quán.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Found while running the dbt-optimizer live eval (PR #1092) — the eval spawns the compiled binary in an isolated HOME with env-only model credentials, which is exactly the headless/CI posture. Eight runs produced six distinct product defects before a single model call succeeded:
runexits 0 on fatal errors.Error: Token refresh failed: 400andModel not found: ...both print to the transcript and exit 0. Headless consumers cannot detect failure by exit code.- Errored CLI lingers as a dangling process. After a provider-lookup error, the process survived
spawnSynctimeout (SIGTERM and SIGKILL configured) — observed alive ~2h and ~69m in two runs untilbun testforce-killed it. - Silent stream hang on google-vertex-anthropic. With valid ADC (verified via
gcloud auth application-default print-access-token), the session starts, the title-agent call is issued... and nothing ever arrives — no error, no timeout, no finish. Logs end atsession.updated. - Google provider env split-brain. Provider detection accepts
GEMINI_API_KEY, but the SDK call then demandsGOOGLE_GENERATIVE_AI_API_KEY— detection succeeds, invocation fails. - Vertex provider env split-brain. The models.dev env list advertises
GOOGLE_VERTEX_PROJECT/GOOGLE_VERTEX_LOCATION, but the loader (provider.ts:629) only detects viaGOOGLE_CLOUD_PROJECT/GCP_PROJECT/GCLOUD_PROJECT;GOOGLE_VERTEX_PROJECTis an output var only. Env-only vertex configuration per the documented names cannot work. - OAuth auth store is location-bound. Copying
auth.jsonto a new HOME yieldsToken refresh failed: 400(refresh-token rotation), so OAuth accounts have no headless path at all; and per (1) that failure is invisible to exit-code checks.
Repro for each is in the PR #1092 eval harness: OPTIMIZER_LIVE_EVAL=1 + OPENCODE_TEST_CLI + the documented env vars; transcripts captured via OPTIMIZER_EVAL_TRANSCRIPT.
Suggested severity: (1) and (3) first — they make headless usage silently unreliable; (4)/(5) are one-line env additions; (2) needs a process-exit audit on the error path; (6) needs a documented headless auth story (API-key path or device-flow re-auth).
- Ngôn ngữ chính
- TypeScript
- Star
- 813
- Fork
- 134
- Merge trung bình
- 2 ngày 8 phút
- Pull request đã merge (30 ngày)
- 65
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của AltimateAI/altimate-code
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
AltimateAI/altimate-code#1359 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
AltimateAI/altimate-code#1323 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
AltimateAI/altimate-code#1288 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
AltimateAI/altimate-code#1285 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
privacy: Altimate Base consent dialog no longer discloses persistent per-installation identifierĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
AltimateAI/altimate-code#1284 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của AltimateAI/altimate-code
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
opengovsg/FormSG#10118 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ai-driven-qa bug claude
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
linagora/twake-calendar-frontend#1434 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add: MBC kr [Geo-blocked]Đang mởcheck:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
iptv-org/iptv#52824 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 78/100
jaegertracing/jaeger-ui#4512 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:ide documentation enhancement platform:macos platform:vscode
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
anthropics/claude-code#97389 ·
Maintainer thường phản hồi trong vòng 1 ngày