fix(knowledge): video-digest cookie-retry pattern 'extracting cookies' is tested only against stderr
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 55/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- javascript
- 领域
- backend
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Shell
- 星标
- 22
- 派生
- 2
- 平均合并
- 7 小时 23 分钟
- 30 天内合并 PR
- 950
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
melodic-software/claude-code-plugins 的其他 Issue
-
fix(session-flow): redact.py misses bare sk-ant-oat01- tokens and stateless ghs_ tokens with dots未关闭needs-human
难度 2/5 1-3 小时 新手友好度 82/100
melodic-software/claude-code-plugins#9026 · 1 条评论 ·
维护者通常 1 天内回复
-
needs-human
难度 2/5 1-3 小时 新手友好度 76/100
melodic-software/claude-code-plugins#9013 · 1 条评论 ·
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 68/100
melodic-software/claude-code-plugins#9000 · 3 条评论 ·
维护者通常 1 天内回复
-
needs-human
难度 2/5 1-3 小时 新手友好度 73/100
melodic-software/claude-code-plugins#8998 ·
维护者通常 1 天内回复
-
fix(source-control): ready hold check treats hyphenated identifiers containing wip as a WIP marker未关闭priority: medium
难度 2/5 1-3 小时 新手友好度 77/100
melodic-software/claude-code-plugins#8977 · 1 条评论 ·
维护者通常 1 天内回复
查看 melodic-software/claude-code-plugins 的全部 Issue
相似的 Issue
-
bug raised-by:verifier
难度 2/5 1-3 小时 新手友好度 79/100
medici-finance/assay#4008 ·
维护者通常 1 天内回复
-
bug: `curl NAME` exports an unquoted, uninterpolated command that is not runnable可能已有人在做 @dannyward630 今天认领。 未关闭bug good first issue
难度 2/5 1-3 小时 新手友好度 82/100
yunaremaia/git-api#61 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
cloudflare/skills#247 ·
维护者通常 1 天内回复
-
Update nwg-panel to 0.12.3可能已有人在做 @zen0bit 今天认领。 未关闭package-update
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
area: cli difficulty: easy dx good first issue hacktoberfest help wanted rank: 8 kyu
难度 1/5 1 小时以内 新手友好度 88/100
tdk-landscape/tdk-cli-core#1836 ·