Skip to content

review follow-ups of PR #37637: the runtime draft bar keeps a stale token after "reload", publishItem pin docs #37648

Description

@objectstack-fleet

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Filing gate: ① (review follow-ups, one card per PR) · Source: fleet (nit N6 of #37387's review, carried on card #37440 and not taken by PR #37637; contract review record 7198547999 on PR #37637, nits N1 and N2, adopted at ACCEPT)

What happens

PR #37637 (Fixes #37440) pins every draft-then-publish Save to its own draft receipt. Merging it closes #37440, which is the only card that recorded these items:

  • The runtime draft bar keeps the old token after "reload" (N6 from feat(rest,metadata-protocol,spec): the per-item publish takes a draft-version pin, so Save to this view never publishes a moved draft #37387's review). After a refused Save is resolved with "reload" in DraftConflictDialog, the runtime draft bar (RuntimeDraftBar / ViewConfigPanel) still holds the token from before the reload. Its Publish then fails closed until the panel is reopened. Expected: the reload hands the bar the reloaded draft's version.
  • parentVersion JSDoc (N1): the draftVersion JSDoc on client.meta.publishItem says an empty string pins nothing; the parentVersion JSDoc does not, though '' is treated the same.
  • SDK page (N2): the publishItem example in content/docs/api/client-sdk.mdx shows only message; it does not show the two pins.

Category ①: a user-visible Publish that fails until the panel is reopened, plus doc gaps on a shipped client method.
Priority: p3. The Publish fails closed (nothing wrong goes live), and reopening the panel recovers it.
Business reason: an administrator who resolves a draft conflict by reloading, then clicks Publish in the draft bar, sees the publish refused for no visible reason.
Reader: the ux lane that next touches the metadata-admin draft bar (seat 2, s2-ux-S).
Dedupe: searched open issues for "PR #37637" and RuntimeDraftBar reload token: 0 hits.
Related: #37440, PR #37637, #37387, #36350.

Grade

area:ux · Bug · minor · reach: read (review of #37387) · evidence: read → p3

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Bug · priority:p2 · pm:queue · size S; rationale: the runtime draft bar keeps a stale token after "reload"; Publish fails closed and reopening the panel recovers it. Suggested p3, raised to p2 because UX has no p3.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgUuauSMJu1nVSQRQri

    Claim: PM loop · 2026-11-26T22:5xZ
    Session: session_01L6bhgV6i8jfWwSXjpWJrjA
    Thread session: session_01L6bhgUuauSMJu1nVSQRQri
    Account: os-sales
    Branch: claude/project-thread-th9squ (pushed after #37667 merges, serially on the area's one branch)
    Domain: domain:ui
    Seat: repo:objectstack#2
    Area: s2-ux-L (slot given by the seat at 22:46Z)
    Scope: all three items.
    File surface:

    • ui/packages/app-shell/src/views/ViewConfigPanel.tsx + RuntimeDraftBar.tsx: after a refused Save is resolved with "reload", the panel's re-read of the stored view hands the draft bar the reloaded draft's version (the version that read installed), so the bar's Publish is pinned to the draft now shown, never to the one from before the reload, and never to a fresh re-read of the bar's own
    • packages/client/src/index.ts: the parentVersion JSDoc of meta.publishItem says an empty string pins nothing and is not sent, as draftVersion's does
    • content/docs/api/client-sdk.mdx: the publishItem example shows draftVersion (a draft save's receipt version) and parentVersion
    • tests; one changeset
      Container & model: S, mode:thread, model: default — no path-derived mandate, effort: medium
      Clause-②: no
      Metadata-protocol: none
      Skills-docs: none (no skill teaches the draft bar's pin or publishItem's options)
      Responsibility: objectui console (ViewConfigPanel re-reads its buffer on "reload" but never tells RuntimeDraftBar, which keeps the pin it read on open; the client JSDoc and SDK page lag #37440) | none | administrators who resolve a draft conflict by reloading and then Publish from the draft bar; reachable today
      Thread-read: 7198820056
      Prior rulings read: none on this card; Publish of a view draft takes a draft-version precondition, so an unpinned draft write cannot be published by Save to this view (after #36137) #36350 (the bar's Publish is pinned to the draft it shows; never a re-read), Draft-then-publish callers still publish without the draftVersion pin #36350 added (Studio save bar, design-mode menu, record tabs, extension arrangement, admin detail save, client publishItem) #37440 / PR fix(client, app-shell): every draft-then-publish Save publishes only the draft it wrote #37637 (contract review 7198547999, N1 N2)
      Premise: holds (static read on origin/main e491fce: handleViewConfigSave answers false on 'reloaded', so ViewConfigPanel bumps no savedSignal; RuntimeDraftBar sets shownDraftVersionRef only in refresh() on open/name change and on a savedSignal; the reload's re-read installs a new pin in the guard only. The parentVersion JSDoc has no empty-string sentence; the SDK example shows message alone.) A red test on main pins the first item before the fix.
      Serial constraints cleared: no open PR touches RuntimeDraftBar.tsx, ViewConfigPanel.tsx, packages/client/src/index.ts or client-sdk.mdx (read 22:5xZ); overlap-check before the first push
      L2: not owed by path (no packages/spec/src, no Clause-②, no protocol change); the seat decides at L1
  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 26, 2026
  6. removed
    pm:dispatched
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions