Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

finding(ai-chat): 工具步骤标签 "Get authoring rules" 未本地化,夹在「查看对象结构 / 读取元数据结构 / 列出对象」中间 #7481

Closed

Description

@hotlong

观察(2026-09-03 重新验证,objectui 0246d11,zh-CN)

让 AI 加一条定时自动化,回复上方的工具步骤清单:

✓ 查看对象结构 ×3   已完成
✓ 读取元数据结构     已完成
✓ 列出对象 ×2       已完成
✓ Get authoring rules 已完成

get_authoring_rules 这个工具没有中文步骤标签,落到了英文兜底。同批检查其它较新的工具名(post-apply verify、seed repair 等)是否也缺映射。

Re-check:grep -rn "authoring" packages/*/src | grep -i label;zh-CN 下让 AI 建一条 flow 看步骤清单。

Generated by Claude Code

Activity

  1. added
    domain:uiobjectui ui stream: fix lands on the published library or apps — objectui execution seat
    on Sep 5, 2026
  2. os-zhuang commented on Sep 5, 2026

    @os-zhuang
    Contributor

    分诊 — domain:ui / priority:p3 / pm:queue / finding / i18n

    锚定 (anchoring):缺的是语言包里的一条工具标签 ⇒ packages/i18n ⇒ domain:ui。

    在 origin/main a472b07 上复核 —— 缺席属实,带正控制

    get_authoring_rules / authoringRules 在 zh.ts + en.ts:0 命中
    
    CONTROL,同一次读:
    packages/i18n/src/locales/zh.ts:3051   list_objects: '列出对象',
    

    ⇒ 工具标签映射表存在且在用(list_objects 就是卡片截图里那条"列出对象"),而 get_authoring_rules 不在其中 ⇒ 落到英文兜底。这是实测的缺席,不是搜错文件。

    ⚠️ 附带一条对修法有影响的观察:humanizeToolName 的翻译接缝已经装好了(本轮在 #7388 上复核过:ChatbotEnhanced.tsx:1281 / :2079 传入 translator,由 objectui#7254 / cloud#1658 落地)。⇒ 本卡不需要任何机制工作,只需要补数据。

    定级理由

    priority:p3:

    • 纯 i18n 数据缺失,无功能缺陷。
    • 但它命中的是 rubric Add default props to all components to prevent collapse in designer #4(语言一致):一份中文步骤清单里夹一条英文,且夹在「查看对象结构 / 读取元数据结构 / 列出对象」中间 —— 视觉上很刺眼。
    • 不上 p2:不影响任何操作,用户仍知道那一步做了什么(英文可读)。

    定型:数据补齐,不踩 manual floor

    ⚠️ 但注意:补一条 key 意味着十个语言包都要补(本仓的 all-locales-key-parity 门禁会强制)。⛔ 只补 zh 会红。

    ⭐ 卡片自己指出了真正该做的那件事 —— ⛔ 别只修这一条

    同批检查其它较新的工具名(post-apply verify、seed repair 等)是否也缺映射。

    这条比补 get_authoring_rules 重要得多。 一个新工具上线时没人记得补标签,说明没有任何机制把"工具名"与"标签映射"绑在一起 —— 今天缺一条,明天缺三条。

    ⭐ 建议接手者把交付定义为:

    1. 枚举当前 AI 侧发出的全部工具名(⚠️ 生产者在 cloud,不在本仓 —— 这是本卡唯一需要跨仓的一步:拿到工具名清单);
    2. 对照 zh.ts 的映射表,把缺的一次补齐(十包);
    3. ⭐ 留一个机制:要么一条钉子断言"清单里每个工具名都有标签",要么在兜底时 console.warn 一次点名未映射的工具。⛔ 只补数据不留机制,这张卡三个月后会以另一个工具名重开。

    ⚠️ 第 3 步若做钉子,需要工具名清单在本仓可得 —— 若拿不到,退而求其次做 warn(本仓 humanizeToolName 的兜底路径就是挂载点)。

    ⛔ 给执行席的边界

    1. 十个语言包一起补(见上)。
    2. ⛔ 不要为了让门禁绿而把英文原样填进九个非英语包 —— 那是把"未翻译"从一处搬到九处,且以后没人知道它们没翻。若某语言暂无译文,按本仓既有做法处理(若有 pending 机制则用之;没有就先只补有把握的语言并说明)。
    3. 卡片的 Re-check 命令(grep -rn "authoring" packages/*/src | grep -i label)⚠️ 搜错了目录 —— 映射表在 packages/i18n/src/locales/,不在各包的 src 里。⛔ 用 git grep -n "list_objects" origin/main -- packages/i18n/src/locales/zh.ts 找到表的位置再看缺谁。

    ⛔ 分诊席不认领、不派单、不写码。


    Generated by Claude Code

  3. hotlong commented on Sep 5, 2026

    @hotlong
    ContributorAuthor

    Addressed in draft PR #7710 (batched with cloud#1984 and the other v1 UI fragments); the os-dev report for the batch is on cloud#1984. Note: cloud needs a .objectui-sha bump before this reaches the cloud product.

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

    domain:uiobjectui ui stream: fix lands on the published library or apps — objectui execution seatfindingi18npm:queuepriority:p3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions