fix(prompts): explain visibility="internal" in Runtime Policy Reference#2951
Conversation
…cy Reference The <runtime_prompt> tag includes a visibility="internal" attribute that was listed in the tag format but never explained. Models sometimes interpreted this as an instruction to announce or restate the current mode to the user, leading to repetitive YOLO-mode confirmations before every tool call (Hmbown#2922). Add a one-sentence explanation: the attribute marks this tag as a runtime instruction for the model (not user input), and the model should apply the referenced rules silently without announcing the mode. Closes Hmbown#2922
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
There was a problem hiding this comment.
Code Review
This pull request updates the runtime policy reference prompt in crates/tui/src/prompts.rs to clarify the behavior of the visibility="internal" attribute. It explicitly instructs the model that this tag is an internal runtime instruction and that it should apply the referenced rules silently without announcing the mode or restating the tag content to the user. There are no review comments, and I have no additional feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
Summary · 概述
Add an explanation of the
visibility="internal"attribute in the Runtime Policy Reference section of the system prompt.在系统提示的 Runtime Policy Reference 部分添加
visibility="internal"属性的说明。Motivation · 动机
The
<runtime_prompt>tag has always carriedvisibility="internal", but the attribute was listed in the tag format without any explanation of what it means. Some models interpreted this as an instruction to announce or restate the current mode to the user, leading to repetitive mode confirmations before every tool call (#2922).<runtime_prompt>标签一直带有visibility="internal"属性,但 tag 格式中只是列出了它,没有解释含义。部分模型将此理解为需要向用户宣布或重申当前模式,导致每次工具调用前都重复确认模式(#2922)。Change · 变更
In
render_runtime_policy_reference(), add one sentence after the tag format:在
render_runtime_policy_reference()中,tag 格式之后新增一句说明。Closes · 关闭
Closes #2922
Files · 涉及文件
crates/tui/src/prompts.rs—render_runtime_policy_reference()