Skip to content

Commit f764e61

Browse files
committed
fix: cli/ssh: read autostop deadline from latestbuild.Deadline instead of from workspace TTL
1 parent 39a53c2 commit f764e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/ssh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ func notifyCondition(ctx context.Context, client *codersdk.Client, workspaceID u
289289
return time.Time{}, nil
290290
}
291291

292-
deadline = ws.LatestBuild.UpdatedAt.Add(*ws.TTL)
292+
deadline = ws.LatestBuild.Deadline
293293
callback = func() {
294294
ttl := deadline.Sub(now)
295295
var title, body string

0 commit comments

Comments
 (0)