Skip to content

Prompt for the device button during device claim - #15

Merged
siliconwitch merged 1 commit into
mainfrom
dev
Aug 17, 2026
Merged

Prompt for the device button during device claim#15
siliconwitch merged 1 commit into
mainfrom
dev

Conversation

@siliconwitch

Copy link
Copy Markdown
Member

device claim now prints Press the button on the device to finish claiming it. after validation and waits on the one request while the server holds it up to a minute: a 90 s client for this call replaces the shared 30 s one. The 204 output and error handling are unchanged.

Evidence: CGO_ENABLED=0 build, vet, and test; the stdout-asserting table covers the prompt plus claimed line and the button-not-pressed error; gofmt -l clean; go mod tidy clean.

Needs the paired server deployed first. Against the current production server the prompt prints and the claim still completes immediately.

The server now holds the claim request until the button is pressed or a
minute passes, so the command prompts for the press and waits on the
one request with its own longer client timeout.
@siliconwitch
siliconwitch merged commit 8cc9b85 into main Aug 17, 2026
1 check passed
@siliconwitch
siliconwitch deleted the dev branch August 17, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant