Skip to content

PatchArtifactTool和LoadArtifactTool未实现 — LLM无法增量修改和预览artifact #33

Closed

Description

@dahai80

问题描述

PRD (artifact-enhance-plan.md FC-2/FC-3) 要求实现 PatchArtifactTool 和 LoadArtifactTool,但 src/tools/ 下仅有 ArtifactCreateTool/ 和 ArtifactUpdateTool/,无新工具目录。

提示词中已提到这两个工具名称,但无实际实现:

  • ArtifactCreateTool.ts:68: "To review artifact content, use LoadArtifact"
  • ArtifactUpdateTool.ts:49: "prefer PatchArtifact over full-content updates"

PRD 要求

PatchArtifactTool: 对接 artifact.patch RPC, 支持 4 种操作 (replace_section/append/prepend/delete_section)
LoadArtifactTool: 对接 artifact.load RPC, 支持 preview_only 和 section 参数

影响

  1. LLM 只能用 UpdateArtifact 全量替换,无法 section 级增量修改
  2. LLM 无法预览 artifact 内容,盲目修改
  3. 端到端链路断裂

来源: architecture/validate-fusion-artifacts.md P3/P4

Activity

  1. added
    bug
    on Aug 3, 2026
  2. dahai80 commented on Aug 3, 2026

    @dahai80
    OwnerAuthor

    Implemented in PR #36 (v0.4.7): LoadArtifactTool + PatchArtifactTool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions