zai-org / zai-org/feedback

[Bug] can not start zcode

Open
#688 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority: P2 status: 待评估 type: Bug
Dominant language
No language data
Stars
22
Forks
1
PR merge metrics
No merged PRs in 30d

Description

提交前确认 · Pre-submission checklist
  • 我已搜索过现有 issue,确认这不是重复 / I searched existing issues and confirmed this isn't a duplicate.
  • 我已阅读 CONTRIBUTING.md / I've read CONTRIBUTING.md.
问题类别 · Category

稳定性 / 崩溃 · Stability / Crash

涉及的 Agent 框架 · Agent framework

ZCode Agent(自研)

严重程度 · Severity

阻塞使用 · Blocking (无法使用核心功能 / core function unusable)

复现频率 · Reproducibility

必现 · Always

问题描述 · Description

can not start after upgrade to 3.12.3
{
"schemaVersion": 1,
"startupId": "4fb1326f-80f4-47fb-bef4-c097fca192fb",
"attemptId": "7e36343f-e0c4-449f-9959-f56031fc12d1",
"sequence": 18,
"startedAt": 1789635343895,
"updatedAt": 1789635347252,
"phase": "failed",
"migration": {
"kind": "upgrade",
"executedCount": 1,
"committedCount": 0
},
"currentMigration": {
"kind": "upgrade",
"executedCount": 1,
"committedCount": 0,
"lastAppliedMigrationId": "0018_session_input_failed_status"
},
"migrationBaselines": [
{
"databaseId": "tasks-index",
"databaseKind": "tasks-index",
"lastAppliedMigrationId": "0003_official_glm_selection"
},
{
"databaseId": "4011046b18b8ad99866b2ee2228218eab5e206c8f016e2110d9b96f10d7d7939",
"databaseKind": "session",
"lastAppliedMigrationId": "0018_session_input_failed_status"
}
],
"failedPhase": "preparing_session_storage",
"errorCode": "sql_failed",
"sqliteCode": 787,
"systemCode": "ERR_SQLITE_ERROR",
"migrationId": "0020_provider_model_selection",
"disk": [
{
"scopeId": "5b3feea8a5e2106a56f1f2041c9da362adafb3224ac54c8c1790bbd24cc31b65",
"observedAvailableDropPeakBytes": 274432,
"minAvailableBytes": 81766518784,
"quality": "complete",
"sampledAt": 1789635345904
}
]
}

复现步骤 · Steps to reproduce

restart

期望表现 · Expected behavior

open zcode

实际表现 · Actual behavior

got error

ZCode 版本 · ZCode version

v3.12.3

设备 / 系统 / 浏览器 · Device / OS / Browser

mac os 27

截图 / 录屏 / 日志 · Screenshots / Recordings / Logs

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the restart failure in ZCode v3.12.3 on macOS 27 and capture the startup logs. Trace the upgrade path around migration 0020_provider_model_selection and the preparing_session_storage phase, comparing the session baseline at 0018_session_input_failed_status. Done means ZCode opens after restart and the upgrade completes without sql_failed or SQLite 787.

Written by the indexing model from the issue text.

Assessment

Tech stack
sqlite
Domain
databases, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.