Skip to content

Crash on Claude Code Opus 4.6: model field changed from struct to string #118

@demyxu

Description

@demyxu

Description

After updating Claude Code to Opus 4.6 (claude-opus-4-6), ccline v1.1.2 crashes on startup with a deserialization error. The statusline no longer renders.

Error

Error("invalid type: string \"claude-opus-4-6\", expected struct Model", line: 1, column: 26)

Cause

It appears Claude Code now sends the model field as a plain string (e.g. "claude-opus-4-6") in the statusline JSON, whereas ccline expects it to be a struct/object.

Steps to Reproduce

  1. Update Claude Code to latest version (model: claude-opus-4-6[1m])
  2. Have ccline v1.1.2 configured as the statusline
  3. Start a Claude Code session → statusline is blank / not rendered

Environment

  • ccline version: 1.1.2
  • Platform: Windows 11
  • Claude Code model: claude-opus-4-6 (Opus 4.6, 1M context)

Expected Behavior

ccline should gracefully handle the model field as either a string or a struct, and display the model name correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions