Skip to content

Massive Upgrade - #125

Open
mbeps wants to merge 108 commits into
mainfrom
dev
Open

mbeps wants to merge 108 commits into
mainfrom
dev

Conversation

@mbeps

@mbeps mbeps commented Sep 19, 2026

Copy link
Copy Markdown
Owner

Features

  • Added background jobs via Inngest for streaming responses
  • Added skills support
  • Added context meter for chat sessions
  • Added message editing with MarkdownTabEditor
  • Showing details on AI chat responses
  • Implemented batch cloning of attachments with ownership verification
  • Allow selecting prompts from the + picker
  • Added dedicated 404 not found pages
  • Using markdown editor for steps and global instructions in step-by-step automations
  • Replaced modal dialogs with full dedicated pages for creating and managing skills, prompts, and tools
  • Added page-loading spinner states, standardized page width layout across views with a dedicated page wrapper,

General Improvements

  • Extensive codebase refactoring, modularization, and file decomposition
  • Centralized constants, types, schemas, and routes
  • Upgraded dependencies to latest versions and upgraded to Vercel AI SDK 7
  • Migrated linter and formatter from ESLint and Prettier to Biome
  • Improved logging using LogTape
  • Replaced modal dialogs with dedicated pages for skills, prompts, and tools
  • Enhanced UI components with Shadcn Tooltips, accordions for subfiles, and updated icons
  • Multi-phase security, data integrity, RAG, and architecture overhaul
  • General bug fixes and cleanup
  • Purged legacy backward-compatibility wrappers and deprecated methods (e.g., updateModel, renameKnowledgebase, and cloneAttachment).

mbeps added 30 commits June 29, 2026 13:35
… 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.
mbeps and others added 15 commits September 2, 2026 16:42
- 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.
- 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
@vercel

vercel Bot commented Sep 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ai-client Ready Ready Preview Sep 20, 2026 5:13pm UTC

…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
- 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

1 active deployment
Preview 7a3ae2df Deployed Sep 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant