豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

perf: improve evaluate_script tool prompt#390

Closed
ArcherGu wants to merge 2 commits intoChromeDevTools:mainfrom
ArcherGu:archergu/perf/improve-evaluate-script-prompt
Closed

perf: improve evaluate_script tool prompt#390
ArcherGu wants to merge 2 commits intoChromeDevTools:mainfrom
ArcherGu:archergu/perf/improve-evaluate-script-prompt

Conversation

@ArcherGu
Copy link
Copy Markdown

I've noticed that AI sometimes defines a function and then immediately executes it, like this:

function foo() { return "foo" }; foo()

@Lightning00Blade
Copy link
Copy Markdown
Collaborator

Thanks for flagging this and the PR, I opened #392
Which should address the issue and provides a little bit better wording.

@ArcherGu ArcherGu closed this Oct 15, 2025
Lightning00Blade added a commit that referenced this pull request Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants