fix: admin 前端显示 merged 状态的 objectives#5
Conversation
Objective.status 类型和 OBJ_STATUS_ORDER 缺少 merged, 导致所有已合并的 objectives 在看板中不可见。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8d6d75c336
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| enabled=excluded.enabled, updated_at=excluded.updated_at | ||
| """, ( | ||
| p["id"], p["name"], p["repo_root"], p["worktrees_root"], | ||
| p.get("base_branch", "main"), |
There was a problem hiding this comment.
Preserve base_branch on project updates
upsert_project now writes base_branch as p.get("base_branch", "main"), which silently resets projects configured for non-main branches whenever an update payload omits this field (for example, legacy clients calling PUT /api/v2/projects/{id} without the new property). Once reset, supervisor merge/diff logic runs against the wrong branch and can mis-handle merge state. Please keep the existing stored base_branch when the caller does not explicitly provide one.
Useful? React with 👍 / 👎.
问题
Objective.status类型定义和OBJ_STATUS_ORDER数组都缺少merged,导致所有已合并的 objectives 在看板中不可见,只显示 3 个(needs_review + done),而实际有 116 个。修复
Objective.status类型加入"merged"OBJ_STATUS_ORDER加入"merged"🤖 Generated with Claude Code