Skip to content

drop toolSwitchDatabase and tryPathStyleRouting, both superseded and dead - #376

Merged
gerardrecinto merged 1 commit into
masterfrom
kill-superseded-routing-and-db-switch-tool
Sep 19, 2026
Merged

gerardrecinto merged 1 commit into
masterfrom
kill-superseded-routing-and-db-switch-tool

Conversation

@gerardrecinto

Copy link
Copy Markdown
Collaborator

Two more from the same U1000 pile, same story both times.

toolSwitchDatabase: never registered via RegisterWithUI, zero callers. The /switch_database slash command in service.session.go already reimplements the same db-existence check and context switch inline, superseding this without removing it.

tryPathStyleRouting: sits among sibling tryPrefixBasedRouting/tryAskContinuationBasedRouting in copilot_routing.go, but grepping the actual dispatcher in copilot.go shows only the other two ever get called. This one dropped out of the dispatch chain at some point without anyone deleting it.

Both zero references anywhere, tests included. Build+vet+gofmt+test clean.

@gerardrecinto
gerardrecinto merged commit a0bb273 into master Sep 19, 2026
23 of 25 checks passed
@gerardrecinto
gerardrecinto deleted the kill-superseded-routing-and-db-switch-tool branch September 19, 2026 22:42
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