Skip to content

Cross-currency pick follow-ups: no note on a re-pick over a filled cell, an unbounded opening wait, record forms outside the gate, and a code-plus-amount pick #36412

Todo

Description

@objectstack-fleet

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Follow-up from #36249 (PR #36351, a lookup pick stops copying a price across currencies). Found by the L2 record 7077947187 on PR #36351 (S2, S3, S4), all graded non-blocking and carried here. Filed by the seat. Parent: #36249.

What happens

  1. A re-pick over a filled cell says nothing (S2). The withheld note shows only while the target is empty. On a re-pick over a filled cell (a same-named copy, or overwrite: true), the old product's price stays under the new product with no note, while the describes say the pick "says why".
  2. The opening fill can wait for ever (S3). followedParentPending in LookupField.tsx never clears if the parent read fails, the source has no findOne, or no parent object is stamped. Then no pair fills on opening (description included) and nothing is said. Before fix(fields): a pick leaves an amount in another currency empty and says why #36351 the opening fill ran.
  3. A record form outside gateFormFields still copies across currencies (S4). It carries no target stamp, so the rule does not reach it. The dev noted this and did not file it.
  4. A pick that fills a code field and its amount together withholds the amount (S5 of L2 7081121014). A target's currency is read on the line or record as it stood before the pick. Repro, places and done-when: comment 7081194132.

To do

  1. Say why on a re-pick over a filled cell too, or narrow the describes to "an empty target".
  2. Bound the pending wait: clear it when the parent read settles, fails or cannot run, and fill what does not depend on currency.
  3. Stamp the target on every record-form host, or list the hosts that keep the old behaviour in the describe.
  4. Judge an amount against the line or record with this pick's own writes to the code field applied (gridAutofillCurrency in GridFieldWidget.tsx, currencyFor in LookupField.tsx).
  5. Pin each one with a control.

Blocked-by: #36351

Grade

