---
id: 20260507-T0-15
title: "Claude Code更新支持环境变量配置"
title_en: "Claude Code Adds Environment Variable Support"
url: https://ai.daily.yangsir.net/daily/20260507-T0-15
issue_date: 2026-05-07
publish_date: 2026-05-06T22:08:13.000Z
category: release
source_name: "Claude Code Releases"
source_url: https://github.com/anthropics/claude-code/releases/tag/v2.1.132
---

# Claude Code更新支持环境变量配置

Claude Code发布v2.1.132版本，新增CLAUDE_CODE_SESSION_ID和CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN环境变量。新变量允许开发者自定义Bash工具子进程环境和终端渲染选项。更新还修复了会话ID传递到钩子函数的问题，提升了开发者工具的灵活性和可配置性。

## English Version

**Claude Code Adds Environment Variable Support**

Claude Code released v2.1.132, adding CLAUDE_CODE_SESSION_ID and CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN environment variables. The new variables allow developers to customize Bash subprocess environments and terminal rendering options. The update also fixes session ID passing to hooks, enhancing developer tool flexibility and configurability.

---

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

**详情页**：https://ai.daily.yangsir.net/daily/20260507-T0-15

---

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