Skip to content

Line-item grid: a multi-value lookup column shows "undefined" in read-only and list mode (the read-only LookupField is not told the field is multiple) #36618

Closed

Description

@objectstack-fleet

repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

Found by the #36552 dev (PR #36616), outside that card. Reproduced on main by the dev. Not claimed. Related: #36552.

Suggested-grade: p2
Suggested-domain: domain:ui

What happens

In the line-item grid, a lookup column whose field is multiple shows the text "undefined" in read-only mode and in list mode. The editable cell shows it correctly ("2 selected").

Why

The read-only LookupField is rendered in two places without the field's multiple flag, so it reads a list of ids as one id.

Ask

Pass multiple (from the field definition, not a guess at the value's shape) at both read-only sites, so a multi-value lookup shows the same summary as the editable cell, with a test per site.

Re-check

A line-item grid with a multi-value lookup column, viewed read-only: the cell shows the selected titles or count, never "undefined", when fixed.

Activity

  1. added
    bug
    finding
    on Nov 23, 2026
  2. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui (line-item grid multi-value lookup cell) · pm:queue; rationale: area:ux · Bug · a multi-value lookup column in the line-item grid shows the word 「undefined」 in read-only or list mode, instead of the related records. Reproduced on main by the #36552 dev → p2 as the seat suggested · size XS. On request from repo:objectstack#2 (#32588 comment 7091031849).

  3. added
    domain:ui
    pm:queue
    priority:p2
    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 8 · 2026-11-23T13:38Z
    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-36618
    Domain: domain:ui
    Seat: repo:objectstack#1
    Area: card thread #36618 (w7-I)
    Dispatch: p2 area:ux, unclaimed, taken under the maintainer's ruling 2026-11-23T12:25Z 「非专题卡同意你的意见 ux 允许派发 p1 p2 卡,专题卡优先」 (no unclaimed ux epic child is known); deduped by the coordinator; one in for one out under the 15-thread cap
    File surface: the line-item grid's multi-value lookup column display (read-only and list cells), its 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: none
    Premise: read from the card; the thread re-reads it on its base before code
    Serial constraints cleared: no open PR names the card, per the coordinator's dedupe

  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-23T13:39Z · same session as claim 7102826266, which it completes
    Session: session_01JQwxbZeHNsF3RWcWpj7rGj
    Thread session: session_01JQwxbYEoTneL1bdkVJrq2S
    Branch: claude/project-thread-nfrxdj
    Clause-②: no
    Metadata-protocol: none

  7. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 36618,
      "status": "done",
      "branch": "claude/project-thread-nfrxdj",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36728",
      "session": "session_01JQwxbYEoTneL1bdkVJrq2S",
      "premise_still_valid": true,
      "summary": "Premise held on 03cb550c: GridFieldWidget rendered the read-only LookupField in the read-only table and in the list form-factor cell without the column's multiple, so a stored id list resolved as one id and the single-value face printed 'undefined'. Both sites now pass multiple: c.multiple from the column, as the editable cell already did. New test file pins each site with a two-id cell plus a single-record control per site. Changeset @object-ui/fields patch. Served tier opus (claude-opus-5-5), effort high, matching claim 7102826266.",
      "tests": "GridField.multiLookupReadonly-36618.test.tsx 4/4 pass. Ablation per site (fix committed; site reverted by anchored replacement, remaining-hit count checked; restored from HEAD, git diff HEAD empty): table site reverted -> 'read-only: a cell holding two product ids draws both product names' fails, 3 pass; list site reverted -> 'list: ...' fails, 3 pass. At head 418f177d: packages/fields/src/widgets/GridField* Test Files 21 passed, Tests 272 passed, VERDICT command-exit 0. @object-ui/fields type-check exit 0 after building the ^... closure (VERDICT command-exit 0).",
      "gates": "dispatch-gates --commands derived 38 families on the diff (tree 974437a3, same diff before the main merge); all 38 exit 0 (exit captured per command before any pipe); dispatch-gates --ran: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN. CI families: in_progress at report time, read from the PR's check-runs by the seat.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "7 — read only: issue_read x3, pull_request_read x1, get_session x1 (remote), read_thread x1 (hearthbot), plus hearthbot message/checklist tools; no GitHub MCP write",
      "api_writes": "2 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + assignees leg), this os-dev-report comment; plus git push",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: none · noted, not filed — an empty stored list [] still reaches the read-only lookup branch at both sites (guard checks null and '' only), so it draws the lookup's empty face rather than the grid's muted em dash; recorded under the PR's Acceptance notes"]
    }

    Generated by Claude Code

  8. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Cleared · 2026-11-23T15:11Z: closed by the merge of #36728 (6156fdd). 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:uifindingpriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions