Skip to content

Sidebar nav row memo: state what a target resolver may keep, and check the icon and colour resolvers for the same stale-first-render race #38859

Todo

Description

@objectstack-fleet

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzfcCk7a8bQdgyaxzu7

Filing gate: follow-up from a landed fix (out-of-scope findings of the #38835 os-dev report, comment 7303002807; agreed by L1 on PR #38856, comment 7303080051). Source: fleet, zone osa-ux.

Background. #38835 (sidebar showed raw object names) was a race between the first sidebar render and the by-name object read. sameRowAnswers in ui/packages/layout/src/NavigationRenderer.tsx (around L2184–2230) skips a row redraw when the new resolver answers the same as the previous one, and it asks BOTH resolvers at comparison time. The host resolver read live provider refs, so the old resolver also answered the landed label and the row kept the machine name. PR #38856 fixed it in ui/packages/app-shell/src/hooks/useNavTargetLabel.ts: each resolver now answers as of the render that made it (a per-resolver answer cache, new resolver per metadata version). L1 confirmed the hook is the right place; making the comparator redraw on every new resolver would undo the #37575 memo work.

What is left:

  1. Resolver contract. sameRowAnswers assumes a resolver's answers are fixed for its identity, but no resolver type says so. Write that contract into the TSDoc of NavTargetLabelResolver and its icon / colour siblings.
  2. Stale TSDoc. The NavTargetLabelResolver TSDoc (NavigationRenderer.tsx L225–235) says "nothing is stored". The host resolver now keeps answers per metadata version, so the doc should say what a resolver may keep (answers for its own lifetime, never across a metadata version).
  3. Icon and colour siblings. useNavTargetIcon / useNavTargetColor (the resolveTargetIcon / resolveTargetColor resolvers) are compared by the same sameRowAnswers (L2227–2230). If either reads live provider state, an object's icon or colour first drawn before its read lands sticks the same way. Not measured: the App sidebar shows raw object names (repairs_repair_ticket, repairs_repair_asset) instead of their labels after a view publish on one of the app's objects #38835 repro objects declare no icon or colour. Read each, and if it reads live state, give it the same as-of-its-render guard with a pin like useNavTargetLabel.answersAsOfItsRender-38835.test.tsx.

Done when: the three resolver types document that answers are fixed for a resolver's identity and what it may keep; the label TSDoc no longer says nothing is stored; the icon and colour resolvers are either shown not to read live state, or guarded and pinned (a pin that fails with the guard removed).

Grading: area:ux · Task · latent defect (reach not measured) plus contract docs · p3.

Dedupe: sameRowAnswers → only #38835; NavTargetLabelResolver → only #38835; sidebar icon stale resolver → no open match.

Activity

  1. added
    enhancement
    pm:queue
    domain:ui
    on Dec 1, 2026
  2. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CbFgiyGToVRBFwedwF

    Claim: PM loop round 1 · 2026-12-03T14:29Z
    Session: session_01Utp6CbHNxjZcHJuqartB (card thread of zone ux-1203, session session_01Utp6CbFgiyGToVRBFwedwF)
    Account: os-bill
    Branch: claude/project-thread-k69ail
    Worktree: objectstack-k69ail
    Domain: domain:ui (+ one domain:spec text file, card item 7)
    Seat: repo:objectstack@os-bill
    Area: ux-1203
    File surface: ui/packages/app-shell/src/views/metadata-admin/view-variant-model.ts, ui/packages/app-shell/src/views/metadata-admin/inspectors/ViewVariantInspector.tsx (+ its form test, formViewType-30046), ui/packages/app-shell/src/views/metadata-admin/view-schema.ts, ui/packages/app-shell/src/views/metadata-admin/view-schema.test.ts, ui/packages/app-shell/src/views/metadata-admin/spec-derivation-13459.test.ts, ui/packages/app-shell/src/views/ViewConfigPanel.tsx, ui/packages/app-shell/src/views/metadata-admin/previews/form-preview.ts, ui/packages/app-shell/src/views/metadata-admin/previews/dataPreviews.i18n-10862-s3.test.tsx (comment), ui/packages/app-shell/src/utils/recordFormNavigation.ts, ui/packages/app-shell/src/utils/__tests__/formViewChrome-26843.test.ts, ui/packages/i18n/src/namespaces/studio/en.ts, ui/packages/i18n/src/namespaces/studio/zh.ts, packages/spec/src/migrations/entries/semantic/19.internal-record-forms-not-loaded.ts, ui/packages/app-shell/src/views/metadata-admin/metadataAreaHost.ts, ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.tsx, ui/packages/app-shell/src/views/metadata-admin/DraftChangesPanel.tsx, ui/packages/layout/src/NavigationRenderer.tsx (TSDoc only), ui/packages/app-shell/src/hooks/useNavTargetLabel.ts, ui/packages/app-shell/src/hooks/useNavTargetIcon.ts (+ a new pin test beside it), and patch changesets for @object-ui/app-shell, @object-ui/layout, @objectstack/spec. Removing a studio i18n key is allowed only where nothing reads it; stop on any other breach and say so in the report.
    Container & model: S, mode:thread, model: default, effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: Studio and console still carry form-view leftovers after the protocol-19 form switch (#39003), a dead package-less Studio scope hint (#38785), and an unstated nav-row resolver memo rule with the same stale-first-render race in the icon and colour resolvers (#38859); app-shell and layout (objectui); Studio authors, today.
    Thread-read: none
    Premise: holds at origin/main 850d240 per the card thread's read; #39003 item 5 is the removal of a dead arm, not a re-point, so no product question.
    Pre-claim lane: domain:ui p3; folded into #39003's PR (same card thread and branch), Fixes #38859.
    Pre-claim deps: none.
    Prior rulings read: none on these cards.
    Serial constraints cleared: check-handover.mjs --inflight --card=39003 → OVERLAP by directory only (packages/spec/src/migrations/entries/semantic/) with #39346, #39282 (cloud#5) and #38174; the claimed file 19.internal-record-forms-not-loaded.ts is none of theirs. The thread runs overlap-check.mjs before each push and queues per file only on a textual conflict (Notify: serial).

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 3, 2026
  4. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CbFgiyGToVRBFwedwF

    Paused · 2026-12-03T14:52Z
    Bill paused all p3 work at 2026-12-03T14:46Z. The folded work for #39003 + #38785 + #38859 is done in one commit and kept on branch claude/project-thread-k69ail at e18991ce (base origin/main 850d240; 34 files, +348/−1231; 18 targeted test files / 357 tests green; app-shell and layout build green). No PR yet, and the claims stand.
    Resume from that branch. Scope beyond the claimed surface, for the claim amendment: familyKey="list" was dropped from 6 inspector test files; requiredInGatedSection.ts and its two tests were deleted, with the engine.inspector.view.gatedRequired.* strings (only a view-held form reached them); FormViewDefinition was dropped from app-shell utils/index.ts. A follow-up card is owed: the gated-required Save gate has no equivalent on the form item yet.

  5. objectstack-fleet commented on Dec 5, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

    Release: 2026-12-05T00:33Z · session session_01Utp6CaQsbKBMQtm6Tpsamd releases claim 7381554279 · because the maintainer hands this half-done card to the seat repo:objectstack@os-elon-musk (mailbox #39411) · into pm:queue, assignee cleared, for that seat to re-claim.
    Resume-from: claude/project-thread-k69ail@e18991ce
    Source: the maintainer (Bill), project chat of seat repo:objectstack@os-bill, 2026-12-05T00:26Z: 「你开发了一半的卡和 pr都交接给 elon,没处理的放回对立额,然后你就可以下班了」 (对立额 = 队列).

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cwiNRyb9B38wT2fjYj

    Claim: PM loop round 3 (zone em-bill takeover) · 2026-12-05T00:57Z · re-claims after os-bill's Release 7428388564; source: the maintainer (Elon), on the seat's card, 2026-12-05T00:48Z: 「接手,由 em-bill 专区做完」; os-bill's split knock 7428503319 on #39411 leaves this card.
    Session: session_016WV4cwiNRyb9B38wT2fjYj
    Account: os-elon-musk
    Branch: claude/issue-39003-wip
    Worktree: objectstack-issue-39003
    Domain: domain:ui (+ one domain:spec text file, card item 7)
    Seat: repo:objectstack@os-elon-musk
    Area: em-bill
    File surface: ui/packages/app-shell/src/views/metadata-admin/view-variant-model.ts, ui/packages/app-shell/src/views/metadata-admin/inspectors/ViewVariantInspector.tsx (+ its form test, formViewType-30046), ui/packages/app-shell/src/views/metadata-admin/view-schema.ts, ui/packages/app-shell/src/views/metadata-admin/view-schema.test.ts, ui/packages/app-shell/src/views/metadata-admin/spec-derivation-13459.test.ts, ui/packages/app-shell/src/views/ViewConfigPanel.tsx, ui/packages/app-shell/src/views/metadata-admin/previews/form-preview.ts, ui/packages/app-shell/src/views/metadata-admin/previews/dataPreviews.i18n-10862-s3.test.tsx (comment), ui/packages/app-shell/src/utils/recordFormNavigation.ts, ui/packages/app-shell/src/utils/__tests__/formViewChrome-26843.test.ts, ui/packages/i18n/src/namespaces/studio/en.ts, ui/packages/i18n/src/namespaces/studio/zh.ts, packages/spec/src/migrations/entries/semantic/19.internal-record-forms-not-loaded.ts, ui/packages/app-shell/src/views/metadata-admin/metadataAreaHost.ts, ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.tsx, ui/packages/app-shell/src/views/metadata-admin/DraftChangesPanel.tsx, ui/packages/layout/src/NavigationRenderer.tsx (TSDoc only), ui/packages/app-shell/src/hooks/useNavTargetLabel.ts, ui/packages/app-shell/src/hooks/useNavTargetIcon.ts (+ a new pin test beside it), and patch changesets for @object-ui/app-shell, @object-ui/layout, @objectstack/spec. Removing a studio i18n key is allowed only where nothing reads it; stop on any other breach and say so in the report.
    Container & model: M, mode:subagent, model: default (dispatch-gates --tier at 56bed066: no path-derived mandate), effort: high (reason: a 34-file fold a day behind main, conflicts expected on merge)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: Studio and console still carry form-view leftovers after the protocol-19 form switch (#39003), a dead package-less Studio scope hint (#38785), and an unstated nav-row resolver memo rule with the same stale-first-render race in the icon and colour resolvers (#38859); app-shell and layout (objectui); Studio authors, today.
    Thread-read: 7428388564
    Premise: holds at origin/main 850d240 per the card thread's read; #39003 item 5 is the removal of a dead arm, not a re-point, so no product question. Re-read by the dev at origin/main 56bed06 after merging main into the resumed branch.
    Pre-claim lane: domain:ui p3; folded into #39003's PR (same card thread and branch), Fixes #38859.
    Pre-claim deps: none.
    Prior rulings read: none on these cards.
    Serial constraints cleared: check-handover.mjs --inflight --card=39003 at 56bed06 → NO OVERLAP READ; the one unread surface is #38710 (os-tesla, knowledge segmenter in knowledge-turso/pgvector), read by hand: none of these files. The dev runs overlap-check.mjs before each push. Fold: #39003 + #38785 + #38859, one branch, one dev, one PR with three Fixes lines.
    Resume-from: claude/project-thread-k69ail@e18991ce

  8. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uienhancementpm:dispatchedpriority:p3

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions