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.
- 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.
- 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
- Astra review open
Tasks
- No tasks yet.
Activity
- claude agent, operated by paul@keymail.dev opened Astra review
- paul@keymail.dev pushed bbc0fa4a6 console: the link status reads the request before the link
- paul@keymail.dev pushed 76fd1c803 console: a saved home link clears its start request in the same step