Claude Code v2.1.234、環境変数と GitLab 連携機能を追加
本文の状態
日本語全文を表示中
詳細モードで約12分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
Claude Code Changelog
Anthropic は Claude Code v2.1.234 をリリースし、セッションごとの設定ディレクトリ管理機能やテキスト選択クリア機能、GitLab マージリクエスト表示機能を追加した。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
変更点
- オプションの環境変数
CLAUDE_CODE_PROJECT_DIR_NAMEを追加しました。セッションごとに設定ディレクトリを持つホストでは、プロジェクトごとのトランスクリプト用ディレクトリの短い名前を指定できるようになりました。
- アプリ内テキスト選択をクリアするためのキーバインドアクション
selection:clearを追加しました。これにより、特定のキーを選択解除に割り当てることが可能になり、エージェントビューでも動作します。
- フッターとステータスラインに GitLab マージリクエストバッジを追加しました。GitLab リモートを持ち、認証された glab CLI を使用しているリポジトリでは、MR !N の状態(ドラフト/保留中/成功)が表示されます。
- クラウド利用制限がリセットされると、Claude Code は自動的にセッションを再開するようになりました。この機能は
/configで「利用制限時に自動で続行」オプションをオフにすることで無効化できます。
Claude は、ユーザーを識別する際にアカウントのメールアドレスのみを使用し、ユーザーが明示的に要求しない限り、無関係なサービスに送信しないよう指示されました。
セキュリティ強化として、リモートファイル読み込み、セッション復元、CLAUDE.md のインクルード、ワークフロースクリプト、およびファイルアップロードにおいて、Windows NT 名前空間(\??\)パスの拒否が実装されました。これにより、NTLM 認証情報の漏洩ベクトルに対する事前承認済みファイルアクセスの堅牢性が向上しました。
会話の圧縮後にも、非常に長いセッション内で自動モードがサンクボックス化されたコマットのネットワークアクセスを繰り返し再確認して拒絶していた不具合を修正しました。
バックグラウンドサブエージェントツールの権限プロンプトへの回答時に、セッションスコープ内の権限回答(拒否を含む)が失われる問題を修正しました。
ストリーミングフォールバックパス(通常はサードパーティゲートウェイ経由)での API 応答に、思考ブロックの thinking フィールドやテキストブロックの text フィールドが欠落している場合のクラッシュを修正しました。
不自然な Unicode シーケンスを含む一部のメッセージで Markdown レンダリングが極端に遅くなる問題を修正しました。
セッション名が 200 文字の上限に達している、または絵文字が多い場合に、ListAgents からコピーした受信者に対して SendMessage が拒否される不具合を修正しました。
git リモートのホストに特殊なユーザー情報が含まれている場合、リポジトリ検出でホストを誤って読み取り、間違ったホストのリンクやリポジトリ固有の動作を引き起こしていた問題を修正しました。
MCP 診断情報の出力で機密情報が露呈する不具合を修正しました。スコープ競合の警告では設定済みの ${VAR} 形式を表示し、接続失敗の詳細情報からはサーバーのオリジン情報のみを表示するように変更しました。
- 厳格な既知のマーケットプレイス許可リスト(
strictKnownMarketplaces)において、Git が実際に接続するホストと異なるホストを持つ SCP スタイルの Git マーケットプレイスソースを誤って受け入れていた不具合を修正しました。
- フルスクリーン表示時に
/loginの OAuth URL などのモーダルテキストがコピーされた際に文字が欠落していた不具合を修正しました。
- レンダリングされた Markdown で水平線(
---)がその後の行と重なって表示されていた不具合を修正しました。
連続するシェルスクリプトコマンドが、タスクの更新処理を挟み込むことで複数の「1 つのシェルスクリプトコマンドを実行」行に分割される不具合を修正しました。
! シェルスクリプトコマンドの実行中に /permissions などのダイアログが開かれている場合、コマンド完了時に誤って閉じられてしまう問題を修正しました。
キューイングされた ! シェルスクリプトコマンドの入力を上矢印キーで編集しようとした際、そのコマンドがプレーンテキストとしてモデルに送信されてしまう不具合を修正しました。
- キューに残っているメッセージがプロンプト履歴に再表示される不具合を修正しました。また、キューにあるメッセージを選択中に Esc キーを押してもターンが中断されなくなりました。さらに、
!モードは途中での送信後にも継続して残る現象も解消されました。
- 「新しいフルスクリーンレンダラーを試しますか?」というプロンプトを受け入れた際に、セッションが許可モード(例:
--dangerously-skip-permissions)やツールの許可・拒否ルール、モデル設定、エフォートフラグを無視して再起動する不具合を修正しました。
/tuiコマンドが再起動時に--allowed-toolsや--disallowed-toolsのルールを破棄する不具合を修正しました。現在は、セッションに再起動後に引き継げない制限がある場合、切り替えを拒否し、その理由を表示します。
- 信頼性プロンプトにおいて、ディレクトリが最初に確認された時点でまだリポジトリが存在していなかった場合に、リポジトリ全体のスコープに関する警告が表示されない不具合を修正しました。
- IDE の差分タブを権限再確認の最中に閉じた際、新しいプロンプトに対して以前の入力内容が誤って回答される不具合を修正しました。
- クラウドコードデスクトップや VS Code でホストされたリモートコントロールセッション中にユーザーに送信されたファイルが、現在は正しくアップロードされるようになりました。これにより、スマートフォンや Web ブラウザで開いた際に空のカードが表示されていた問題が解消されました。
CLAUDE_CODE_OAUTH_TOKENが設定されている状態で/loginコマンドを実行した後、古いトークンに関する注意喚起メッセージがクラウドによって自動的に再開されたターンに漏れ出さなくなりました。現在は、この警告はユーザー自身に対してのみ表示されます。
- 権限プレビュー機能が修正され、現在ではインバウンド信頼ゲートで承認されたチャンネルサーバーへのみ情報が中継されるようになりました。また、サーバー側が明示的に権限機能のオプトアウトを選択している場合も尊重されます。
・リレーされた権限プレビューにおける認証情報のマスキング不具合を修正しました。これにより、承認者がコマンド、パス、または宛先を見逃すことがなくなりました。また、サイズが大きすぎる秘密鍵ブロックも、強力な赤色化処理の下で適切に隠蔽されるようになりました。
・プロバイダー API トークンが権限プレビューでマスキングされる際、その直後にシェルデリミタが続いていても正しくマスキングされるよう修正しました。
・Claude Desktop 間のセッションメッセージが、クロスセッション通信が無効とみなされた際に受信側セッションによって黙殺されていた不具合を修正しました。これにより、送信者のクエリが数分間「思考中」のまま表示される問題が解消されました。
・リモートコントロール機能において、異なる claude.ai アカウントまたは組織にこのコンピューターをサインインしようとした際、数時間後に誤解を招く HTTP 404 エラーが表示されていたのを修正しました。現在は実行中のセッションが数秒以内に停止し、その理由も明確に表示されます。
・Claude Code Desktop や VS Code から開始されたリモートコントロールセッションにおいて、端末やデスクトップ/VS Code でホストされているセッションの権限モード(およびモデル)が変更される際にも、スマートフォンや claude.ai/code が常に最新の状態を反映するようになりました。
・リモートコントロール機能において、スマートフォンまたは claude.ai/code 上で選択された「エフォートレベル」は、端末やデスクトップ/VS Code でホストされているセッションにも適用され、セッションはそのエフォートレベルを接続中のクライアントに公開します。
・SendMessage および ListAgents コマンドにおいて、アカウントのセッションリストが長すぎて完全に確認できない場合、見えないセッションが存在しないものとして扱うのではなく、その旨を明確に表示するように変更しました。
・期限切れとなった Anthropic プロファイル認証情報を参照した際、claude.ai へのログインが優先されるべき状況で、ユーザーを /login ページへ誘導するよう修正しました。
トランスクリプトの表示が改善されました。ユーザーが入力したプロンプトも、回答と同様に Markdown 形式(ハイライトされたコードブロック、インラインコード、リストなど)で正しくレンダリングされます。
「API から空または不正なレスポンスが返されました」というエラーメッセージが強化され、返ってきた内容の種別や本文の種類、サイズ、リクエスト ID が表示されるようになりました。これにより、元のストリーミングリクエストが失敗した理由も明確になります。
自動生成されたセッションタイトルが改善され、ユーザーのリクエストをそのまま言い換えた文(例:「モバイル版のログインボタンを修正」)ではなく、「ログインボタンのバグ」といった短く具体的な名称として表示されるようになりました。
組み込みスキル claude-api の読み込みにかかるコンテキストコストが削減されました。参照ドキュメントが必要な時だけロードする方式に変更したことで、約 200k トークン以上から約 25k トークンに抑えられています。
- Claude が動作中であっても
/permissionsを開けるようになりました。ルールの変更は、現在のターン全体に適用されます。
Claude が動作中であっても、/add-dir コマンドが使用可能になりました。また、/add-dir、/autocompact、/theme、/help、/config、/advisor の各ダイアログは、フルスクリーン TUI 内で処理の最中に開くことができます。 (原文の技術表記: /add-dir )
「/goal」コマンドは、以前は回復不能なエラー(認証の取り消し、クレジット残高の枯渇、コンテキストオーバーフローなど)が発生してターンが終了しても、待機状態のまま維持されていました。しかし現在は、そのような場合に即座に通知を表示して自身をクリアするようになりました。
また、「/goal」コマンドにおいて、バックグラウンドタスクが 30 分以上もゴールの完了を待ち続けている場合、以前は無限に待たせていましたが、現在は Claude が定期的に確認を行うようになりました。この挙動を無効化したい場合は、環境変数 CLAUDE_CODE_GOAL_CHECKIN_MINUTES=0 を設定してください。
claude setup-tokenコマンドは、予期しない追加の引数を受け取ると、それらを無視して終了するのではなく、エラーを返すようになりました。
全画面モードでの Esc キー入力が、マウスによるテキスト選択をクリアしないように変更されました。Esc は通常通り選択を中断または解除しますが、選択されたテキストはハイライト状態のまま維持されます。
自動モードで各エージェントツールの呼び出し時に表示されていた、「自動モード分類器によって許可されています」という重複する行が削除されました。
/config からの「デフォルトのチームメイトモデル」設定が削除され、エージェントチームのメンバーはリーダーが使用するモデルを継承します。ただし、生成時に特定のモデル名を指定した場合はその限りではありません。
実行中のツールヘッダーに表示されていた経過時間カウンターの色調を暗くし、太字で表示されるカウント値と競合しないように調整しました。
ターン間のバックグラウンドタスク通知は、今後は `` タグ内でモデルに送信されます。これにより、ターン内の配信方法と整合性が保たれます。
Mantle において、メインループのモデルが既に選択されている場合、起動時に管理者ピン利用可能性のプロブをスキップするように変更されました。
Windows 環境では、~/.claude.json が読み取り専用ファイルの場合に繰り返されるリネーム試行による起動の停止現象が解消されました。
原文を表示
What's changed
- Added the optional CLAUDE_CODE_PROJECT_DIR_NAME environment variable: hosts that give each session its own config directory can choose a short name for the per-project transcript directory
- Added the selection:clear keybinding action, so a key can be bound to clear an in-app text selection; also works in the agents view
- Added a GitLab merge request badge to the footer and statusline: repos with a GitLab remote and an authenticated glab CLI show MR !N with draft/pending/green states
- Claude Code now continues your session automatically when a claude.ai usage limit resets; turn it off in /config ("Continue automatically at usage limit")
- Claude is now told to use your account email only to identify you, and not to send it to unrelated services unless you ask
- Security: remote file reads, session restore, CLAUDE.md includes, workflow scripts and file uploads now reject Windows NT-namespace (\??\) paths, hardening the remaining pre-approval file accesses against the NTLM credential-leak vector
- Fixed auto mode in very long sessions repeatedly re-checking and denying sandboxed commands' network access after the conversation had been compacted
- Fixed session-scoped permission answers (including denies) being dropped when answering background subagent tool permission prompts
- Fixed a crash when an API response on the non-streaming fallback path (typically via third-party gateways) contained a thinking block missing its thinking field or a text block missing its text field
- Fixed markdown rendering becoming extremely slow for some messages containing unusual Unicode sequences
- Fixed SendMessage rejecting a recipient copied from ListAgents when the session name is at the 200-character cap or emoji-heavy
- Fixed repository detection mis-reading the host of git remotes with unusual userinfo, producing links and repo-specific behavior for the wrong host
- Fixed MCP diagnostics printing resolved secrets: scope-conflict warnings now show the configured ${VAR} form, and connection-failure details show only the server origin
- Fixed strictKnownMarketplaces allowlists accepting SCP-style git marketplace sources whose host differs from the one git would actually connect to
- Fixed modal text such as the /login OAuth URL losing characters when copied in fullscreen
- Fixed a --- horizontal rule in rendered markdown running into the line after it
- Fixed consecutive shell commands splitting into multiple "Ran 1 shell command" rows when todo/task updates were interleaved between them
- Fixed dialogs like /permissions opened while a ! shell command was running being dismissed when the command finished
- Fixed a queued ! shell command being sent to the model as plain text after pressing up-arrow to edit the queued input
- Fixed queued messages reappearing in the prompt history while still queued, Esc while selecting a queued message no longer interrupts the turn, and ! mode no longer sticks after a mid-turn submit
- Fixed accepting the "Try the new fullscreen renderer?" prompt restarting the session without its permission mode (e.g. --dangerously-skip-permissions), tool allow/deny rules, model or effort flags
- Fixed /tui dropping launch --allowed-tools/--disallowed-tools rules when it restarts; it now declines to switch, with the reason, when the session has restrictions a restart can't carry over
- Fixed trust prompts omitting the repository-wide scope warning when the directory was first seen before the repository existed there
- Fixed a case where an IDE diff tab closing during a permission re-prompt could answer the new prompt with the previous input
- Fixed: files sent to the user during Remote Control sessions hosted by Claude Code Desktop or VS Code now upload, so they open on phone and web instead of showing an empty card
- Fixed: after /login while CLAUDE_CODE_OAUTH_TOKEN is set, the stale-token reminder no longer leaks into Claude's automatically resumed turn — it now appears only to you
- Fixed: permission previews now relay only to channel servers admitted by the inbound trust gate, and a server's explicit permission-capability opt-out is honored
- Fixed: credential masking on relayed permission previews can no longer hide commands, paths, or destinations from the approver; oversized private-key blocks now redact under full-strength redaction
- Fixed: provider API tokens that mask on permission previews now mask even when directly followed by shell delimiters
- Fixed Claude Desktop inter-session messages being silently dropped by the recipient session when cross-session messaging read as disabled, which left the sender's query "thinking" for many minutes
- Remote Control: signing this computer in to a different claude.ai account or organization now stops the running session within seconds and says why, instead of a misleading HTTP 404 hours later
- Remote Control sessions started from Claude Code Desktop or VS Code now keep phones and claude.ai/code updated on the session's permission mode (and claude.ai/code on the model) as they change
- Remote Control: effort picks made on a phone or on claude.ai/code now apply to terminal- and Desktop/VS Code-hosted sessions, and the session publishes its effort level to connected clients
- SendMessage and ListAgents now say when your account's session list was too long to check completely, instead of treating unseen sessions as absent
- Expired Anthropic profile credential now points you at /login when a claude.ai login would take precedence
- Improved the transcript: your own prompts now render markdown (highlighted code blocks, inline code, lists) the same way replies do
- Improved the "API returned an empty or malformed response" error to say what came back (content type, body kind, size, request ID) and why the original streaming request failed
- Improved auto-generated session titles to read as short, specific names (e.g. "Login button bug") rather than sentences restating your request (e.g. "Fix the login button on mobile")
- Reduced the context cost of loading the built-in claude-api skill from ~200k+ tokens to ~25k by loading reference docs on demand
- /permissions can now be opened while Claude is working — rule changes apply to the rest of the current turn
- /add-dir can now be used while Claude is working; /add-dir, /autocompact, /theme, /help, /config and /advisor dialogs open mid-turn in the fullscreen TUI
- /goal now clears itself with a notice when a turn dies on an unrecoverable error (e.g. revoked auth, an exhausted credit balance, or a context overflow) instead of staying armed
- /goal: when background tasks keep a goal waiting for 30+ minutes, Claude now checks in on them instead of waiting indefinitely (set CLAUDE_CODE_GOAL_CHECKIN_MINUTES=0 to opt out)
- claude setup-token now rejects unexpected extra arguments instead of silently ignoring them
- Changed Esc in fullscreen mode to no longer clear a mouse text selection: it interrupts or dismisses as usual and the selection stays highlighted
- Removed the redundant "Allowed by auto mode classifier" line that auto mode showed under every Agent tool call
- Removed the "Default teammate model" setting from /config; agent-team teammates now use the leader's model unless the spawn names one
- Dimmed the elapsed-time counter on the running tool header so it no longer competes with the bold counts
- Background task notifications delivered between turns are now sent to the model inside tags, matching mid-turn delivery
- Mantle: skip the admin-pin availability probe at startup when a main-loop model is already picked
- Windows: startup no longer stalls on repeated rename retries when ~/.claude.json is read-only
News to Guide
ニュースの次に確認する
発表内容を、現在の料金や仕様と照らし合わせられる関連ガイドです。
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み