Repository navigation
refactor: remove unused chat exports from codersdk - #30959
ibetitsmike wants to merge 3 commits into
Conversation
ChatMessageSource, ChatGitChange, and IsChatGitWatchFallbackMessage have no callers in coder/coder or in other coder repositories. IsChatGitWatchFallbackMessage lost its only caller when the agents TUI was removed in #25190. Regenerating the TypeScript types drops the ChatGitChange interface, which the site never used. The git watch message comments drop the sentences that pointed at the removed helper. coderd/exp_chats.go uses the constants directly, so the "keep in sync" note no longer applies.
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review
|
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Removes two unused exports from
codersdk/chats.go: theChatGitChangetype andIsChatGitWatchFallbackMessage. Regenerating the TypeScript types drops theChatGitChangeinterface fromsite/src/api/typesGenerated.ts.Why removal is safe: neither symbol has a caller anywhere in this repository, including
site/,cli/,enterprise/,scaletest/and tests. A GitHub code search across the coder organization finds only forks of this file and a copy oftypesGenerated.ts.IsChatGitWatchFallbackMessagelost its only caller when #25190 removed the agents TUI. The comment on the git watch messages loses the sentences about that helper and the "keep in sync" note:coderd/exp_chats.gouses these constants directly.Kept on purpose:
NewDynamicTool,DynamicToolCall,DynamicToolResponseand theinvopop/jsonschemaimport: bots outside this repository build on them (feat: add dynamic tools support for chat API #24036).ChatMessageSource: also unused, but feat: send skill invocations as structured message parts #30861 adds a function right above it, and deleting it here would make that PR conflict. It can go after feat: send skill invocations as structured message parts #30861 merges.AllChatMessagePartTypes,ChatDebugTerminalStatusesandWithChatDiffStatusRef:scripts/apitypings, a guard test and a coderd test use them.Validation: the pre-commit hook passed (
make gen, formatting, golangci-lint over every package and test file, and the slim build).make site/src/api/typesGenerated.tsproduces exactly the TypeScript change in this PR.Stack
This stack removes two unused chat exports from
codersdkand moves 72 chat client methods incodersdk/chats.goonto two shared request helpers. Client behavior does not change.