Replies: 3 comments 8 replies
|
哈哈,同样的问题,我正在找解决方案。 |
|
我也遇到完全相同的问题。补充一下根因和一个不需要删会话的临时方案,供同样中招的人参考。 根因 无损临时方案
我这样处理后启动正常,会话记录一条没丢,缓存会在冷读时自动重建。不需要删 给维护者定位:根因在 |
|
楼里现在的解法都是"删 sessions"——能启动,但会话历史就真没了("只能删除所有对话才能启动"这代价太狠)。给一个不牺牲数据的版本:
我自己写了个备份插件 dsh-backup(定时备份 + 损坏会话体检),就是被这种"启动不了只好删数据"的事逼出来的,有需要可以看主页。 |
Uh oh!
There was an error while loading. Please reload this page.
PS D:\workstation\Github\deepseek-harness> pnpm dsh --version
0.1.2-alpha.4
PS D:\workstation\Github\deepseek-harness> pnpm dsh web
D:\workstation\Github\deepseek-harness\packages\boot\app-boot\src\index.ts:817
throw new Error(
${binName}: ${stage}: ${detail}${stack}, { cause })^
Error: dsh: plugin tree failed to load: failed to apply loader entry include (cordis:include): failed to apply loader entry session-projection-cache (@deepseek-ai/dsh-session-projection-cache): domain 'session_projcache': stored record 'session-04b75c2e-4115-4398-9125-6d727fe969b8' in table 'sessions' does not match its schema
ZodError: [
{
"expected": "boolean",
"code": "invalid_type",
"path": [
"identity",
"isSeeded"
],
"message": "Invalid input: expected boolean, received undefined"
},
{
"expected": "number",
"code": "invalid_type",
"path": [
"identity",
"inheritedEventCount"
],
"message": "Invalid input: expected number, received undefined"
}
]
at (D:\workstation\Github\deepseek-harness\packages\storage\storage-domain\src\index.ts:121:93)
at parseRecord (D:\workstation\Github\deepseek-harness\packages\storage\storage-domain\src\index.ts:183:12)
at DomainFacility.open (D:\workstation\Github\deepseek-harness\packages\storage\storage-domain\src\index.ts:121:30)
at async SessionProjectionCache.[cordis.init] (D:\workstation\Github\deepseek-harness\packages\session\session-projection-cache\src\index.ts:98:20)
at async Fiber._reload (D:\workstation\Github\deepseek-harness\vendor\cordis\src\fiber.ts:656:9)
at async Fiber.await (D:\workstation\Github\deepseek-harness\vendor\cordis\src\fiber.ts:706:7)
at async Entry._await (D:\workstation\Github\deepseek-harness\vendor\loader\src\config\entry.ts:271:7)
at async Entry.init (D:\workstation\Github\deepseek-harness\vendor\loader\src\config\entry.ts:266:5)
at async Entry.update (D:\workstation\Github\deepseek-harness\vendor\loader\src\config\entry.ts:172:41)
at async EntryGroup.create (D:\workstation\Github\deepseek-harness\vendor\loader\src\config\group.ts:30:7)
at boot (D:\workstation\Github\deepseek-harness\packages\boot\app-boot\src\index.ts:817:11)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async runProfile (D:\workstation\Github\deepseek-harness\apps\cli\src\profile-boot.ts:251:15)
at async (D:\workstation\Github\deepseek-harness\apps\cli\src\bin.ts:29:5) {
[cause]: Error: failed to apply loader entry include (cordis:include): failed to apply loader entry session-projection-cache (@deepseek-ai/dsh-session-projection-cache): domain 'session_projcache': stored record 'session-04b75c2e-4115-4398-9125-6d727fe969b8' in table 'sessions' does not match its schema
at updateError (D:\workstation\Github\deepseek-harness\vendor\loader\src\config\entry.ts:26:10)
at Entry._init (D:\workstation\Github\deepseek-harness\vendor\loader\src\config\entry.ts:287:13)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5) {
[cause]: Error: failed to apply loader entry session-projection-cache (@deepseek-ai/dsh-session-projection-cache): domain 'session_projcache': stored record 'session-04b75c2e-4115-4398-9125-6d727fe969b8' in table 'sessions' does not match its schema
at updateError (D:\workstation\Github\deepseek-harness\vendor\loader\src\config\entry.ts:26:10)
at Entry._await (D:\workstation\Github\deepseek-harness\vendor\loader\src\config\entry.ts:273:13)
at async Entry.init (D:\workstation\Github\deepseek-harness\vendor\loader\src\config\entry.ts:266:5)
... 2 lines matching cause stack trace ...
at async Promise.allSettled (index 27)
at async EntryGroup.update (D:\workstation\Github\deepseek-harness\vendor\loader\src\config\group.ts:71:24)
at async Include._apply (D:\workstation\Github\deepseek-harness\vendor\include\src\index.ts:317:5) {
[cause]: DomainError: domain 'session_projcache': stored record 'session-04b75c2e-4115-4398-9125-6d727fe969b8' in table 'sessions' does not match its schema
at parseRecord (D:\workstation\Github\deepseek-harness\packages\storage\storage-domain\src\index.ts:186:11)
at DomainFacility.open (D:\workstation\Github\deepseek-harness\packages\storage\storage-domain\src\index.ts:121:30)
... 6 lines matching cause stack trace ...
at async EntryGroup.create (D:\workstation\Github\deepseek-harness\vendor\loader\src\config\group.ts:30:7)
at async Promise.allSettled (index 27) {
code: 'invalid-record',
detail: {
table: 'sessions',
key: 'session-04b75c2e-4115-4398-9125-6d727fe969b8'
},
[cause]: ZodError: [
{
"expected": "boolean",
"code": "invalid_type",
"path": [
"identity",
"isSeeded"
],
"message": "Invalid input: expected boolean, received undefined"
},
{
"expected": "number",
"code": "invalid_type",
"path": [
"identity",
"inheritedEventCount"
],
"message": "Invalid input: expected number, received undefined"
}
]
at (D:\workstation\Github\deepseek-harness\packages\storage\storage-domain\src\index.ts:121:93)
at parseRecord (D:\workstation\Github\deepseek-harness\packages\storage\storage-domain\src\index.ts:183:12)
at DomainFacility.open (D:\workstation\Github\deepseek-harness\packages\storage\storage-domain\src\index.ts:121:30)
at async SessionProjectionCache.[cordis.init] (D:\workstation\Github\deepseek-harness\packages\session\session-projection-cache\src\index.ts:98:20)
at async Fiber._reload (D:\workstation\Github\deepseek-harness\vendor\cordis\src\fiber.ts:656:9)
at async Fiber.await (D:\workstation\Github\deepseek-harness\vendor\cordis\src\fiber.ts:706:7)
at async Entry._await (D:\workstation\Github\deepseek-harness\vendor\loader\src\config\entry.ts:271:7)
at async Entry.init (D:\workstation\Github\deepseek-harness\vendor\loader\src\config\entry.ts:266:5)
at async Entry.update (D:\workstation\Github\deepseek-harness\vendor\loader\src\config\entry.ts:172:41)
at async EntryGroup.create (D:\workstation\Github\deepseek-harness\vendor\loader\src\config\group.ts:30:7)
}
}
}
}
Node.js v24.19.0
ELIFECYCLE Command failed with exit code 1.
All reactions