Repository navigation
Log every server-side safety fallback step on OpenCode 1 and 2 - #863
Closed
antauth-alfonso[bot] wants to merge 3 commits into
Closed
antauth-alfonso[bot] wants to merge 3 commits into
antauth-alfonso[bot] wants to merge 3 commits into
Conversation
Reuse the hidden usage marker's validation for closed per-attempt INFO metadata on both OpenCode generations. Keep notice deduplication and describe the next step as trying the requested model again, rather than staying on fallback.
Author
|
Squash-merged to main as 3b12e2f. |
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.
Refs #861 (part A). One INFO line per served fallback step with per-attempt token counts (no content); OpenCode 2 previously logged nothing, OpenCode 1 only the first handoff. Notice text no longer claims follow-ups stay on the fallback model.
Summary by cubic
Logs every Anthropic server-side safety fallback step on OpenCode 1 and 2, with per-attempt token counts and stop reason but no response content. OpenCode 2 previously logged nothing; OpenCode 1 only logged the first handoff.
server-fallbackchannel with requested and served model IDs, handoff flag, stop reason, and per-attempt token counts.Written for commit 0d8b5c2. Summary will update on new commits.