Files
kandev/apps
José Almeida e6195f3fc0 fix(turns): align info.TaskEnvironmentID with the resolved env after fallback
GetWorkspaceInfoForSession initializes info.TaskEnvironmentID from
session.TaskEnvironmentID, then resolves the env — first by that ID,
falling back to GetTaskEnvironmentByTaskID when the session's ID
points to a stale/missing row. When the fallback kicks in, the
resolved env has a different ID, but applyTaskEnvironmentToWorkspaceInfo
was only updating info.TaskEnvironmentID when it was empty. So
downstream reconcilers received metadata + path from one env keyed by
a different env's ID.

Always overwrite info.TaskEnvironmentID with env.ID inside the apply
function — once we've picked an env to spread, the info should
identify that env consistently.
2026-05-14 00:06:06 +01:00
..
2026-05-12 18:21:01 +00:00
2026-02-26 23:08:15 +00:00