mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: remove chat chain mode (#26980)
Removes OpenAI Responses "chain mode" from chatd. Closes CODAGT-445.
- Deletes `chatopenai/responses.go` (chain detection, activation, prompt filtering, response ID extraction) and its tests.
- Deletes the `ChainBroken` classification in `chaterror` and the chatloop retry bookkeeping that disabled chain mode mid-generation.
- Drops the `chain_broken` label from the `coderd_chatd_stream_retries_total` metric.
- Stops reading and writing `chat_messages.provider_response_id`
- Deletes the dead `ClearChatMessageProviderResponseIDsByChatID` query. Dropping the column is a follow-up migration.
- Deletes three chatloop hooks no caller sets (`ReloadMessages`, `DisableChainMode`, `PrepareMessages`), the dead `const AgentChatContextSentinelPath`, and stale chain-mode comments.
🤖 Generated by Coder Agents on behalf of @johnstcn.
This commit is contained in:
@@ -291,7 +291,7 @@ coderd_chatd_steps_total{provider="",model=""} 0
|
||||
coderd_chatd_stream_buffer_dropped_total 0
|
||||
# HELP coderd_chatd_stream_retries_total Total LLM stream retries.
|
||||
# TYPE coderd_chatd_stream_retries_total counter
|
||||
coderd_chatd_stream_retries_total{provider="",model="",kind="",chain_broken=""} 0
|
||||
coderd_chatd_stream_retries_total{provider="",model="",kind=""} 0
|
||||
# HELP coderd_chatd_tool_errors_total Total tool calls that returned an error result.
|
||||
# TYPE coderd_chatd_tool_errors_total counter
|
||||
coderd_chatd_tool_errors_total{provider="",model="",tool_name=""} 0
|
||||
|
||||
Reference in New Issue
Block a user