mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
Relates to #20925 This PR modifies TaskPage to update an outdated workspace instead of starting it. Before, starting an outdated workspace where the template required the active version would fail with the error "cannot use non-active version: rbac: forbidden". For the case of a dormant workspace, I deemed it safe enough to simply unset dormancy on an attempted start (ref: https://github.com/coder/coder/pull/21306). However, automatically updating a workspace is a more risky option, so I instead elected to give the user the option of updating their workspace using the existing tooltip. **Note:** I made a change to the `WorkspaceOutdatedTooltip` components to allow it to have children so that the tooltip could trigger over a wider element instead of just the info icon. ``` <🤖 AI Disclaimer>I got some help from Gemini 3 Flash in "Ask" mode.</🤖 AI Disclaimer> ```