GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — /compact doesn't utilize prompt caching · Issue #10342 · anomalyco/opencode

/compact doesn't utilize prompt caching #10342

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
/compact doesn't utilize prompt caching#10342
Copy link
Assignees
rekram1-node
Labels
bugSomething isn't working

Description

@zaidka
zaidka
opened on Jan 24, 2026
Issue body actions

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. zaidka
    added
    bugSomething isn't working
    on Jan 24, 2026
  2. github-actions
    assigned
    rekram1-node
    on Jan 24, 2026
  3. github-actions commented on Jan 24, 2026

    @github-actions
    github-actionsBot
    on Jan 24, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • [FEATURE]: Anthropic (and others) caching improvement #5416: [FEATURE]: Anthropic (and others) caching improvement - discusses caching optimization for Anthropic models
    • [BUG]: Auto compaction not triggering reliably with Anthropic models #6068: [BUG]: Auto compaction not triggering reliably with Anthropic models - related to compaction not working correctly with certain models
    • [BUG] Compactation Fails Agent forgets everything #8394: [BUG] Compactation Fails Agent forgets everything - compaction-related failures that might affect caching behavior

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

  4. Luckybalabala
    added 6 commits that reference this issue on Jan 24, 2026

    docs(github): add remaining issue analyses and implementation guides

    391077f

    fix(opencode): add prompt caching to session compaction - Issue anoma…

    9859412

    fix(opencode): add prompt caching to session compaction - Issue anoma…

    7ff669a

    fix(opencode): add prompt caching to session compaction - Issue anoma…

    73f68a1

    docs(github): add remaining issue analyses and implementation guides

    ce1d378
  5. TomLucidor commented on Feb 24, 2026

    @TomLucidor
    TomLucidor
    on Feb 24, 2026
    More actions

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

  6. github-actions commented on Apr 26, 2026

    @github-actions
    github-actionsBot
    on Apr 26, 2026 – with GitHub Actions
    Contributor
    More actions

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

  7. github-actions
    closed this as not plannedon Apr 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.