---
id: 20260609-T0-13
title: "Claude Code 1.0.31更新：新增安全模式和目录切换"
title_en: "Claude Code 1.0.31: Adds Safe Mode and Directory Switch"
url: https://ai.daily.yangsir.net/daily/20260609-T0-13
issue_date: 2026-06-09
publish_date: 2026-06-08T21:57:18.000Z
category: release
source_name: "Claude Code Releases"
source_url: https://github.com/anthropics/claude-code/releases/tag/v2.1.169
---

# Claude Code 1.0.31更新：新增安全模式和目录切换

Claude Code更新至v2.1.169版本。新增--safe-mode标志，可禁用所有自定义设置进行故障排查；添加/cd命令，允许不中断提示缓存的情况下切换工作目录。这些改进解决了开发者在使用过程中遇到的环境配置和会话管理问题，提升了调试效率。

## English Version

**Claude Code 1.0.31: Adds Safe Mode and Directory Switch**

Claude Code released v2.1.169 with new features: --safe-mode flag for troubleshooting with all customizations disabled, and /cd command to switch working directories without breaking prompt cache. These updates resolve environment configuration and session management issues, improving developer debugging efficiency.

---

**来源**：[Claude Code Releases](https://github.com/anthropics/claude-code/releases/tag/v2.1.169)

**详情页**：https://ai.daily.yangsir.net/daily/20260609-T0-13

---

*智语观潮 · Daily — https://ai.daily.yangsir.net/llms.txt*