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 }}
Repository navigation
bug: spark exit funding notification stays after a redo turns running #1899
After a Redo hold moves a funding Spark exit to Running on a later tick, the posted SparkExitAlert.Funding notification stays in the shade while the screen shows Running.
The notification is withdrawn only in SparkExitRepo.updateAlerts, through SparkExitAlerts.isFundingAskWithdrawn (SparkExitWorker.kt), which needs previous.isUnverifiedAsk. driveWhileFunding clears that flag on the Redo tick, so the withdrawal fires only when the held build runs in that same tick. The hold moves the exit to Running on a later tick when:
the Redo tick finds the rebuild not due yet, within REBUILD_INTERVAL;
the Redo tick's prepare is empty, so the hold keeps NeedsFunding;
the Redo tick's first build comes up short.
This predates #1898: the old hold-end adoption made the same move.
To do
Withdraw the funding ask when a Redo exit moves from NeedsFunding to Running with no new funding, or keep a flag for the ask through the Redo.
Tests for fix: spark send and exit follow-ups #1898's hold (Corey's nit): use a prepare whose funding the held inputs pay, and cover the failed-only branch's isBuilt = true and a later short build asking again.
Activity
ovitrif commentedon Nov 12, 2026
Milestone 3.2.0: this issue is a Spark emergency exit bug, and the exit ships in 3.2.0 (#1892).