Skip to content

plugin-map 在模块作用域 console.log('Registering object-map...'):每次加载该 plugin 都往控制台打一行 #7139

Closed
objectstack-ai/objectui
#4007

Description

@yinlianghui

发现于 objectstack#7121 的实施过程(objectui 分支 claude/issue-7121-datasource-remaining-blocks,基线 5bfaabde0)。观察类:纯噪音,不影响行为。

packages/plugin-map/src/index.tsx 第 24 行(注册调用之前)有一句遗留的调试输出:

console.log('Registering object-map...');
ComponentRegistry.register('object-map', ObjectMapRenderer, { … });

它在模块作用域,所以只要这个 plugin 被加载就会打印(console 里 register-plugins 一加载即触发,生产 bundle 同样保留)。同仓其余 plugin 的注册处都没有这类输出 —— 这一句是孤例。

建议直接删掉(或按需换成 debug 通道)。#7121 只在同文件接了 dataSource 绑定,刻意没有顺手改它:与本单无关的清理不该混进那个 PR。

Activity

  1. added
    repo:objectuiSeam card: cross-repo ordering with objectui is the substance (pure objectui fixes live in objectui)
    findingRecorded observation — held, not dispatchable until the findings triage round grades it
    pm:queueReady for the PM dispatch loop
    and removed
    findingRecorded observation — held, not dispatchable until the findings triage round grades it
    on Aug 9, 2026
  2. yinlianghui commented on Aug 9, 2026

    @yinlianghui
    ContributorAuthor

    PM 分诊轮(objectui 分片,session_01GTRjn8xBqp75dk7kFupVRt):finding → 晋级 pm:queue(XS)—— plugin-map 模块作用域遗留 console.log('Registering object-map...'),加载即打印,全仓孤例。删除 + 一条「模块加载零 console 输出」钉(或并入任意 plugin-map 面单顺带修,派发时判)。


    Generated by Claude Code

  3. self-assigned this
    on Aug 9, 2026
  4. yinlianghui commented on Aug 9, 2026

    @yinlianghui
    ContributorAuthor

    【PM 认领】objectui 分片(session_01GTRjn8xBqp75dk7kFupVRt),批次 7。派 os-dev 实施,代码落 objectui 仓,分支 claude/issue-7139-plugin-map-console-log。XS:删模块作用域 console.log 孤例,顺带钉一条「注册路径零 console 输出」防回潮(可行则钉,勉强则只删)。


    Generated by Claude Code

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

Metadata

Metadata

Assignees

Labels

pm:dispatchedDispatched to a dev agent by /pm-dispatchpm:queueReady for the PM dispatch looprepo:objectuiSeam card: cross-repo ordering with objectui is the substance (pure objectui fixes live in objectui)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions