Skip to content

bug: spark exit funding notification stays after a redo turns running #1899

Closed

Description

@ovitrif

Description

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.

Raised by @coreyphillips in #1898 (review) and #1898 (comment).

Activity

  1. added this to the 3.2.0 milestone on Nov 12, 2026
  2. ovitrif commented on Nov 12, 2026

    @ovitrif
    CollaboratorAuthor

    Milestone 3.2.0: this issue is a Spark emergency exit bug, and the exit ships in 3.2.0 (#1892).

  3. self-assigned this
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions