Skip to content

Commit 971f9d6

Browse files
chore: check agents match
1 parent 096a85e commit 971f9d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

codersdk/workspaceagents.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,8 @@ func (d WorkspaceAgentDevcontainer) Equals(other WorkspaceAgentDevcontainer) boo
429429
d.Dirty == other.Dirty &&
430430
(d.Container == nil && other.Container == nil ||
431431
(d.Container != nil && other.Container != nil && d.Container.ID == other.Container.ID)) &&
432+
(d.Agent == nil && other.Agent == nil ||
433+
(d.Agent != nil && other.Agent != nil && *d.Agent == *other.Agent)) &&
432434
d.Error == other.Error
433435
}
434436

0 commit comments

Comments
 (0)