[v2.68] Backport fixes for v2.68.1

Merged
CH
2h ago
+483-234

Backport to v2.68 for a v2.68.1 patch.

Why

twenty/v2.68.0 was tagged at 7feaaa1 (#32441) and is on staging, not prod. Fixes merged on main since then need to ship with 2.68, but main is already on 2.69.0 (#32446) and release tags are immutable, so they go out as v2.68.1 from this branch.

Changes

Clean cherry-picks (-x), no conflicts:

  • #32450 Keep SDK client type declarations in the server image (AI component preview fails in Docker images)
  • #32449 Recompute flat entity maps before skipping a stored formula backfill (formula fields left empty, found in 2.68 QA)
  • #32452 Answer not found for a deleted chat channel while its cleanup holds the lock (integration shard 14 failure)
  • #32372 Build the RLS workspace member predicates once per request (prod p99 latency)

.github/workflows is unchanged on main since the tag, so the tag workflow should not 403.

No UI change, no screenshots.