Files
deepseek-harness/apps/web/tests/snapshots/agent-preset-authoring/section.expected.md
Yichen Jiang dae6cad065 fix(web): show the plugin settings a user actually gets
Three things the page got wrong.

The web-search provider's defaults lived only at their use site, so the
served section carried no value for them and the card fell back to a zero it
invented — a number the schema itself rejects. Declaring them on the schema
makes the settings service the one authority: `maxUses` now reads 5 because
that is what the Host resolves, not because the page guessed. `baseURL` keeps
its code-side default, which exists so `$DEEPSEEK_SEARCH_BASE_URL` can win.

A field the Host serves no value for now renders empty rather than as zero.

The cards were rows in a settings page of cards: name and description ran
together on one line because the shared disclosure row lays them side by side.
Each card now draws its own header, stacking the two, and the section follows
the idiom the Agent Preset page established.
2026-08-10 21:29:45 +08:00

2.3 KiB
Raw Blame History

  • dialog "设置":
    • navigation:
      • text: 设置
      • button "通用设置":
        • img
        • text: 通用设置
      • button "模型":
        • img
        • text: 模型
      • button "Agent 预设":
        • img
        • text: Agent 预设
      • button "插件配置":
        • img
        • text: 插件配置
    • button "打开配置文件"
    • button "关闭":
      • img
      • text: 关闭
    • heading "Agent 预设" [level=2]
    • paragraph: 预设即一个会话的 Agent 所运行的插件组装 —— 它的工具、提示词与能力。复制一份既有预设改成自己的,或用「创造模式」让 Agent 帮你创建。
    • heading "内置" [level=3]
    • list:
      • listitem:
        • 'button "当前使用: 标准模式" [disabled] [pressed]':
          • text: 标准模式 内置 当前使用 完整的编码 agent文件读写、shell、检索、计划、委派与工作流。
          • code: standard
        • 'button "查看: 标准模式"':
          • img
          • text: 查看
        • 'button "复制: 标准模式"':
          • img
          • text: 复制
      • listitem:
        • 'button "设为默认: 代码模式"':
          • text: 代码模式 内置 标准模式的工具改为 Code Mode 呈现:模型写一段 TypeScript 调用 SDK一次执行代替多轮工具调用。
          • code: code
        • 'button "查看: 代码模式"':
          • img
          • text: 查看
        • 'button "复制: 代码模式"':
          • img
          • text: 复制
      • listitem:
        • 'button "设为默认: 极简模式"':
          • text: 极简模式 内置 只向模型呈现 bash 与 str_replace_editor适合 benchmark 与最小复现。
          • code: minimal
        • 'button "查看: 极简模式"':
          • img
          • text: 查看
        • 'button "复制: 极简模式"':
          • img
          • text: 复制
      • listitem:
        • 'button "设为默认: 创造模式"':
          • text: 创造模式 内置 标准模式加上自指工具集,可以读改自己运行的这套组装,并据此创作新的预设。
          • code: cordis
        • 'button "查看: 创造模式"':
          • img
          • text: 查看
        • 'button "复制: 创造模式"':
          • img
          • text: 复制
    • button "用「创造模式」创作自定义预设":
      • img
      • text: 用「创造模式」创作自定义预设