mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-15 02:42:45 +08:00
fix: add nullish fallback for dynamic statusLabelKeys lookup in formatMessage
Prevents @formatjs/intl crash when session.status has an unexpected value not present in the statusLabelKeys map, causing formatMessage to receive undefined as the id.
This commit is contained in:
@@ -210,6 +210,14 @@ tasks.forEach((task, i) => {
|
||||
if (task.flow_control.target_files && !Array.isArray(task.flow_control.target_files))
|
||||
errors.push(`${task.id}: flow_control.target_files must be array`)
|
||||
}
|
||||
|
||||
// New unified schema fields (backward compatible addition)
|
||||
if (task.focus_paths && !Array.isArray(task.focus_paths))
|
||||
errors.push(`${task.id}: focus_paths must be array`)
|
||||
if (task.implementation && !Array.isArray(task.implementation))
|
||||
errors.push(`${task.id}: implementation must be array`)
|
||||
if (task.files && !Array.isArray(task.files))
|
||||
errors.push(`${task.id}: files must be array`)
|
||||
})
|
||||
|
||||
if (errors.length) {
|
||||
@@ -435,6 +443,12 @@ ${task.convergence.criteria.map(c => `- [ ] ${c}`).join('\n')}
|
||||
// - Use Grep/Glob/mcp__ace-tool for discovery if needed
|
||||
// - Use Bash for build/test commands
|
||||
|
||||
// Dual-path field access (supports both unified and legacy 6-field schema)
|
||||
// const targetFiles = task.files?.map(f => f.path) || task.flow_control?.target_files || []
|
||||
// const acceptanceCriteria = task.convergence?.criteria || task.context?.acceptance || []
|
||||
// const requirements = task.implementation || task.context?.requirements || []
|
||||
// const focusPaths = task.focus_paths || task.context?.focus_paths || []
|
||||
|
||||
// 4. Verify convergence
|
||||
const convergenceResults = verifyConvergence(task)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user