Repository navigation
fix(traffic): WebSocket connections have routing information, with core v0.24.1 - #104
Merged
Merged
Conversation
… routing Core now reports the route of a WebSocket request (ThinkWatch-Core#99): the matched rule, the group and the one hop to the upstream. The request drawer's tooltip still named WebSocket connections among the requests without routing information. It now names the causes that remain: local answers, refusals by a routing rule, and requests whose client disconnected before any upstream answered. The type mirror follows core: request_started carries the billing of the upstream it is headed to, and a history row's billing can be free, which is what a local answer records. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…est_started request_started now carries billing, and the field is required, so the hand-written event in the SSE framing test gains it too. Without it the event no longer parses, which is also what a newer app does with an older core's starts: the two ship together. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Core v0.24.1 (ThinkWatchProject/ThinkWatch-Core#99) reports the route of a WebSocket request (the matched rule, the group and the one hop to the upstream), and
request_startednow carries the billing of the upstream it is headed to. The request drawer's "no routing information" tooltip still listed WebSocket connections among the requests without routing.What changed
noRoutingTip(zh and en) names the causes that remain: local answers, refusals by a routing rule, and requests whose client disconnected before any upstream answered.request_startedhasbilling; a history row'sbillingcan befree, which is what a local answer records; theroutingcomment lists today's causes.request_startedby hand and gainsbilling, which is now required.Test plan
pnpm typecheckpnpm test(191 passed)cargo fmt --check,cargo clippy -- -D warnings,cargo testonsrc-tauri(110 passed)🤖 Generated with Claude Code