Repository navigation
Release 0.25.2: Claude 5.5 models work with an Anthropic key - #36
Merged
Merged
Conversation
Claude Sonnet 5.5, Opus 5.5 and Haiku 5.5 think by default, so a reply can open with a thinking block. The provider read only content[0].text and failed those goals. Join the text blocks instead, and report stop_reason when a reply has no text.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With an Anthropic key, 0.25.1 failed goals with
anthropic response missing content[0].textwhenever the model thought before answering. Claude Sonnet 5.5, Opus 5.5 and Haiku 5.5 think by default, so a reply can open with athinkingblock, and the provider read onlycontent[0].text. Sonnet 5.5 and Opus 5.5 are Phonton's default Anthropic models for the standard and frontier tiers.Changes
textblock of a Messages reply and skipthinkingblocks.stop_reasoninstead of a missing-field error.anthropic_text_skips_leading_thinking_block.phonton-cli/Cargo.toml,Cargo.lock,package.jsonand the README badge, plus the CHANGELOG entry andrelease-notes/v0.25.2.md.Verified on Windows
cargo fmt --check,cargo clippy --workspace --all-targets -D warnings, and the release build pass.cargo test --workspace --no-fail-fast: every suite passes exceptphonton-verifybrowser_check_passes_on_valid_html, which needs the Playwright install that CI performs (Cannot find module 'playwright'locally).phonton doctor,phonton doctor --provideragainst Anthropic,extensions list/doctor --json,mcp list --json,scripts/benchmark-plan.ps1 -ReleaseBinary,npm run test:npm-wrapper(reports 0.25.2) andnpm pack --dry-runpass.claude-sonnet-5-5answered a coding prompt with athinkingblock followed by the text. On 0.25.1 an Aider Polyglot JavaScript goal failed at a model call with this error; on this branch the same goal got text back from every model call, and the Rust exerciseluhn-fromended review-ready on Sonnet 5.5 with its tests passing.