Inner Auto-Digitize modal 'Confirm & Edit' button shows success message without API call #62
Labels
No labels
blocked:commit-ready-failed
blocked:gate-fetch
blocked:gate-lint
blocked:gate-plan
blocked:gate-research
blocked:needs-attention
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:verify-failed
bug
deferred
feature-request
in-progress
needs-decompose
needs-triage
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/Kimi_Agent_Brother_10_Digitizing_App#62
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
After clicking the inner modal "Confirm & Edit" button (ref
e65) in the Auto-Digitize preview modal, the UI updates with "Auto-digitize complete! Design ready for editing" but no/v1/digitizerequest is ever sent. The "complete" message is a hardcoded UI string that fires unconditionally on the click handler, regardless of whether any network work happened.Reproduction
e12) or Design Settings Auto-Digitize (e48).e61/e62/e63) and a Confirm & Edit button (refe65)./v1/digitizeduring this sequence.Code path
Likely
RightPanel.tsx:217:Then a separate dispatch flips to
'digitized'and shows the toast. The actualdigitize()call fromuseWorkspace.ts:432is never triggered in this flow — the modal'sConfirm & Editis just a state transition.Expected behavior
The "Confirm & Edit" should fire
runAutoDigitize()(the actual API-calling handler) before transitioning to'digitized'. Or the message should be reworded to "Preview generated" so users don't think the digitize completed.Severity: high — same family as #32 (silent no-op on Auto-Digitize). User confusion guaranteed.
Moved from Mark/easystitch-service#34 — these are UI bugs in the ThreadCraft frontend, not API bugs on the easystitch-service. They were originally filed on the wrong repo because both projects are part of the same ThreadCraft shakedown work, but the fix surface is here.
Original issue #34 retained as a cross-reference.
Fixed by commit 20007d1 (pushed via merge fe4a509). Moved the 'Auto-digitize complete!' toast out of commitDigitizedResult into runAutoDigitize so it only fires on a real /v1/digitize success path. Re-entry guard inside runAutoDigitize now uses the abort controller (authoritative in-flight marker) instead of the brittle appState check. Regression test: src/components/workspace/issue-62.test.ts.