fix(knowledge): video-digest cookie-retry pattern 'extracting cookies' is tested only against stderr
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ó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript
- Lĩnh vực
- backend
Hướng nghiên cứu
Start in acquire-yt-dlp-auth.js, where COOKIE_PROFILE_RETRY_HINT_PATTERNS is defined, then read spawnFailureDetail in acquire-with-retry.js, which returns only stderr. First confirm with a live yt-dlp run which stream the 'Extracting cookies' line uses. If it is stderr, remove the pattern; if stdout, include it in the cookie-profile detail. Done when a test using captured output proves each pattern can match its input.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
COOKIE_PROFILE_RETRY_HINT_PATTERNS includes /extracting cookies/i, but the only text it is ever tested against is the failed spawn's stderr. If yt-dlp reports its "Extracting cookies from " progress line on stdout, the pattern can never match, so the entry is dead and gives a false impression that the case is handled.
Failure scenario
Expected: every pattern in the retry-hint list can match text the caller actually passes in.
Actual: spawnFailureDetail returns result.stderr (trimmed), falling back to result.error, then "spawn failed". stdout is never read. The caller passes that detail to isCookieProfileRetryableError.
Unverified: which stream yt-dlp writes that message to. My recollection is that it is an informational line printed on stdout, but I did not confirm it against yt-dlp source or a live run in this session, so the first step of the fix is to check. If it does go to stderr, this issue reduces to the pattern being redundant with the more specific failure messages in the list.
Evidence
- The pattern: https://github.com/melodic-software/claude-code-plugins/blob/7787be41e98e30cd6e3b82e99494886d77e30895/plugins/knowledge/skills/video-digest/extraction/acquisition/acquire-yt-dlp-auth.js#L32
- Detail is stderr only: https://github.com/melodic-software/claude-code-plugins/blob/7787be41e98e30cd6e3b82e99494886d77e30895/plugins/knowledge/skills/video-digest/extraction/acquisition/acquire-with-retry.js#L21
- The only production call site: https://github.com/melodic-software/claude-code-plugins/blob/7787be41e98e30cd6e3b82e99494886d77e30895/plugins/knowledge/skills/video-digest/extraction/acquisition/spawn-yt-dlp-with-auth-fallback.js#L87-L88
Suggested fix
Confirm the stream with a live yt-dlp run against a browser whose cookie store cannot be read. Then either drop the pattern, or, if the message is on stdout and the retry is wanted, include stdout in the detail for the cookie-profile path. Add a test using the real captured output.
Related
- #6816 (browser-cookie fallback)
🤖 Generated with Claude Code
- Ngôn ngữ chính
- Shell
- Star
- 22
- Fork
- 2
- Merge trung bình
- 6 giờ 11 phút
- Pull request đã merge (30 ngày)
- 955
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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 melodic-software/claude-code-plugins
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
melodic-software/claude-code-plugins#9619 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
priority: medium status: ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
melodic-software/claude-code-plugins#9617 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
evals: run-validity calls runs VALID when every Bash call failed to start the sandbox (long TMPDIR)Đang mởpriority: medium status: needs-decision work-class: scoped
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
melodic-software/claude-code-plugins#9611 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
fix(pr-pipeline): apply-verdict readFields reads a malformed field-values answer as no fields setĐang mởpriority: low status: confirmed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
melodic-software/claude-code-plugins#9598 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
priority: medium status: needs-decision work-class: scoped
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
melodic-software/claude-code-plugins#9578 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của melodic-software/claude-code-plugins
Issue tương tự
-
[Request] Add BBportĐang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
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 78/100
-
area:ci area:kext enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
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 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Agents widget: Codex limits intermittently unavailable (buffered readline vs select in rpc_request)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày