Repository navigation
Request drawer: the whole routing decision; name requests that reached no upstream - #209
Merged
Merged
Conversation
…d no upstream Core 0.48 records the full routing decision on every non-local row (route, deciding rule, group, rewritten_by, denied_by, attempts) and keeps a row for requests that went to no upstream. The drawer showed only the rule and the group, and rows with an empty upstream showed a "?" tile in the command palette. - Routing tab: route, the deciding rule (marked when it denied the request before an upstream was chosen), group, the rules that rewrote the request in evaluation order, the phase-two rule that denied it, and the reason (the rule's own text, or core's sentence when no selected upstream could serve it). A hop denied by a phase-two rule reads "Not sent · denied by rule X" instead of looking like an upstream failure, and the note under the chain says only what happened: failed over and then denied, denied before or after the upstream was chosen, or no selected upstream can serve it. - src/requestRouting.ts: `notSent` (denied vs no upstream, from the empty upstream and core's `gw.route.denied`) and `routingFacts` (RoutingView and the row's error into what the tab shows), with tests. - Requests that reached no upstream: the traffic table, the drawer header and timeline, and the command palette show the routing map's deny glyph or a crossed-out upstream with "Denied" / "No upstream". Local answers in the palette get the gateway icon and the probe name as their title (core records them with no model and the probe kind as the path). - IconDenied and IconNoUpstream join the icon vocabulary; the routing map, the dry run and the route dialog use IconDenied. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…letter tile A request that core started with no upstream is in flight only until its failure arrives. Draw it with the request icon in that moment too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
Core 0.48 (#202) records the whole routing decision on every non-local row — route, deciding rule, group,
rewritten_by,denied_by, attempts — and keeps a row for requests that went to no upstream (upstream""). The request drawer showed only the rule and the group, and those rows came up as a "?" letter tile in the command palette.Routing tab
The ordering is a pure function,
routingFactsinsrc/requestRouting.ts, next tonotSent(denied vs no upstream, read from the empty upstream plus core'sgw.route.deniedcode — both core facts, nothing inferred from the config). Both are unit-tested.Requests that reached no upstream
Traffic table, drawer header and timeline, and command palette results now show the deny glyph (red, same as the routing map) or a crossed-out upstream (neutral) with Denied / No upstream (zh 规则拒绝 / 无可用上游), instead of an empty cell, a missing header item or a "?" tile. Rows a phase-two rule denied keep the upstream core attributes them to; the timeline marks it "(not sent)".
Local answers (core records them with no model and the probe kind as the path) get the gateway icon and the probe name as their palette title and drawer title, instead of a letter tile made from "Answered locally".
Other places that draw an upstream logo were checked: the session header and session rows already skip empty upstreams, the security log guards
e.provider, and core's per-upstream latency excludes''.IconDenied(Ban) andIconNoUpstream(ServerOff) join the icon vocabulary; the routing map, dry run and route dialog now useIconDenied, so the glyph has one source.Verification
pnpm typecheck,pnpm test(415 passed),pnpm build.🤖 Generated with Claude Code