carlos / platform Public

homelink-linked-clears-start

Product fix (8a3d302 approved, #897). GET /api/cli/link could answer linked:true together with a pending start: the poll saved the link, and its goroutine cleared the request only afterwards. TestHomeStartPollStores read that gap on CI. The CLI was unaffected, since it checks linked first.

  1. homeLinkSave clears the request (if it's still this one) right after PutHomeLink, under ops. Lock order is ops then mu, as on every path.
  2. The status handler reads the request before the link and drops it from a linked answer. Without this, (1) would let a mid-save read answer "not linked, no request", which the CLI's wait calls lost.

Witness: a 300 ms delay before the poll's own clear made the test fail with the CI output every time; with this change it passes. The link tests in console and root pass. Astra approved in one round.

Commits 2
Discussions 1 1 open
Tasks 0/0 done

Discussions 1 open

Tasks

  • No tasks yet.

Activity