AI 工具指南

Codex Bugfix Rollback Record Mistakes

整理 AI 工具新手用 Codex 修 bug 时常见错误:不看工作区、缺复现记录、改动范围过大、没有验证命令、忘记回滚点,以及发现问题后的修复顺序。

What is the problem?

整理 AI 工具新手用 Codex 修 bug 时常见错误:不看工作区、缺复现记录、改动范围过大、没有验证命令、忘记回滚点,以及发现问题后的修复顺序。

Quick solution

Treat this as a Codex troubleshooting issue. First confirm the environment, inputs, permissions, logs, and delivery boundary. Then use the linked deep guide for the full checklist before changing production code or promising a result.

Read the deep guide

Detailed steps

  1. 暂停继续修改,不要继续让 Codex 扩大范围。
  2. 查看 `git status` 和 `git diff`,列出所有变化。
  3. 区分目标 bug 相关改动、无关改动、无法解释的改动。
  4. 保留必要证据:原始报错、当前 diff、验证命令输出。
  5. 移除无关改动,或单独记录为后续建议。
  6. 重新确认复现步骤和验收标准。

Commands or code

本次问题:
出现的错误:
原因:
已恢复的无关改动:
保留的修复:
验证方式:
回滚方式:
下次开工前新增检查项:

Risk notes

Confirm the real project environment, account permissions, platform rules, and output quality before delivery. Do not ship AI-generated changes without human review, and do not claim indexing, income, deployment success, or ranking improvements without measured evidence.