Skip to content

app-shell 在 macOS 上构建失败:DeploymentNotice.tsx 与 deploymentNotice.ts 只差大小写 #34705

Closed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:① 实测缺陷(2026-11-17,objectstack origin/main a34eb07,macOS 默认的大小写不敏感文件系统)。⛔ 不是认领。

现象

在 macOS 上 npx turbo run build --filter=@object-ui/console...,73 个任务成功,@object-ui/app-shell#build 失败:

src/console/home/HomePage.tsx(39,10): error TS2724: '"../deployment-notice/DeploymentNotice.js"' has no exported member named 'DeploymentNotice'. Did you mean 'hideDeploymentNotice'?
src/views/DashboardView.tsx(40,10): error TS2724: (同上)
src/views/DashboardView.tsx(40,34): error TS1261: Already included file name '…/deployment-notice/DeploymentNotice.ts' differs from file name '…/deploymentNotice.ts' only in casing.

原因

ui/packages/app-shell/src/console/deployment-notice/ 下同时有 DeploymentNotice.tsx(组件)和 deploymentNotice.ts(状态与解析),两者自 a77c2e9(2026-11-06)起并存。大小写不敏感的文件系统上,'../deployment-notice/DeploymentNotice.js' 先解析到 .ts,命中的是 deploymentNotice.ts。Linux CI 区分大小写,所以不红。

影响

  • macOS 上 tsc 构建 app-shell 失败。
  • 只跑 vite build 的话不报错,但同一条解析规则会把组件导入指到状态模块,属于静默错绑,本次没有验证运行结果。

要做的

  1. 把其中一个文件改名,使两者不再只差大小写(本地验证用的是 deploymentNotice.ts → deploymentNoticeState.ts,同时改 DeploymentNotice.tsx:49 和 __tests__/DeploymentNotice.test.tsx:31 的导入;改名后 vite build 通过)。
  2. 加一道防回归的检查:仓里不允许同目录下只差大小写的文件名(git ls-files 小写化后查重即可),放进现有的 lint 或 CI 步骤。

验收

  1. macOS 上 npx turbo run build --filter=@object-ui/console... 全部成功。
  2. 故意加一对只差大小写的文件,检查会红。

Reader: domain:ui 车道,改 ui/packages/app-shell/src/console/deployment-notice/。

Dedupe: repo:objectstack-ai/objectstack deploymentNotice DeploymentNotice case-insensitive macOS → 0;file names differ only in casing TS1261 → 0(含已关)。

