Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions apps/mesh/migrations/053-drop-thread-agent-ids.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/**
* Drop Thread Agent IDs Migration
*
* Rolls back migration 052 by dropping the `agent_ids` column from threads.
* This is a forward migration to support rollback without running migration down.
*/

import type { Kysely } from "kysely";

export async function up(db: Kysely<unknown>): Promise<void> {
await db.schema.alterTable("threads").dropColumn("agent_ids").execute();
}

export async function down(db: Kysely<unknown>): Promise<void> {
await db.schema
.alterTable("threads")
.addColumn("agent_ids", "text", (col) => col.defaultTo("[]"))
.execute();
}
2 changes: 2 additions & 0 deletions apps/mesh/migrations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ import * as migration049removeorgadminprojects from "./049-remove-org-admin-proj
import * as migration050durableagentruns from "./050-durable-agent-runs.ts";
import * as migration051orgsso from "./051-org-sso.ts";
import * as migration052threadagentids from "./052-thread-agent-ids.ts";
import * as migration053dropthreadagentids from "./053-drop-thread-agent-ids.ts";

/**
* Core migrations for the Mesh application.
Expand Down Expand Up @@ -116,6 +117,7 @@ const migrations: Record<string, Migration> = {
"050-durable-agent-runs": migration050durableagentruns,
"051-org-sso": migration051orgsso,
"052-thread-agent-ids": migration052threadagentids,
"053-drop-thread-agent-ids": migration053dropthreadagentids,
};

export default migrations;
2 changes: 1 addition & 1 deletion apps/mesh/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "decocms",
"version": "2.202.2",
"version": "2.197.1",
"description": "Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools",
"author": "Deco team",
"repository": {
Expand Down
6 changes: 1 addition & 5 deletions apps/mesh/src/api/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -693,11 +693,7 @@ export async function createApp(options: CreateAppOptions = {}) {

// Start the event bus worker (async - resets stuck deliveries from previous crashes)
// Then run plugin startup hooks (e.g., recover stuck workflow executions)
// Random jitter (0-2s) prevents all pods from hitting the DB simultaneously
// after a deployment causes simultaneous restarts.
const startupJitterMs = Math.random() * 2000;
new Promise((r) => setTimeout(r, startupJitterMs))
.then(() => eventBus.start())
Promise.resolve(eventBus.start())
.then(() => {
// db is typed as `any` to avoid Kysely version mismatch issues between packages
return runPluginStartupHooks({
Expand Down
3 changes: 1 addition & 2 deletions apps/mesh/src/api/routes/decopilot/stream-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ async function streamCoreInner(
const shouldGenerateTitle =
mem.thread.title === DEFAULT_THREAD_TITLE && !isClaudeCode;
if (shouldGenerateTitle) {
const titleOp = genTitle({
genTitle({
abortSignal: registrySignal,
model: createLanguageModel(
provider!,
Expand Down Expand Up @@ -503,7 +503,6 @@ async function streamCoreInner(
error,
);
});
pendingOps.push(titleOp);
}

let reasoningStartAt: Date | null = null;
Expand Down
11 changes: 2 additions & 9 deletions apps/mesh/src/cli/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ import {
toggleViewMode,
toggleVibeState,
} from "./cli-store";
import { skipTrack, toggleVibe } from "./vibe/vibe-player";
import { toggleVibe } from "./vibe/vibe-player";

const HEADER_HEIGHT = 15;
const HEADER_HEIGHT_VIBE = 17;

export function App({ home }: { home: string }) {
const state = useSyncExternalStore(subscribeCliState, getCliState);
Expand All @@ -29,9 +28,6 @@ export function App({ home }: { home: string }) {
toggleVibe(state.dataDir);
toggleVibeState();
}
if ((_input === "n" || _input === "N") && state.vibe) {
skipTrack();
}
});

return (
Expand All @@ -51,10 +47,7 @@ export function App({ home }: { home: string }) {
<Text dimColor>Loading configuration...</Text>
)
) : (
<RequestLog
logs={state.logs}
headerHeight={state.vibe ? HEADER_HEIGHT_VIBE : HEADER_HEIGHT}
/>
<RequestLog logs={state.logs} headerHeight={HEADER_HEIGHT} />
)}
</Box>
);
Expand Down
44 changes: 0 additions & 44 deletions apps/mesh/src/cli/capy-animation.ts

This file was deleted.

Loading
Loading