Skip to content

Signing out of Google Messages says when this computer may stay listed on the phone - #1050

Open
unRekable wants to merge 1 commit into
mainfrom
fix/messages-unpair-notice
Open

unRekable wants to merge 1 commit into
mainfrom
fix/messages-unpair-notice

Conversation

@unRekable

Copy link
Copy Markdown
Collaborator

What changed and why

Signing out of Google Messages asks the phone to drop this computer. When that cannot be done (a QR pairing has no id to drop, the phone stays quiet, the relay refuses), chatd threw the refusal away, so nobody was told that this computer may still be listed on the phone (#703). The refusal's words now ride on the answer: Status has a field notice. Settings › Accounts shows chatd's words under that network until dismissed. A sign-out while offline, which the tests only checked against a log file before, is told the same way.

Type

  • feature
  • fix
  • perf
  • refactor
  • chore
  • docs

Platforms

  • windows
  • macos
  • linux
  • android
  • ios

Proof

Scenario: e2e/scenarios/messages-sign-out-notice

The scenario starts this build's chatd on the scripted phone (TINYCLIENT_MESSAGES_FAKE) and signs out four times over chatd's socket. A QR pairing, a phone that stays quiet and Messages offline must each carry the sentence; a sign-out whose unpair is answered must not. On main no sign-out answer carries notice, so three steps are red there.

Lab run: not made. The driver was exercised only against a stand-in for chatd's answers, and the line in Settings › Accounts was never seen on screen.

Also run on this branch on Windows before this pull request: cargo build --workspace --all-targets --features tinyclient/gui, then cargo nextest run --workspace --features tinyclient/gui (3682 passed, 28 skipped; new among them three scripted-wire tests in tests/messages.rs, a protocol wire test and a window test), then cargo test --workspace --doc --features tinyclient/gui.

Not shown, because it needs a live account: whether the phone agrees to the unpair. This tree still does not judge the phone's answer, because the published client sends the request without waiting for one and no reply layout is published. And a phone that answers with something empty is reported as quiet, so the sentence may then show without cause; it is worded with "may".

Compatibility

The protocol grows by one field on an existing answer. It has a default and is left off the wire when empty, so an older frame still reads; a test holds that.

Risk and rollback

A line appears in Settings › Accounts after a sign-out that could not unpair. Revert the commit.

Release note

Signing out of Google Messages says when this computer may stay listed on the phone.

Part of #703.

@unRekable
unRekable requested a review from itz4blitz as a code owner December 5, 2026 15: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