Conversation
…nd slash commands
…and update import
… its usages to the batch-capable updateModels action
…ve operational efficiency.
1. **Knowledgebase Refactor**:
* Replaced the deprecated `renameKnowledgebase` action with the multi-field `updateKnowledgebase` in knowledgebase-options.tsx.
* Deleted the deprecated rename-knowledgebase.ts server action.
2. **Batch Deletion Support**:
* Upgraded `deleteEntityFactory` in delete-entity-factory.ts and the shared `deleteResourceWithUnbind` helper in db-helpers.ts to support batching (`string | string[]`).
* Updated the factory to return `{ deletedCount: number }`, enabling better feedback for multi-row deletions.
* Migrated 5 core entities (Assistants, Knowledgebases, MCP Servers, Projects, Prompts) and Models to use this logic.
3. **Attachment Optimization**:
* Refactored the attachment cloning process to use a new batch server action `cloneAttachmentsBatch`. This replaces the previous loop of individual server calls with a single database transaction, significantly improving performance during conversation branching and regeneration.
* Updated upload-attachments.ts to utilize this batch logic.
…ciated documentation
- Faster - 2 in 1 solution - Unblocks TypeScript 7
- Moved provider utility functions to a new file `provider-utils.ts` for better organization. - Implemented a global cache manager for provider registry in `provider-registry-cache.ts` to optimize data fetching and reduce redundant requests. - Updated logging to use a centralized logger instead of console warnings for better consistency and error tracking. - Adjusted import paths for shared fields in various schemas to use absolute paths for clarity. - Enhanced error handling in provider decryption functions to throw specific errors when decryption fails. - Cleaned up unused imports and ensured consistent formatting across files.
- Some pages need the full availale width
- Using wider page more efficiently - Made page less cluttered - Allowing managing file directory
…nning background jobs - Allows user to refresh page, navigate away, etc and have work still being done
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…en navigating away and coming back would show it
- On hard refresh, the server component fetched the full chat with its messages and passed it as initialChat to `ChatPageClient`
- Concurrently on mount, `AppSidebar` in the persistent root layout called `listChats().then(rows => loadChats(rows, []))`
- In `chat-slice.ts`, `loadChats` was resetting `messages: {}` for all chats and doing `set({ chats })`, destructively wiping out the active chat's loaded messages in the Zustand store.
- On client navigation, AppSidebar remained mounted in the root layout without re-running loadChats, which is why navigating away and back restored the messages.
- Was causing race conditions where content would get overriden by other state loading too
- 1152 -> 1684
- lib/rag/split-recursive.ts: Remove duplicate chunks.push() inside force-split loop that caused every character-level chunk to be emitted twice, producing duplicate embeddings in pgvector for large unsplittable RAG documents. - actions/chats/delete-message.ts: Remove unconditional db.delete() call that ran outside the toDelete.length > 0 guard, causing a second identical DELETE on every message deletion. - actions/projects/update-project.ts: Restore partial-update semantics by removing unconditional overwrites of globalPrompt and knowledgebaseId that fired even when the caller never passed those fields, silently clearing them. Also restore ?? null coalesce on description. - actions/transform-agents/update-transform-agent.ts: Same pattern — remove unconditional assignments of description and globalContext that bypassed the undefined guards and clobbered existing DB values on any partial update. Also remove duplicate modelId guard. - actions/transform-runs/create-transform-run.ts: Restore explicit ?? false fallback for dryRun (DB default covers it but explicit is clearer and consistent with other nullable fields in the codebase).
This branch was successfully deployed
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.
Features
+pickerGeneral Improvements