Loading...
Loading...
Compare original and translation side by side
/pause/resume/pause/pause/resume/pausecreated_at/resumecreated_at/resumenext_actionnext_action/donext_actionnext_action/do--dry-run/resume--keep--dry-run/resume--keeppause-workpause-workgit rev-parse --show-toplevel{project_root}/HANDOFF.jsoncreated_atstale_warning = true.continue-here.md.continue-here.mdtask_plan.md[x][ ]undefinedgit rev-parse --show-toplevel{project_root}/HANDOFF.jsoncreated_atstale_warning = true[x][ ]undefined
Synthesize a best-effort summary from git state. This is the least precise reconstruction — it shows WHAT happened but not WHY.
**Step 6: Set reconstruction quality indicator**
| Source | Quality | Missing |
|--------|---------|---------|
| HANDOFF.json | Full | Nothing — richest source |
| .continue-here.md | Good | Structured data, may lack reasoning detail |
| task_plan.md | Partial | Session reasoning, rejected approaches, mental model |
| git log | Minimal | All reasoning context, decisions rationale, next action specifics |
**GATE**: At least one state source found and read. If ALL sources are empty (no handoff, no plan, no git history), inform user: "No session state found. Use /do to start a new task."
从Git状态中合成最佳的总结。这是最不精确的重建方式——它显示了发生了什么,但无法说明原因。
**步骤6:设置重建质量指标**
| 来源 | 质量 | 缺失内容 |
|--------|---------|---------|
| HANDOFF.json | 完整 | 无——最丰富的来源 |
| .continue-here.md | 良好 | 结构化数据,可能缺少推理细节 |
| task_plan.md | 部分 | 会话推理、被否决的方案、思维模型 |
| git日志 | 极少 | 所有推理上下文、决策理由、下一个操作的细节 |
**关卡**:至少找到并读取一个状态来源。如果所有来源都为空(无交接、无计划、无Git历史),告知用户:“未找到会话状态。使用/do启动新任务。”uncommitted_filesundefineduncommitted_filesundefined
Flag any files that were listed as uncommitted but are now missing — these represent potential work loss.
**Step 2: Check for false completions**
If the handoff reports `false_completions`, verify those placeholder markers still exist in the codebase. They may have been fixed by manual intervention between sessions.
**Step 3: Synthesize status dashboard**
Build the dashboard from available data:
**GATE**: Status dashboard constructed. Ready to present to user.
标记任何被列为未提交但已丢失的文件——这些代表潜在的工作损失。
**步骤2:检查虚假完成项**
如果交接报告存在`false_completions`,验证这些占位符标记是否仍存在于代码库中。在会话间隔期间,它们可能已被手动修复。
**步骤3:合成状态仪表板**
从可用数据构建仪表板:
**关卡**:状态仪表板已构建完成,准备展示给用户。stale_warningWARNING: Handoff is from <timestamp> (>24 hours ago).
State may not reflect manual changes made since then.
Proceed with this handoff or discard it? [proceed/discard]next_actionstale_warning警告:交接创建于<timestamp>(超过24小时)。
状态可能无法反映此后的手动更改。
是否继续使用此交接或丢弃它?[继续/丢弃]next_actionnext_actionundefinednext_actionundefined
If `--keep` flag was provided, skip deletion.
**Step 3: Update task_plan.md if present**
If `task_plan.md` exists, update its status line to reflect that the session has resumed:
**GATE**: Next action initiated. Handoff files cleaned up. Session is now in active work mode.
---
如果提供了`--keep`参数,跳过删除步骤。
**步骤3:如果存在task_plan.md则更新**
如果task_plan.md存在,更新其状态行以反映会话已恢复:
**关卡**:下一个操作已启动,交接文件已清理。会话现在处于活跃工作模式。
---context_notesdecisionscontext_notesdecisions--keep/resume--keep--keep/resume--keepdecisionscontext_notesdecisionscontext_notes| Rationalization | Why It's Wrong | Required Action |
|---|---|---|
| "I'll just start fresh, it's faster" | Reconstruction from handoff takes seconds; re-discovery takes minutes to hours | Check handoff files first |
| "The handoff is stale, I'll ignore it" | Stale handoff still contains decisions and rejected approaches worth knowing | Read it, warn about staleness, let user decide |
| "I know what to do, don't need the dashboard" | You're a new session — you know nothing yet. The dashboard IS your knowledge. | Always display the dashboard |
| "I'll keep the handoff files just in case" | Stale files cause worse problems than missing files | Delete after successful consumption |
| "The git log tells me everything" | Git log shows WHAT changed but not WHY, what was rejected, or what's next | Use handoff files when available; git log is last resort |
| 合理化理由 | 错误原因 | 要求操作 |
|---|---|---|
| “我直接重新开始更快” | 从交接重建只需几秒,重新梳理需要几分钟到几小时 | 先检查交接文件 |
| “交接已过期,我忽略它” | 过期的交接仍然包含值得参考的决策和被否决的方案 | 读取它,发出过期警告,让用户决定 |
| “我知道要做什么,不需要仪表板” | 你是一个新会话——你一无所知。仪表板就是你的知识。 | 始终显示仪表板 |
| “我保留交接文件以防万一” | 过期文件导致的问题比丢失文件更严重 | 成功消费后删除 |
| “Git日志告诉我一切” | Git日志显示了发生了什么,但无法说明原因、被否决的内容或下一步要做什么 | 有交接文件时使用;Git日志是最后手段 |
pause-workdoworkflow-orchestratorpause-workdoworkflow-orchestrator