Repository navigation
fix(claude-code): show model thinking and cache reads, price cache reads in agent configs - #162
Siddhesh2377 wants to merge 1 commit into
Conversation
…ads in agent configs
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (10)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe changes add Anthropic thinking blocks for reasoning content and translate cached-token usage without double-counting it as input. They also carry cached-input prices from the model catalog into OpenClaw, Prime Agent, and OpenCode cost configurations. ChangesReasoning and cached-token support
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Suggested reviewers: Merge Risk: ⚪ Minimal · up to This change shows model thinking and cache reads in Claude Code and adds cache-read pricing to OpenCode, OpenClaw, and Prime Agent cost displays. No concrete merge-blocking risk was identified. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The reviewed changes do not show expanded access or privileges. Remaining uncertainty concerns client handling of unsigned reasoning content and interrupted responses. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 3 | ❌ 1 | ❓ 1❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
Full details: Linked Issues checkExplanation The implementation maps non-empty Resolution Provide reviewable evidence for the Full details: Docstring CoverageExplanation Docstring coverage is 71.43% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 35 functions across 8 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Merged into #160. |
Closes #99.
Claude Code now shows the model's thinking and reports cache reads in its usage. OpenCode, OpenClaw and Prime Agent now get the cache-read price, so a cached prompt costs what it should in their cost display.
Tested manually on prod: Claude Code over two turns (thinking shown, cache reads reported), and OpenCode's cost display.
Summary by cubic
Fixes Claude Code translation so model reasoning surfaces as thinking blocks and cache reads are reported, priced, and not double-counted.
input_tokenstocache_read_input_tokens, keeping the total unchanged.OpenCode,OpenClaw, and Prime Agent configs now use the catalog's cached-input price.Written for commit eda5afe. Summary will update on new commits.
Summary by CodeRabbit