fix: align board page and metadata error handling with layout

- resolve the session before handling board lookup errors so anonymous
  users still get the /auth/login redirect on a missing home board
- map both NOT_FOUND and BAD_REQUEST to a 404 in the board page and in
  generateMetadataAsync, matching the layout behavior
- clarify the getAvailability MCP description to mention demo-mode
  availability
This commit is contained in:
Thomas Camlong committed 2026-08-06 13:32:52 +02:00
1 parent f61e3591bd
commit 974dc1609c
2 files changed
+24 -12

No files matched your search

+2 -1
View File
@@ -444,7 +444,8 @@ export const assistantRouter = createTRPCRouter({
.meta({
mcp: {
enabled: true,
description: "Check whether Homarr Assistant is enabled and configured for the current user",
description:
"Check whether Homarr Assistant is enabled and configured, or available in demo mode, for the current user",
},
})
.query(async ({ ctx }) => {