Claude Code – 원격 측정을 비활성화하면 1시간 프롬프트 캐시 TTL도 비활성화됩니다.

hackernews | | 📦 오픈소스
#anthropic #claude #review
원문 출처: hackernews · Genesis Park에서 요약 및 분석

요약

사용자/세션이 1시간 프롬프트 캐시 TTL을 받을 자격이 있는 경우 원격 분석이 비활성화된 경우에도 계속 이를 수신해야 합니다. 세션이 1시간 프롬프트 캐시 계층을 사용하고 있는지 확인합니다.

본문

You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert I have searched existing issues and this hasn't been reported yet This is a single bug report (please file separate reports for different bugs) I am using the latest version of Claude Code What's Wrong? When telemetry is disabled (e.g., via DISABLE_TELEMETRY=1 or CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1), sessions that would otherwise receive 1-hour prompt cache TTL appear to fall back to the 5-minute TTL instead. What Should Happen? Prompt cache TTL selection should be independent of telemetry. If a user/session would otherwise qualify for 1-hour prompt cache TTL, it should still receive it even when telemetry is disabled. Error Messages/Logs Steps to Reproduce Start a session with telemetry enabled. Confirm the session is using the 1-hour prompt cache tier. Start a comparable session with either DISABLE_TELEMETRY=1 or CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1. Compare the cache metadata between the two sessions. Observe that the 1-hour TTL is no longer applied when telemetry is disabled. Note: This may not be reproducible if using bedrock and ENABLE_PROMPT_CACHING_1H_BEDROCK=1 is set. I only tested with an Anthropic Claude Max plan. What metadata to check: In session transcripts, check the assistant response usage.cache_creation metadata for the prompt cache tier: usage.cache_creation.ephemeral_1h_input_tokens usage.cache_creation.ephemeral_5m_input_tokens If 1-hour TTL is active, ephemeral_1h_input_tokens should be non-zero. If 5-minute TTL is active, ephemeral_5m_input_tokens should be non-zero. Preflight Checklist What's Wrong? When telemetry is disabled (e.g., via DISABLE_TELEMETRY=1 or CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1), sessions that would otherwise receive 1-hour prompt cache TTL appear to fall back to the 5-minute TTL instead. What Should Happen? Prompt cache TTL selection should be independent of telemetry. If a user/session would otherwise qualify for 1-hour prompt cache TTL, it should still receive it even when telemetry is disabled. Error Messages/Logs Steps to Reproduce DISABLE_TELEMETRY=1 orCLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 .Note: This may not be reproducible if using bedrock and ENABLE_PROMPT_CACHING_1H_BEDROCK=1 is set. I only tested with an Anthropic Claude Max plan.What metadata to check: In session transcripts, check the assistant response usage.cache_creation metadata for the prompt cache tier:usage.cache_creation.ephemeral_1h_input_tokens usage.cache_creation.ephemeral_5m_input_tokens If 1-hour TTL is active, ephemeral_1h_input_tokens should be non-zero.If 5-minute TTL is active, ephemeral_5m_input_tokens should be non-zero.Claude Model Opus Is this a regression? I don't know Last Working Version No response Claude Code Version 2.1.96 Platform Anthropic API Operating System Windows Terminal/Shell VS Code integrated terminal Additional Information No response

Genesis Park 편집팀이 AI를 활용하여 작성한 분석입니다. 원문은 출처 링크를 통해 확인할 수 있습니다.

공유

관련 저널 읽기

전체 보기 →