Skip to content

fix(traffic): WebSocket connections have routing information, with core v0.24.1 - #104

Merged
fylorn merged 2 commits into
devfrom
fix/ws-routing-tip
Sep 22, 2026
Merged

fylorn merged 2 commits into
devfrom
fix/ws-routing-tip

Conversation

@fylorn

@fylorn fylorn commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

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_started now 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.
  • Type mirror: request_started has billing; a history row's billing can be free, which is what a local answer records; the routing comment lists today's causes.
  • Pin core v0.24.1. The SSE framing test writes a request_started by hand and gains billing, which is now required.

Test plan

  • pnpm typecheck
  • pnpm test (191 passed)
  • cargo fmt --check, cargo clippy -- -D warnings, cargo test on src-tauri (110 passed)

🤖 Generated with Claude Code

fylorn and others added 2 commits September 22, 2026 13:47
… 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>
@fylorn
fylorn merged commit 7472e7a into dev Sep 22, 2026
2 checks passed
@fylorn
fylorn deleted the fix/ws-routing-tip branch September 22, 2026 05:54
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