Repository navigation
(janitor/dead-code): delete unused removeChatCompletionsReasoning helper - #7093
Merged
kilo-code-bot[bot] merged 1 commit intoOct 2, 2026
Merged
Conversation
Unreferenced anywhere in the repo or the kilocode consumer; introduced in #6806 and never wired up.
Contributor
Author
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryThe PR deletes the unreferenced Files Reviewed (1 file)
Reviewed by deepseek-v4.1-flash · Input: 0 · Output: 0 · Cached: 0 Review guidance: REVIEW.md from base branch |
chrarnoldus
approved these changes
Oct 2, 2026
kilo-code-bot
Bot
deleted the
janitor/dead-code-remove-chat-completions-reasoning
branch
October 2, 2026 08:11
This was referenced Oct 3, 2026
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.
What was deleted
removeChatCompletionsReasoning(request)frompackages/web-shared/src/lib/ai-gateway/providers/openrouter/request-helpers.ts— a pure request-mutation helper that stripsreasoning,reasoning_content, andreasoning_detailsfrom chat-completions messages.Evidence it was unreachable
removeChatCompletionsReasoning(all file types, excludingnode_modules/.git) returns exactly one hit: its own definition. No import, call, re-export, string reference, or dynamic access exists.825754ac7("feat(ai-gateway): add a standalone ai-gateway app… [AISAGE-502] feat(ai-gateway): add a standalone ai-gateway app serving /api/v1 from a web-shared package #6806") and never referenced since (git log -Sconfirms the symbol was only ever added, never removed from a caller).fixResponsesRequestandmapReasoningDetailsToReasoningContentare called fromapply-provider-specific-logic.ts, andremoveChatCompletionsToolNamesis exercised byapps/web/src/tests/openrouter-request-helpers.test.ts. This function is the only one with no consumer.Dynamic and configured entry points checked
@kilocode/web-sharedisprivate: truewith noexports/mainmap; files are reached only via direct@/-alias imports fromapps/web/apps/ai-gateway, not a barrel. No re-export path references the symbol.page/route/layout); it is a plain utility module, so no framework file discovery applies.wranglerconfig reference.packages/trpc/dist/tsc, regenerated on build).Contract and compatibility considerations
@kilocode/web-shared).Validation performed
pnpm --filter @kilocode/web-shared typecheck(tsgo -p tsconfig.lib.json) — passes.pnpm -w exec oxlint --config .oxlintrc.json <file>— 0 errors / 0 warnings.pnpm -w exec oxfmt --list-different <file>andgit diff --check— clean.openrouter-request-helpers.test.ts) does not reference the deleted function; the suite itself could not be run here because the app-wide Jest setup (workerSetup.ts) requires PostgreSQL, which is unavailable in this environment.