Skip to content

Switching from plan to build mode with DeepSeek V4 Pro/Flash causes context loss and cache misses #35708

Closed as not planned

Description

@wjr050430

Description

When using DeepSeek V4 Pro or V4 Flash models, switching from plan to build mode causes:

1.Loss of conversation context from previous turns
2.Only ~2048 tokens hit DeepSeek's automatic prefix cache after the switch, the rest (potentially hundreds of thousands of tokens) are cache misses, resulting in significantly increased latency and cost

Hope that switching between plan/build modes of the same model can properly preserve context and cache.

Plugins

No response

OpenCode version

v1.17.14 Desktop

Steps to reproduce

1.Configure DeepSeek V4 Pro/Flash
2.Have several turns of conversation in plan mode
3.Switch to build mode (/build)
4.Observe: the next request only has ~2048 tokens of cached prefix, everything else misses, and partial context is lost

Screenshot and/or share link

Image Image

Operating System

Windows 11

Terminal

Desktop

Activity

  1. github-actions commented on Sep 6, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions