Skip to content

Commit 24bd249

Browse files
committed
fix: ignore self-reported status
1 parent 9cef0df commit 24bd249

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cli/exp_mcp.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,11 @@ func (s *mcpServer) startServer(ctx context.Context, inv *serpent.Invocation, in
679679
return s.queue.Push(taskReport{
680680
link: args.Link,
681681
selfReported: true,
682-
state: codersdk.WorkspaceAppStatusState(args.State),
683-
summary: args.Summary,
682+
// The agent does not reliably report its status correctly. We will
683+
// always set the status to "working" when we get an MCP message, and
684+
// rely on the screen watcher to eventually catch the idle state.
685+
state: codersdk.WorkspaceAppStatusStateWorking,
686+
summary: args.Summary,
684687
})
685688
}),
686689
}

0 commit comments

Comments
 (0)