p2 · area:ux · domain:ui (same reach as #36249).


Generated by Claude Code

Activity

  1. added
    bug
    priority:p2
    pm:blocked
    domain:ui
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: area, pm:blocked and p2 stand as filed; rationale: area:ux · Bug · follow-ups of the cross-currency pick (#36249): no note on a re-pick over a filled cell, an unbounded opening wait, and a record-side gap. Graded non-blocking on the parent PR · size S.

  3. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jTM6Q7J3o7taPraVR2

    Item 4, added from the #36351 delta L2 (S5, comment 7081121014), at the seat's request. A target's currency is read on the line or record as it stood before the pick, so a pick that fills a code field and its amount together withholds the amount.

    • Repro: a product has a currency_code field and a unit_price in record mode over it, and the line is shaped the same way. On a fresh line, the grid's same-named copy writes currency_code, then judges unit_price against a line that holds no code yet. The price is withheld, and the note says no currency is chosen, right beside the code the same pick just wrote. Before fix(fields): a pick leaves an amount in another currency empty and says why #36351 both values copied.
    • Where: gridAutofillCurrency in ui/packages/fields/src/widgets/grid-field/GridFieldWidget.tsx gets the row before the patch. currencyFor in ui/packages/fields/src/widgets/LookupField.tsx reads the record being edited the same way for declared pairs.
    • Done when: an amount is judged against the line or record with this pick's own writes to the code field applied, pinned through the grid and through ObjectForm.
  4. changed the title [-]Cross-currency pick follow-ups: no note on a re-pick over a filled cell, an unbounded opening wait, and record forms outside the gate[/-] [+]Cross-currency pick follow-ups: no note on a re-pick over a filled cell, an unbounded opening wait, record forms outside the gate, and a code-plus-amount pick[/+] on Nov 22, 2026
  5. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

    One more item for this card, from PR #36351's delta review on head 9ac9c94 (S7 closed). This is not a defect of #36351: a pick is judged once, at the pick. If a price is copied under USD and the record's code is then changed to EUR in the same edit, the copied price stays. A withheld note also keeps the code it was judged under. This holds on all three hosts, and for a hand-typed price too. When this card bounds the currency rules, decide whether a code change re-judges the filled amounts or shows a note. Also N9: the record-page editor now re-renders on every keystroke in any record field. That is correct and not measured, so measure it if a slowdown shows.

  6. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Addendum for this card's follow-up set (found by the #36321 card thread, PR #36578, measured on its head b37d813a5): on a New Invoice whose header currency is still entirely unset, a product picked on a line leaves Unit Price empty with the "no currency is chosen here yet" note. This is the safe direction (no foreign amount is copied into the home currency), and PR #36578 restores the case where the header shows a currency (the picker's trigger now carries its code). Folded here rather than filed alone, as one more "pick before the gate can tell the currency" case; the seat holding this card decides whether it belongs in scope.

  7. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Unblock · 2026-11-23T12:24Z: this card's only Blocked-by:, #36351, closed at 2026-11-22T22:55Z (merged or completed). The pm:blocked label was stale, so the card goes back to pm:queue. The grade is unchanged. Whoever picks it up re-reads the premise on a base that contains #36351.

  8. added
    pm:queue
    on Nov 23, 2026
  9. 1 remaining item

  10. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Ruled: keep the amounts and note · 2026-11-24T01:08Z

    The question raised in comment 7084290758 (in one edit, after the record's currency changes, what happens to amount cells already filled) went to the maintainer as a decision card in the os-support-ai fleet project after an independent contract-tier review. The maintainer (Yibo Wang) picked at 2026-11-24T01:07Z, verbatim: 「保留金额并提示」.

    Ruling

    1. Filled amounts are never changed or cleared by a currency change in the same edit.
    2. An amount a lookup pick copied in gets a note beside it naming the currency it was copied under and the record's current one (for example "copied as USD 100, the record is now EUR"), in the same voice as the Showcase EUR invoice: a picked product copies its home-currency price into the line as euros; the edit form's subtotal shows no currency symbol #36249 cross-currency note (ruling 7075336705, 「币种不同就不填并说明」).
    3. A withheld-pick note already shown refreshes to the new currency.
    4. Hand-typed amounts get no note.

    Scope note: once a record has saved child rows following its currency, changing the code is already refused (ADR-0144 D2), so this covers new records, records with no saved lines, lines staged in the same edit, and declared pairs on the record's own amounts. Not taken: clearing pick-copied amounts; leaving it as is.

    This is a new item on this card beside items 1–4; seat 3's ux-B area builds items 1–4 first, this item may ride the same PR or follow as Refs #36412.

  11. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop round 1 (area ux-B)
    Session: session_01WGufzhoBbwh8URjwQHde8v
    Account: os-support-ai
    Branch: claude/issue-36412-cross-currency-pick-followups
    Worktree: objectstack-issue-36412
    Domain: domain:ui
    Seat: repo:objectstack#3
    Area: ux-B
    File surface: ui/packages/fields/src/widgets/LookupField.tsx (item 1 note on a re-pick over a filled cell; item 2 bound followedParentPending; item 4 currencyFor with this pick's own code writes applied), ui/packages/fields/src/widgets/grid-field/GridFieldWidget.tsx (item 1 grid face; item 4 gridAutofillCurrency with the patch applied), the fields helpers they call (planDeclaredLookupAutofill and the grid autofill helpers), ui/packages/plugin-form/src/** record-form hosts and recordFormStamp.ts (item 3: stamp the target on every record-form host, or list the hosts that keep the old behaviour in the describe), their existing tests, the console/fields i18n packs if a note string is added (all locale packs, key parity), one changeset listing every published package touched. The ruling item (7118795825, 「保留金额并提示」) rides this PR if the diff stays moderate, else follows as Refs #36412
    Container & model: M (card graded S; four items plus the ruling item across @object-ui/fields and @object-ui/plugin-form), mode:subagent, model: default (dispatch-gates --tier at 7a5ae65e54e: "no path-derived mandate"), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: #36351 (#36249) introduced the cross-currency gate; the L2 records 7077947187 (S2–S4) and 7081121014 (S5) graded these non-blocking and carried them here
    Thread-read: 7118795825
    Premise: holds (re-read on a base containing #36351: LookupField.tsx:1237 followedParentPending, :1244 currencyFor, :1321 the opening fill's wait; GridFieldWidget.tsx:485 gridAutofillCurrency, called at :971 with the pre-patch row)
    Serial constraints cleared: PR #36863 (ux-C, LookupField.tsx) merged 2026-11-24T06:51Z; no open PR touches LookupField.tsx, GridFieldWidget.tsx or the plugin-form record-form hosts (open-PR file sweep at 07:2xZ); in-flight #36807 (this area) stays off LookupField.tsx by its claim
    Pre-claim lane: domain:ui. All four sites are console field widgets and form hosts; no spec key changes. If item 1 or item 3 is closed by narrowing a describe instead of the behaviour, that is describe text only and is reported back before it is taken. This lane
    Pre-claim deps: Blocked-by: #36351 closed 2026-11-22T22:55Z (unblock 7101028948)
    Prior rulings read: ruling 7075336705 on #36249 「币种不同就不填并说明」 (the note voice); maintainer ruling 7118795825 on this card, verbatim 「保留金额并提示」 (filled amounts never changed or cleared by a same-edit currency change; a pick-copied amount gets a note naming the copied-under and the current currency; a withheld note refreshes; hand-typed amounts get none); ADR-0144 D2 (code change refused once child rows are saved) bounds that item's scope. Addendum 7088192432 (header currency unset → withheld with note) is the safe direction and stays as is. check-prior-rulings.mjs --card 36412 at 7a5ae65e54e: 0 ruling-shaped comments by first line; ADR hits are keyword matches that do not govern this; no conflict

  12. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 24, 2026
  13. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzhoBbwh8URjwQHde8v
    os-dev-report

    {
     "issue": 36412,
     "status": "done",
     "branch": "claude/issue-36412-cross-currency-pick-followups",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/36918",
     "head": "12d8d3bb3bd66b741d2f0b0e7fc93ff63ea942ae",
     "session": "session_01WGufzhoBbwh8URjwQHde8v",
     "premise_still_valid": true,
     "summary": "Items 1-4 and To-do 5 built; PR carries Refs #36412 (ruling item 7118795825 not built: total would pass the 900-line bound, and a refreshed withheld note whose new record currency equals the picked amount's own is not settled by the ruling). Item 1: withheld values record held, the note stands while the target still holds it, grid and record face, with a kept sentence. Item 2: useFollowedParentRead reports none/pending/read/unread; the opening fill waits only while pending; unread withholds the amount with targetCurrencyUnread and fills the rest. Item 3: measured, every record-form layout already stamps via gateFormFields; pinned across six layouts; the standalone form node (components) keeps the old behaviour and is listed in the recordFormStamp header. Item 4: judgePickWrites judges every write of one pick with that pick's code write applied (amountCurrencyOf third argument), pinned through the grid and ObjectForm.",
     "tests": "At 12d8d3bb3bd under os-verify-lock: vitest packages/fields/ packages/plugin-form/ packages/i18n/ -> Test Files 682 passed, 1 skipped; Tests 9796 passed, 21 skipped; VERDICT command-exit 0. type-check fields, plugin-form, i18n exit 0. Ablations (ablation-replace, src alias, restored blob == HEAD, git diff HEAD empty): item 4 judgeCopy writes -> {} : 4 failed/60; item 2 pending||unread : 2 failed/28; item 1 withheldStillStands -> isEmpty : 2 failed/60.",
     "gates": "dispatch-gates --commands at 12d8d3bb3bd: 41 derived; 40 exit 0; NOT MEASURED: pnpm --dir ui exec vitest run scripts/ (SIGKILL beside package suite, then exit 124 at 590s; closure-budget case needs a console build), CI-run. --ran: 41 derived, 40 run, 1 NOT-MEASURED, 0 UNRUN. ui check:new-line-citations 0 new, exit 0. overlap-check VERDICT clean exit 0 before each push. PR check-runs at 12d8d3bb3bd: 58 runs, 45 success, 13 skipped, 0 failing; Lint & Repo Gates, TypeScript Type Check, Test Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI 16/16, Build & E2E UI, Live E2E UI, Dogfood Regression Gate, Check Changeset all success.",
     "dogfood_battery": "n/a - no ! in the PR title and Clause-2 is no",
     "line_budget": "714 changed lines (+644/-70, 21 files) vs ~900 bound for the ruling item",
     "files_changed": 21,
     "mcp_calls": "0",
     "api_writes": "2 - relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /issues/36918/assignees), this os-dev-report comment (POST /issues/36412/comments)",
     "open_questions": [
      {
       "question": "Ruling item 7118795825: build as a follow-up, and what does a withheld note show when the record's new currency equals the picked amount's own?",
       "options": [
        "A drop the note (cell stays empty)",
        "B keep the note naming the picked amount and say the record is now in that currency",
        "C fill the empty cell"
       ],
       "recommendation": "B, because it keeps the picked price in view without writing a value the ruling did not order"
      },
      {
       "question": "Standalone form node (components form renderer) still copies across currencies: stamp it there or narrow the FieldSchema.lookupAutofill describe?",
       "options": [
        "A stamp from the object schema when objectName is set (components change)",
        "B narrow the spec describe to record forms and grids"
       ],
       "recommendation": "A, because the describe's rule then holds everywhere a pick fills"
      }
     ],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: PM seat · standalone form node with a lookupAutofill field carrier is not stamped, copies across currencies; not measured through a public door, noted not filed"
     ],
     "deviations": "none",
     "Dev-effort": "high",
     "Rounds": 1
    }
  14. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Release · 2026-11-24T09:32Z · area ux-B: items 1–4 are done in PR #36918, which merged at 2026-11-24T09:32Z (merge commit 4f19091997f67617cfdf48b5f7051e7bf86725de, L1 ACCEPT 7127057550). The card stays open for the ruling item and goes back to pm:queue. The ux-B claim (7124961299) ends here because the ruling item is p2, and the maintainer's priority ruling (2026-11-24T08:53Z, relayed by the seat) puts ux capacity on the Studio epic #36890 and on area:ux p1 cards.

    ⚠️ Maintainer question first: ask this before building

    Ruling 7118795825 (「保留金额并提示」) does not settle one visible case. Suppose a pick's amount was withheld because the currencies differed, and the target is still empty. Then, in the same edit, the record's currency changes to the picked amount's own currency. What should the refreshed withheld note show?

    • A. Drop the note. The cell stays empty.
    • B. Keep the note, naming the picked amount and saying the record is now in that currency.
    • C. Fill the empty cell.

    The #36918 dev and ux-B both recommend B. It keeps the picked price visible without writing a value the ruling did not order. C goes against the spirit of rule 1.

    What remains: the ruling item, verbatim scope from 7118795825

    1. A currency change in the same edit never changes or clears a filled amount.
    2. An amount that a lookup pick copied in gets a note naming the currency it was copied under and the record's current currency, in the Showcase EUR invoice: a picked product copies its home-currency price into the line as euros; the edit form's subtotal shows no currency symbol #36249 note voice (ruling 7075336705).
    3. A withheld-pick note that is already shown refreshes to the new currency.
    4. A hand-typed amount gets no note.

    Scope is bounded by ADR-0144 D2.

    What #36918 left in place for it

    • A withheld value now records held (what its target held at the pick), and withheldStillStands keeps the note while the target still holds that value.
    • judgePickWrites judges one pick's writes together. amountCurrencyOf(…, writes) applies the pick's own code write.
    • useFollowedParentRead reports none / pending / read / unread. An unread parent withholds with reason targetCurrencyUnread.
    • L1 nit N1 is open for whoever comes next: the "no parent object" and "answered no row" arms of unread have no pin of their own.
    • Item 3 was closed by measurement. Every record-form host already stamps (listed in the recordFormStamp.ts header). The standalone form node in @object-ui/components is the one gap, and it went to triage as its own card (mailbox pm:mailbox — triage#1 · os-warren #36743, comment 7127028135).

    Size

    Items 1–4 came to 714 lines. Under the per-card 3,000-line rule, this card's PRs together must stay under 3,000, or each of its PRs is Tier H.

    No local branch is held. #36918's branch is merged.

  15. added
    pm:queue
    and removed
    pm:dispatched
    on Nov 24, 2026
  16. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

    Ruled: B · 2026-11-25T09:16Z · by the maintainer, in seat repo:objectstack#4's session. Verbatim: 「#37257 B、#37230 A、#37236 B、#36412 B」.

    This answers the open question under ruling 7118795825 (「保留金额并提示」, item 3). It concerns a withheld cross-currency pick whose note is already shown, when in the same edit the record's currency changes to the pick's own currency.

    With items 1–4 landed by #36918, this is the last open item on the card. It is ready for dispatch and goes to zone a4-C.

  17. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

    Claim: PM loop round 1 · the ruling item (7118795825) plus its branch B (7158109013); items 1–4 landed in PR #36918
    Session: session_01QSeKYnagJvGbCtNg2PhvgW
    Account: os-justin
    Branch: claude/issue-36412-currency-change-notes
    Worktree: objectstack-issue-36412
    Domain: domain:ui
    Seat: repo:objectstack#4
    Area: a4-C (named for this zone by the seat)
    Epic: none
    File surface: ui/packages/fields/src/widgets/LookupField.tsx and ui/packages/fields/src/widgets/grid-field/GridFieldWidget.tsx (the cross-currency note family: the pick-copied amount note, the withheld note's refresh on a same-edit currency change, branch B), the fields helpers they call (GridField.ts, planDeclaredLookupAutofill and the withheld/held helpers), the record-form hosts in ui/packages/plugin-form/src/** only where the record's current currency must reach the note, the console/fields i18n packs for any new note string (all locale packs, key parity), their tests, .changeset/*. Stop on breach; explain in the report.
    Container & model: M, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: platform UI code in objectstack (a same-edit currency change leaves pick-copied amounts unexplained, and a withheld note does not follow the record's new currency) | none | users editing quotes, orders and invoices whose lines copy prices from products in another currency
    Thread-read: 7158109013
    Premise: holds. Measured on origin/main: no note names the currency an amount was copied under, and nothing re-reads a shown withheld note when the record's currency changes. withheldStillStands (LookupField.tsx:2464, GridFieldWidget.tsx:1738) keeps a withheld note only while the target holds its value, as #36918 left it (release 7127574237). The ruling item 7118795825's four points are not built; the dev re-measures point 1 (no same-edit change or clear of a filled amount) before code. Size budget: #36918 used 714 lines, and this card's PRs must total under 3,000.
    Serial constraints cleared: open-PR search for LookupField / GridFieldWidget finds #37264 (fill-in dialog option visibleWhen; fields package). overlap-check before the first push decides, and a textual conflict with #37264 or any sister PR is stop-and-report.

    Pre-claim lane: domain:ui; every path is under ui/**.
    Pre-claim deps: Blocked-by: #36351, closed; the maintainer's question on branch B is answered (7158109013).
    Prior rulings read:

  18. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 25, 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:uipm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions