Release - 2025-07-14 - #387
Merged
Merged
Conversation
…ist hidden unless no chief sidekick, and left navbar opens by default (closes #316)
…ult-login feat: chief sidekick is auto-selected and loaded on login, chatflow l…
… approach This PR refactors the default chatflow redirection mechanism by removing server-side cookie dependency and implementing a cleaner client-side solution. ## Changes Made ### Removed Cookie Implementation - Removed defaultChatflowId cookie reading from getCachedSession.ts - Removed cookie setting functionality from authentication middleware - Eliminated server-side cookie dependency for default chatflow handling ### Implemented Client-Side Solution - Added ChatRedirectHandler component for managing chat redirects - Created useRedirectToDefaultChatflow hook for redirect logic - Added auth API client for /auth/me endpoint calls - Enhanced authentication middleware with direct /auth/me endpoint ### Architecture Improvements - Replaced server-side cookie management with API-based approach - Improved debugging capabilities with client-side logic - Reduced security concerns related to cookie handling - Simplified state management by removing cookie dependencies ## Benefits - Better separation of concerns (client handles UI, server provides data) - Easier debugging and testing of redirect logic - No cookie security implications - More maintainable and modern approach - Cleaner code architecture
Add Voice Agent for AI Workshops and Update Calendly Page for CTAs
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Added Voice Agent for Alpha for Landing Pages on AI workshop
maxtechera
had a problem deploying
to
staging - theanswer-web-x1q0
July 14, 2025 04:50 — with
Render
Failure
- Add user context parameter to saveCustomTemplate service method - Pass req.user from controller to service for proper authorization - Add enforceAbility middleware to custom template route - Fix 'Unauthorized public access to non-public chatflow' error Resolves: Diego Ticket 1 - Template save functionality
- Simplify generateExportFlowData to pass complete chatflow object - Add 404 error handling for missing chatflows - Clean up marketplace-specific descriptions on import - Improve error handling in canvas flow loading Resolves: Diego Ticket 1 - Template export functionality
…port-system AAI-486-fix-template-export-and-save-functionality-complete-template-system-repair
maxtechera
temporarily deployed
to
staging - theanswer-web-x1q0
July 15, 2025 01:31 — with
Render
Inactive
…t-chatflow-redirect feat: replace cookie-based chatflow redirect with modern client-side approach
maxtechera
had a problem deploying
to
staging - theanswer-web-x1q0
July 15, 2025 01:32 — with
Render
Failure
| router.get('/templates/:id', marketplacesController.getMarketplaceTemplate) | ||
|
|
||
| router.post('/custom', marketplacesController.saveCustomTemplate) | ||
| router.post('/custom', enforceAbility('CustomTemplate'), marketplacesController.saveCustomTemplate) |
Check failure
Code scanning / CodeQL
Missing rate limiting High
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI about 1 year ago
To fix the issue, we will add rate limiting to the /custom POST route. The express-rate-limit package will be used to implement rate limiting. This package allows us to define a maximum number of requests per time window for specific routes.
Steps to implement the fix:
- Import the
express-rate-limitpackage. - Define a rate limiter configuration for the
/customPOST route. - Apply the rate limiter middleware to the route.
This fix ensures that the /custom POST route is protected against abuse while maintaining its functionality.
Suggested changeset
1
packages/server/src/routes/marketplaces/index.ts
| @@ -3,4 +3,12 @@ | ||
| import enforceAbility from '../../middlewares/authentication/enforceAbility' | ||
| import rateLimit from 'express-rate-limit' | ||
| const router = express.Router() | ||
|
|
||
| // Rate limiter for POST /custom route | ||
| const customTemplateRateLimiter = rateLimit({ | ||
| windowMs: 15 * 60 * 1000, // 15 minutes | ||
| max: 100, // max 100 requests per windowMs | ||
| message: 'Too many requests, please try again later.', | ||
| }) | ||
|
|
||
| // READ | ||
| @@ -9,3 +17,3 @@ | ||
|
|
||
| router.post('/custom', enforceAbility('CustomTemplate'), marketplacesController.saveCustomTemplate) | ||
| router.post('/custom', customTemplateRateLimiter, enforceAbility('CustomTemplate'), marketplacesController.saveCustomTemplate) | ||
|
|
Copilot is powered by AI and may make mistakes. Always verify output.
Unable to commit as this autofix suggestion is now outdated
spindle79
reviewed
Jul 15, 2025
spindle79
reviewed
Jul 15, 2025
spindle79
approved these changes
Jul 15, 2025
spindle79
left a comment
There was a problem hiding this comment.
have you checked out the "Missing CSRF middleware" issue or is that known?
maxtechera
temporarily deployed
to
staging - theanswer-iek0
July 15, 2025 22:44 — with
Render
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This release delivers a robust set of enhancements focused on chatflow user experience, authentication, voice agent integration in documentation, more precise API behavior, and documentation improvements. Several bug fixes and code refinements ensure platform stability and smoother onboarding.
✨ Major Features & Improvements