Webwright skill is shell-unaware on Windows — bash heredocs loop/fail with code-specialist models (gpt-5-codex / gpt-5.3-codex)
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 42/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 冷清
- 技术栈
- bash, powershell, python
调研方向
阅读 reference/playwright_patterns.md 和 Webwright skill instructions,然后在 Windows 上的 PowerShell 中复现 inline-Python 示例。追踪 skill 假定使用 bash 的位置,并将其行为与报告中的 Codex models 进行比较。完成标准是 PowerShell 运行不再调用 bash heredoc syntax,也不再重复由此产生的 parse failure。
由索引模型根据 Issue 内容生成。
描述
Environment
Windows 11, Codex VS Code extension, Codex CLI 0.136.0-alpha.2
Detected shell (from environment_context): powershell
Webwright skill invoked via /webwright:run
Summary
The webwright skill instructs the agent to "drive the browser through one bash command at a time" and its reference (reference/playwright_patterns.md, the inline-Python example) demonstrates a bash heredoc (python - <<'PY' … PY). On Windows the shell is PowerShell, which cannot parse bash heredocs. Whether a run succeeds therefore depends entirely on the model being able to recognize this and deviate from the skill's examples.
Observed behavior (same machine, same skill, same shell)
gpt-5.5: recognizes it's on PowerShell, writes the script to a .py file and runs python file.py. Completes tasks in a few steps.
gpt-5-codex / gpt-5.3-codex: follow the skill's bash heredoc example literally, hit the PowerShell parse error, and retry the same broken syntax in a loop. A simple Wikipedia task took ~18 minutes; a moderately complex booking task looped for hours without converging.
Root cause
The skill's instructions and examples assume bash. Code-specialist models are tuned for tight, literal adherence to skill instructions, so they reproduce the bash heredoc verbatim instead of adapting to the reported powershell shell. There is no shell-awareness in the skill and no guardrail when the harness runs under a model that doesn't self-correct.
- 主要语言
- Python
- 星标
- 6k
- 派生
- 385
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/Webwright 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 1/5 1 小时以内 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 4/5 3-5 天 新手友好度 45/100
查看 microsoft/Webwright 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
xinnan-tech/xiaozhi-fde-talk#263 ·
-
rules
难度 1/5 1 小时以内 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 70/100
huggingface/Repo2RLEnv#163 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 95/100
huggingface/sentence-transformers#4074 ·
-
comp/dashboard invalid P3
难度 2/5 1-3 小时 新手友好度 70/100
NousResearch/hermes-agent#121143 ·