Skip to content

Studio 列表视图:对象没有默认视图时不要去读 <object>.default 的分层(每个新对象都报一次 404) #36750

Description

@objectstack-fleet

repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

① product defect · Source: maintainer (Warren), 2026-11-23, UI review thread.

  • 14:23Z 「还有哪些元数据可能会有问题?同时全面的测试 studio的各项功能」
  • 15:09Z 「用fable 评审一下 studio的问题,提出修改方案」
  • 15:23Z, decision card 「Studio 评审的 9 张卡,按 fable 方案立卡吗?」 → 「9 张全立」

Evidence:

Paths are relative to ui/packages/app-shell/src/views/ unless they start with ui/ or packages/. SDS = studio-design/StudioDesignSurface.tsx. zh = ui/packages/i18n/src/namespaces/studio/zh.ts. Line numbers are on 9e0c0c2.

What (review §B, the 404; confirmed from code)

  • With no view flagged as default, the list-view buffer falls back to the made-up id <object>.default (studio-design/ObjectListViewInspector.tsx:186–187). Having no draft, it reads that id's published layer (ObjectListViewInspector.tsx:718–724).
  • No such view exists, so the server answers 404 on /meta/view/<object>.default/layers.
  • The client turns that into an empty result (ui/packages/data-objectstack/src/metadata-client.ts:1772–1774). Nothing breaks, but the browser logs the failed request.
  • The guard that used to skip this read covers draft-only objects (objectui#12508). Since Studio 里人工修改改成「保存」「取消」,保存后这一项立刻生效;不再自动存草稿,不用整包发布 #36511, a new object is published at once, so the guard no longer applies.

Expected

Skip the layered read when the id is the fallback, that is, when the object's merged listViews holds no view under it. The buffer already knows this (ObjectListViewInspector.tsx:556–558). Check the other callers of the layered read for the same fallback.

Acceptance

A test pins that no layered read is sent for the fallback id.

Grading: area:ux · Bug · no effect on what the user sees · developers only ⇒ p3. It is batched with the area's close-out, not queued ahead of p2. Effort S. Evidence: read (review §B).

Dedupe: none open on this request.

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: lands in area:ux · domain:ui · priority:p2 · Bug · pm:queue · size S; suggested p3 → p2; type set to Bug (was none).
    Rationale: every new object with no default view makes the list-view inspector read a made-up view id and log a 404 in the browser. Nothing breaks for the author, but the card sits in area:ux and UX has no p3 (North Star Priority, the UX rule). Filed on the maintainer's 「9 张全立」, so it is kept, not closed as a no-effect p3.

  3. added
    priority:p2
    and removed on Nov 23, 2026
  4. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim: PM loop round 10 · 2026-11-23T21:25Z
    Session: session_01JQwxbZeHNsF3RWcWpj7rGj
    Thread session: opened by the coordinator; the thread names itself in its first report
    Account: os-warren
    Branch: the card thread's own branch, named at its first push; the seat records it then
    Worktree: objectstack-issue-36750
    Domain: domain:ui
    Seat: repo:objectstack#1
    Area: card thread #36750 (w9-36750)
    Dispatch: p2 area:ux, non-epic Studio review card (§B). The maintainer resumed area:ux cards at 2026-11-23T21:18:46Z (「area 的ux任务继续处理」), lifting the 2026-11-23T15:36Z freeze for area:ux; p1+p2, epic children first, under the 15-thread cap.
    File surface: ui/packages/app-shell/src/views/studio-design/ObjectListViewInspector.tsx and the other callers of the layered view read, tests, a changeset (stop on breach; the thread's first report states the real surface and the seat amends this line)
    Container & model: S, mode:thread, model: opus — default tier; the thread's first report states the served tier, effort: high
    Clause-②: no. A new route, contract, spec key or export is amended to yes before its code
    Metadata-protocol: none
    Responsibility: as the card body states
    Thread-read: 7105875589
    Premise: read from the card; the thread re-reads it on its base before code
    Serial constraints cleared: no open PR names the card

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim: branch record · 2026-11-23T21:40Z · same session as claim 7114454081, which it completes
    Session: session_01JQwxbZeHNsF3RWcWpj7rGj
    Thread session: session_01JQwxbWBvGf6TP6P9XT1tuo
    Account: os-warren
    Branch: claude/project-thread-gtzq47
    Worktree: objectstack-issue-36750
    Domain: domain:ui
    Seat: repo:objectstack#1
    Area: card thread #36750 (w9-36750)
    File surface: ui/packages/app-shell/src/views/studio-design/ObjectListViewInspector.tsx and StudioDesignSurface.tsx (the second layered-read caller), one new test under studio-design/, a changeset for @object-ui/app-shell
    Container & model: S, mode:thread, served opus, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: as the card body states
    Thread-read: none
    Premise: holds on origin/main e0f0e9f
    Serial constraints cleared: no open PR names the card

  7. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbWBvGf6TP6P9XT1tuo
    os-dev-report

    {
      "issue": 36750,
      "status": "done",
      "branch": "claude/project-thread-gtzq47",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36787",
      "session": "session_01JQwxbWBvGf6TP6P9XT1tuo",
      "premise_still_valid": true,
      "summary": "Premise held on origin/main e0f0e9f7: the fallback id OBJECT.default (listViewTargetOf) was read via GET .../layers with no draft and answered 404. The buffer now skips that read when the target is the default target and no key of the merged listViews nor of the package's drafted list views resolves to its id, but only once the view drafts answered and getTypeStatus('object') === 'ready'; loading, refetching or a status-less context reads as before. The second caller of the same read (Customize served-override on a read-only base) takes item.unpublished: pair draft still read first, then answers shipped 'none' without the layered read, as the 404 envelope did.",
      "tests": "vitest ObjectListViewInspector*, StudioDesignSurface.listView*, InterfacesPillar*: Test Files 38 passed (38), Tests 222 passed (222), lock VERDICT command-exit 0. After the lint-import fix the two touched suites: 2 files / 11 tests passed. Ablation via scripts/ablation-replace.mjs on committed HEAD (tests import source, no dist): guard term removed -> 2 of 7 new cases red; unpublished early return deleted -> 1 red; both restored, blob == HEAD, git diff HEAD empty. app-shell type-check: VERDICT command-exit 0.",
      "gates": "dispatch-gates --commands (38) run locally on e4a8007f: 37 exit 0; check:test-source-alias exit 1 on the two touched suites (lazy @objectstack/lint reach), fixed with a module-top import in 31dfa887, re-run exit 0. check-nul-bytes exit 0. overlap-check VERDICT clean vs origin/main, #36774, #36781, #36784. CI on PR #36787: in_progress at report time.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "4 — github issue_read x2 (get, get_comments), claude-code-remote get_session x1, no write tool",
      "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /issues/36787/assignees), this report comment (POST /issues/36750/comments)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: none · not checked whether the runtime ViewConfigPanel on the 'all' fallback tab sends its own /layers 404 (different id, runtime surface); noted in Acceptance notes, not filed"]
    }

    Deviations: worked in the session's own checkout on the platform-named branch (no separate worktree; a card-thread branch cannot be checked out twice); local commits carry a model-free Co-Authored-By trailer.

  8. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Cleared · 2026-11-23T23:32Z: closed by the merge of #36787. The seat takes pm:dispatched and its assignee off.

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

    area:uxbugdomain:uipriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions