修复审批请求在聊天中无提示且无法响应 (#467)
* fix: support run approval prompts in chat * fix(chat): render approval prompts * fix(chat): dedupe approval pattern labels * chore: sync approval flow with current main - update Hermes Agent approval support guidance to PR #21899 - initialize Hermes table schemas in session-sync tests
This commit is contained in:
@@ -2,12 +2,14 @@
|
||||
* Tests for session-sync service
|
||||
*/
|
||||
import { describe, it, expect, beforeEach, afterEach } from 'vitest'
|
||||
import { getDb, ensureTable } from '../../packages/server/src/db/index'
|
||||
import { getDb } from '../../packages/server/src/db/index'
|
||||
import { initAllStores } from '../../packages/server/src/db/hermes/init'
|
||||
import { syncAllHermesSessionsOnStartup } from '../../packages/server/src/services/hermes/session-sync'
|
||||
|
||||
describe('session-sync', () => {
|
||||
beforeEach(() => {
|
||||
// Reset database before each test
|
||||
initAllStores()
|
||||
const db = getDb()
|
||||
if (db) {
|
||||
db.exec('DELETE FROM sessions')
|
||||
|
||||
Reference in New Issue
Block a user