claude-code - 💡(How to fix) Fix [BUG] Welcome banner shows wrong model name ("sonnet" instead of "opus") in exported conversation [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#51991Fetched 2026-04-23 07:39:29
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×4closed ×1commented ×1

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • 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?

The welcome banner in an exported conversation displays sonnet · API Usage Billing even though the session was running on Opus 4.7 the entire time.

<img width="562" height="170" alt="Image" src="https://github.com/user-attachments/assets/dee4376b-e31f-496a-a64d-d0b47351ae93" />

What Should Happen?

The banner should show opus · API Usage Billing (matching the actual model used).

Error Messages/Logs

Steps to Reproduce

  1. Start a Claude Code session on Opus (claude-opus-4-7)

    <img width="850" height="167" alt="Image" src="https://github.com/user-attachments/assets/e97fdbbf-bec1-4b00-a098-8547ccb62920" />
  2. Run /export to export the conversation

  3. Open the exported .txt file

  4. Check the welcome banner at the top

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.117

Platform

AWS Bedrock

Operating System

macOS

Terminal/Shell

Other

Additional Information

Asking the model "which model are you?" within the same session correctly returns Opus 4.7. The issue appears to be in the banner/export rendering, not the actual model selection... I hope at least.

extent analysis

TL;DR

The welcome banner in the exported conversation should be updated to reflect the actual model used, which is Opus 4.7, instead of displaying "sonnet · API Usage Billing".

Guidance

  • Verify that the model selection is correctly stored and retrieved during the export process, as the model correctly identifies itself as Opus 4.7 when asked within the session.
  • Check the export rendering code for any hardcoded or default values that might be causing the incorrect banner to be displayed.
  • Review the documentation for the /export command to ensure that it is correctly configured to include the actual model used in the conversation.
  • Test the export feature with different models to see if the issue is specific to Opus 4.7 or if it affects other models as well.

Example

No code snippet is provided as the issue does not include specific code details.

Notes

The issue seems to be related to the export rendering process, and the actual model selection appears to be correct. Further investigation is needed to determine the root cause of the issue.

Recommendation

Apply a workaround by manually updating the welcome banner in the exported conversation to reflect the actual model used, until a permanent fix can be implemented. This is because the issue appears to be specific to the export rendering process, and a workaround can provide a temporary solution until the root cause is addressed.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING