10000 feat: add status watcher to MCP server by code-asher · Pull Request #18320 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: add status watcher to MCP server #18320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Jun 13, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Preserve URI only if message was blank
  • Loading branch information
code-asher committed Jun 12, 2025
commit 2cd3b45995c864b82f9898435ffabf7e9892f4d3
8 changes: 4 additions & 4 deletions cli/exp_mcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -547,12 +547,12 @@ func (s *mcpServer) startReporter(ctx context.Context, inv *serpent.Invocation)
State: state,
}

// Preserve previous message and URI.
// Preserve previous message and URI if there was no message.
if payload.Message == "" {
payload.Message = lastPayload.Message
}
if payload.URI == "" {
payload.URI = lastPayload.URI
if payload.URI == "" {
payload.URI = lastPayload.URI
}
}

// Avoid sending duplicate updates.
Expand Down
0