> 🤖 This PR was modified by Coder Agents on behalf of Jake Howell.
Fix same-named templates sharing layout data across organizations,
including stale content and Create workspace targets during loading and
history navigation. Keep the layout's composite result separate from
ordinary template query data.
<details>
<summary>Implementation and regression notes</summary>
- Use `[...templateByNameKey(organizationName, templateName),
"layout"]`. The shared prefix preserves by-name invalidation, while the
suffix separates `{ template, activeVersion, permissions }` from plain
`Template` entries.
- Focused tests verify that changing organizations requests the correct
template and that layout data stays separate from by-name and by-ID
template caches, using shared fixtures and handlers.
- Restoring the old key fails the organization-switch and by-ID cases.
Removing the layout suffix fails the by-name case.
- All 48 TemplatePage tests, `pnpm format`, `pnpm check`, `pnpm lint`,
and `make lint/emdash` pass. Independent frontend review has no
remaining findings.
</details>