From 37f8fe9bc1cbd372528065ace656d4a92f68d22f Mon Sep 17 00:00:00 2001 From: faumaray Date: Sat, 24 Oct 2026 12:57:30 +0300 Subject: [PATCH] Say what the transfer commands did before f1df886: a notice and a hanging report, not a dropped connection The review of the merge-and-minors round read ts/voice.rs: the Input::Cmd arm sends a command's error as LinkEvent::Error and keeps the connection, so the old anyhow::bail! never ended the TeamSpeak session. The 17.7 row said it did. Co-Authored-By: Claude Fable 5.1 --- docs/session-seam.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/session-seam.md b/docs/session-seam.md index b88f945..169d023 100644 --- a/docs/session-seam.md +++ b/docs/session-seam.md @@ -1662,7 +1662,7 @@ judges is the tree that will be merged. No history was rewritten. | `87926e9` | Minor 1. `link::connect::credential` refuses a TeamSpeak `IdentityBlob` whose JSON is empty (or only white space) with `SessionError::Protocol("the TeamSpeak identity cannot be read: it is empty")`, before any connector is asked: sent as it was, it was the empty `Credential::Foreign` blob that the TeamSpeak connector reads as "make an identity up", which only `identity: None` may ask for. Two tests: `link::connect::tests::a_teamspeak_identity_without_json_is_refused` (`""` and `" \n\t"` are refused, none is still the empty blob) and, through the engine on the fake host, `a_teamspeak_identity_without_json_is_refused_and_no_session_is_made` (`ConnectVoice` ends in `Disconnected` with the error `voice: the TeamSpeak identity cannot be read: it is empty`; the connector's `connects()` is empty and `last_session()` is `None`; a connect without identity works afterwards). Both fail with the check switched off. The comment of `ts::identity::to_blob` ("a blob with no JSON is refused when it is used, in words") is unchanged and holds on both paths now: the gateway's `from_blob` always refused it (`ObserveGateway` ends with its reason, without a login). | | `f0d20cc` | Minor 2. `QueryLogin.transport` has its doc comment, the only public field of the type without one. | | `76a884a` | Minor 3. 4.1 (the `TsConnector` owns the myTeamSpeak account since `a451f02`; it is not registered "with the engine's watches"), the 16.1 table (`src/ts/ts_session/live_tests.rs`), the section 10 acceptance `rg` (given as run from the repository root, `--glob '!**/ts/**'`, and the glob it takes from `crates/voelin-core/src`), the module documentation of `ts/voice.rs` (it linked `crate::TsLink`, which is `ts::ts_link::TsLink` and crate-private), `link/tests.rs` (`ts/ts_session/driver.rs`), the comment on `IdentityOrigin::Imported` in `voelin-store` (`voelin_core::ts::identity`; one word, the crate is otherwise untouched) and `docs/research/ui-review.md` (`ts/voice.rs`; the line number of the channel subscription, which has moved twice since the note was written, is replaced by where the code is). One more of the same kind that the list did not name: `docs/audio.md` named `voelin-core/src/link.rs` for `LinkCmd::Audio`, which is `link/mod.rs`. | -| `f1df886` | Minor 4. `ts::voice::Voice::command` answered `LinkCmd::Download`, `Upload` and `CancelTransfer` with `anyhow::bail!`, which ends the whole TeamSpeak connection (chat, voice, presence and the stream task with it). `Download` and `Upload` now answer their `report` with `TransferState::Failed("this link does not run transfers itself")` and the connection goes on; `CancelTransfer` has no report and nothing to cancel, and is logged at debug. (Making the variants unrepresentable for the inner link would mean a second command enum next to `LinkCmd`; the match arm is smaller.) Test: `ts::voice::account_tests::a_transfer_command_fails_the_transfer_and_not_the_connection` gives an unconnected `Voice` the three commands: each returns `Ok`, the two reports see exactly the `Failed`, nothing is pending. | +| `f1df886` | Minor 4. `ts::voice::Voice::command` answered `LinkCmd::Download`, `Upload` and `CancelTransfer` with `anyhow::bail!`. The commit message and the slice 3 review said that this ends the whole TeamSpeak connection; it does not: the `Input::Cmd` arm of `ts/voice.rs` catches the error and sends it as `LinkEvent::Error`, which the driver turns into an error notice, and only an `Input::Item` error breaks the loop. What really happened before the change was one spurious error notice and a transfer whose `report` was never answered, so the transfer hung (the review of this round corrected the record). `Download` and `Upload` now answer their `report` with `TransferState::Failed("this link does not run transfers itself")` and the connection goes on; `CancelTransfer` has no report and nothing to cancel, and is logged at debug. (Making the variants unrepresentable for the inner link would mean a second command enum next to `LinkCmd`; the match arm is smaller.) Test: `ts::voice::account_tests::a_transfer_command_fails_the_transfer_and_not_the_connection` gives an unconnected `Voice` the three commands: each returns `Ok`, the two reports see exactly the `Failed`, nothing is pending. | **The merge.** Three conflicts: