mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: use backend-selected chat agent for desktop, git, terminal (#26959)
This commit is contained in:
+2
-2
@@ -1629,7 +1629,7 @@ type ChatDiffContents struct {
|
||||
const (
|
||||
ChatGitWatchNoWorkspaceMessage = "Chat has no workspace to watch."
|
||||
ChatGitWatchWorkspaceNotFoundMessage = "Chat workspace not found."
|
||||
ChatGitWatchWorkspaceNoAgentsMessage = "Chat workspace has no agents."
|
||||
ChatGitWatchNoEligibleAgentMessage = "No eligible agent found for chat workspace."
|
||||
// ChatGitWatchAgentStatePrefix is the common prefix of the
|
||||
// message produced by ChatGitWatchAgentStateMessage. The CLI
|
||||
// uses it as a mechanical fingerprint for the "agent not yet
|
||||
@@ -1654,7 +1654,7 @@ func IsChatGitWatchFallbackMessage(msg string) bool {
|
||||
switch trimmed {
|
||||
case ChatGitWatchNoWorkspaceMessage,
|
||||
ChatGitWatchWorkspaceNotFoundMessage,
|
||||
ChatGitWatchWorkspaceNoAgentsMessage:
|
||||
ChatGitWatchNoEligibleAgentMessage:
|
||||
return true
|
||||
}
|
||||
return strings.HasPrefix(trimmed, ChatGitWatchAgentStatePrefix)
|
||||
|
||||
Reference in New Issue
Block a user