Activity

  1. added
    bug
    domain:ui
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → p1 · domain:ui · pm:queue · 2026-11-17T07:46Z

    ⛔ Not a claim.

    • Theme: install reliability, building from source.
    • Named effect: on macOS's default case-insensitive file system, @object-ui/app-shell#build fails, because DeploymentNotice.tsx and deploymentNotice.ts differ only in case. Every macOS contributor or self-hoster building from source is blocked. That includes the maintainer's own local seat.
    • Domain: ui/packages/app-shell/src/console/deployment-notice/ → domain:ui.
    • Fix: rename one file so the two differ by more than case, then update both import sites. Small; take it ahead of the queue.
    • Worth adding a case-collision check to the repo lint, in the same PR or as a follow-up, so this cannot recur.
  3. added
    pm:queue
    priority:p1
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmSYe73LCZ6WxGFvcko

    Claim: PM loop · area o2-H · 2026-11-17T09:16Z
    Session: session_01ADHkmSYe73LCZ6WxGFvcko
    Account: os-steve
    Branch: claude/issue-34705-deployment-notice-case (from origin/main f6f5b50)
    Worktree: objectstack (the area thread's own checkout)
    Domain: domain:ui
    Seat: repo:objectstack#2
    File surface: ui/packages/app-shell/src/console/deployment-notice/ (rename deploymentNotice.ts → deploymentNoticeState.ts; the import at DeploymentNotice.tsx:49 and __tests__/DeploymentNotice.test.tsx:31); a repository-wide module-name case-collision gate (scripts/check-module-name-case.mjs with --self-test, root package.json check:module-name-case, one step in .github/workflows/lint.yml); root .changeset/** (stop on breach; explain in the report)
    Container & model: S, mode:thread (the area thread implements it itself), model: default judgement tier, effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: @object-ui/app-shell deployment notice module names (objectstack) | two files in one folder whose names differ only in letter case resolve to the same module on a case-insensitive file system | every contributor or self-hoster who builds from source on macOS
    Thread-read: 6942018532
    Premise: holds — on origin/main f6f5b50 the folder holds DeploymentNotice.tsx and deploymentNotice.ts; the three importers of the component (HomePage.tsx:39, DashboardView.tsx:40, the test) spell DeploymentNotice, the two importers of the state module spell deploymentNotice. One refinement for the gate: the pair differs in extension too, so a lower-cased git ls-files dedupe returns 0 on main; the gate compares module stems (the name with its .ts/.tsx/.js/.jsx/.mts/.cts/.d.ts extension removed) within one folder, plus whole paths. A scan of every tracked path on main finds exactly this one pair and no case-only path collision. Reproduced from the tree, not on a macOS file system (the container's is case-sensitive).
    Serial constraints cleared: no open PR found touching deployment-notice/, HomePage.tsx or DashboardView.tsx (search by name; #34677 and #34698 read file-by-file).
    Pre-claim lane: domain:ui — app-shell; seat 2 granted this card to area o2-H (relay 09:11Z); not part of #34571.
    Pre-claim deps: no Blocked-by:.
    Prior rulings read: deploymentnotice.tsx,deploymentnotice,deploymentnotice.ts,app-shell,macos → 5 hits; ADR-0037 Decision §1, ADR-0085 Decision §5, ADR-0146 D5, ADR-0146 D7 (all on other app-shell questions; none on file naming); thread: none; repo: objectstack-ai/objectstack
    Landing: the rename lands first on its own PR (queue). The gate's lint.yml step reads Tier H under the workflows split (a new continue-on-error, as every sibling step carries), so it follows as a second PR on claude/issue-34705-module-name-case-gate, through the seat.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 17, 2026
  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmSYe73LCZ6WxGFvcko

    Claim: PM loop · area o2-H · 2026-11-17T11:08Z · second branch of this card's own claim (6943846096)
    Session: session_01ADHkmSYe73LCZ6WxGFvcko
    Account: os-steve
    Branch: claude/issue-34705-module-name-case-gate (from origin/main 0afe509, after #34762 merged)
    Worktree: objectstack (the area thread's own checkout)
    Domain: domain:ui
    Seat: repo:objectstack#2
    File surface: scripts/check-module-name-case.mjs (new), root package.json (check:module-name-case), one step in .github/workflows/lint.yml
    Thread-read: 6943846096
    Note: the same holder as 6943846096, which named this second PR in its Landing: line. The fix, #34762 on claude/issue-34705-deployment-notice-case, merged at 2026-11-17 11:05Z with Part of #34705; this branch carries the gate and closes the card (PR #34812, Tier H through the seat).

  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzi6WQ71HhZSLSvHhdF

    Claim: takeover · #34705 · area o3-I (seat-2 hand-off: approvals and close-out) · 2026-11-17T13:27Z
    Provenance: whose order — seat repo:objectstack#2 handed its in-flight PRs to seat repo:objectstack#3 (mailbox PR #34585 comment 6948334887; completion addendum 6948911954 says every seat-2 thread has clocked out); this seat's maintainer ruled at 2026-11-17T12:44Z that seat 3 takes every non-security handed PR (「也由我接」); seat 3 ordered this close-out after os-zhuang's review 5938991365 on PR #34812.
    Session: session_01WGufzi6WQ71HhZSLSvHhdF (area o3-I)
    Account: os-support-ai
    Branch: claude/issue-34705-module-name-case-gate (PR #34812); nothing will be pushed
    Worktree: none
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: none. Purpose of this claim: close PR #34812 without landing it, and close this card as completed by PR #34762
    Clause-②: no
    Metadata-protocol: none
    Responsibility: carried from claim 6943846096
    Thread-read: 6946325378
    Premise: holds — the defect (two module names differing only in case) was fixed by PR #34762, merged Part of #34705
    Serial constraints cleared: none in flight
    Prior rulings read: os-zhuang's review 5938991365 on PR #34812 (「这个门禁有必要吗?有业务价值吗」); thread: 6946325378
    Lease: lease:o3-I (replaces lease:o2-H)

  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzi6WQ71HhZSLSvHhdF

    Closed as completed at 2026-11-17T13:30Z: the defect is fixed by PR #34762 (deploymentNotice.ts renamed to deploymentNoticeState.ts, both importers updated), merged Part of #34705. The proposed repo-wide case-collision gate (PR #34812) is dropped after os-zhuang's review 5938991365 questioned its value: one incident ever, and filing-gate adds no new gate by default. PR #34812 is closed unmerged; lease:o3-I, pm:dispatched and the assignee are cleared.

  9. removed
    pm:dispatched
    on Nov 17, 2026
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

    bugdomain:uipriority:p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions