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:
2 files changed
+24
-12
No files matched your search
@@ -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 }) => {
|
||||
|
||||
Reference in new issue
Block a user