Skip to content

Commit 872f9d3

Browse files
yanxingyu17tanghao-xiaomi
authored andcommitted
docs(contest): add Q11 for --backfill to recover pre-hook sessions
Signed-off-by: v-yanxingyu <v-yanxingyu@xiaomi.com>
1 parent ff50313 commit 872f9d3

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

zh-cn/contest_2026/ai_coding_log_guide.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,17 @@ git add logs/ && git commit -s -m "logs: final sync" && git push
327327

328328
不可以。直接调用 API 的对话不在 session transcript 中,工具无法采集。请务必使用上述 4 种官方支持的工具。
329329

330+
### Q11:安装 hook 之前的 Claude Code 历史对话能补回来吗?
331+
332+
可以。Claude Code 的历史对话保存在本机 `~/.claude/projects/` 目录。在选手仓内执行以下命令即可一键补回:
333+
334+
```bash
335+
contest-snapshot --backfill
336+
git add logs/ && git commit -s -m "logs: backfill history" && git push
337+
```
338+
339+
命令会自动扫描所有历史 transcript,跳过已采集的,将未采集的补导进 `logs/`。可多次执行,不会产生重复。
340+
330341
## 七、反馈与支持
331342

332343
- 技术问题:大赛技术支持群(由组委会拉入)。

0 commit comments

Comments
 (0)