Skip to content

/compact doesn't utilize prompt caching #10342

Closed as not planned
Closed as not planned

Description

@zaidka

Description

When calling /compact, it seems like prompt caching isn't being used. Regular messages in the same session do get cache hits, so the caching setup is working - it just doesn't seem to apply to /compact.

Plugins

None

OpenCode version

1.1.34

Steps to reproduce

  1. Connect OpenCode to a model served by llama.cpp. May or may not be reproducible with other providers.
  2. Have a back and forth conversation and confirm prompt caching is being used either by looking at the server logs, or judging by time to first token.
  3. Run /compact command and observe prompt caching not get used.

Screenshot and/or share link

No response

Operating System

Fedora 43

Terminal

ptyxis

Activity

  1. github-actions commented on Jan 24, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. TomLucidor commented on Feb 24, 2026

    @TomLucidor

    Please keep this updated whenever possible for those who uses local models

  3. github-actions commented on Apr 26, 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

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions