🤖 AI Batch Analysis
## 文档变更分析
### 1. 总体概要
新增了 SSH/WSL 会话中 HTML 文件预览功能的完整文档,包括预览限制说明和企业管理员禁用脚本的管控配置,同时更新了 `disableBrowserExternalNavigation` 设置的作用范围描述。
### 2. 关键主题
- **SSH/WSL HTML 预览支持**:在远程会话中点击 HTML 文件路径即可在 Browser 面板中预览,但存在脚本执行和网络加载的限制
- **预览安全分层**:两种限制级别——"不加载网络资源"(脚本可执行)和"不执行脚本也不加载网络资源"(更严格)
- **企业管控能力**:管理员可通过 `disableBrowserExternalNavigation` 托管设置禁止 SSH/WSL 预览中的脚本执行
- **设置配置复杂性**:涉及 `parentSettingsBehavior` 的合并策略、MDM 策略优先级、Windows 下 WSL 会话权限等交叉影响
### 3. 影响级别:**Medium**
- 非破坏性变更,属于功能增强和文档补全
- 对使用 SSH/WSL 会话的开发者有直接操作影响——他们现在有了 HTML 预览能力,但需要理解其限制
- 对企业管理员有管控影响——`disableBrowserExternalNavigation` 的行为语义扩大了(不仅禁止外部浏览,还禁止 SSH/WSL 预览中的脚本执行)
### 4. 开发者行动项
- **SSH/WSL 用户**:了解现在可以直接在聊天中点击 HTML 路径预览文件,无需手动拷贝到本地
- **遇到空图表/表格时**:检查预览上方的提示信息,按指引操作(升级 Desktop 到 v4.23118.0+、重启、或导出后在浏览器打开)
- **企业管理员**:如需禁止预览中的脚本执行,设置 `disableBrowserExternalNavigation` 为 `true`,并注意需同步配置 `parentSettingsBehavior: "merge"`(若该机器尚无托管设置)
- **Windows 管理员**:创建托管设置文件后,需额外允许 WSL 会话,否则用户会失去 WSL 访问
- **所有用户**:若 `disableBrowserExternalNavigation` 生效,正在运行脚本的预览会立即关闭,需重启 Desktop 确保设置生效
💭 Model Reasoning
Let me analyze the documentation changes for desktop.md.
The diff shows several changes related to HTML file preview functionality in SSH and WSL sessions, and the `disableBrowserExternalNavigation` managed setting.
Key changes:
1. Added mention that in SSH/WSL sessions, users can preview HTML files
2. Added a new section "Preview HTML files in SSH and WSL sessions" explaining how HTML preview works in SSH/WSL, including caveats about scripts and web loading
3. Added a new section "Turn off scripts in SSH and WSL previews for your organization" explaining how admins can disable scripts in these previews using `disableBrowserExternalNavigation`
4. Updated the `disableBrowserExternalNavigation` description to note that it also prevents scripts from running in SSH/WSL HTML previews
5. Updated the managed settings reference table for `disableBrowserExternalNavigation`
This is primarily a documentation update for new functionality - HTML file preview in SSH and WSL sessions, with associated security/admin controls.