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 — Stuck After Compaction With long calls to models.dev · Issue #3053 · anomalyco/opencode

Stuck After Compaction With long calls to models.dev #3053

New issue
Copy link
New issue
Copy link
Closed
Closed
Stuck After Compaction With long calls to models.dev#3053
Copy link
Assignees
rekram1-node

Description

@wojons
wojons
opened on Oct 9, 2025
Issue body actions

I been facing an issue i had it with many models like glm-4.5, glm-4.6, grok-code and a few others the typically after a compact event the logs will show a very long call to models.dev and it will never recover on its own when it gets here and i have to manually start again. I will leave this ticket open to bring more data as i find it.

INFO  2025-10-09T05:29:40 +89ms service=session.compaction pruned=0 total=0 found
INFO  2025-10-09T06:01:32 +1912090ms service=models.dev file={} refreshing
INFO  2025-10-05T09:02:52 +104ms service=session.compaction pruned=0 total=0 found
INFO  2025-10-05T09:31:21 +1709605ms service=models.dev file={} refreshing
INFO  2025-10-04T10:21:06 +2042611ms service=models.dev file={} refreshing
INFO  2025-10-04T11:21:06 +3600031ms service=models.dev file={} refreshing
INFO  2025-10-04T12:21:06 +3600008ms service=models.dev file={} refreshing
INFO  2025-10-04T13:21:06 +3600031ms service=models.dev file={} refreshing
INFO  2025-10-04T14:21:06 +3600030ms service=models.dev file={} refreshing
INFO  2025-10-04T15:21:06 +3600032ms service=models.dev file={} refreshing
INFO  2025-10-04T16:21:06 +3600031ms service=models.dev file={} refreshing

Activity

  1. github-actions commented on Oct 9, 2025

    @github-actions
    github-actionsBot
    on Oct 9, 2025 – with GitHub Actions
    Contributor
    More actions

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

    • [BUG] OpenCode just hangs randomly after receiving instructions #2940: Very similar symptoms - OpenCode hangs randomly after receiving instructions, logs show session.compaction followed by models.dev refreshing patterns, requiring manual restart

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

  2. rekram1-node
    assigned
    thdxr
    on Oct 9, 2025
  3. rekram1-node commented on Oct 9, 2025

    @rekram1-node
    rekram1-node
    on Oct 9, 2025
    Member
    More actions

    hmm

  4. wojons commented on Oct 9, 2025

    @wojons
    wojons
    on Oct 9, 2025
    Author
    More actions

    This one is with opencode/grok-code

    INFO  2025-10-09T05:32:55 +77ms service=session.compaction pruned=0 total=0 found
    INFO  2025-10-09T06:24:15 +3080464ms service=models.dev file={} refreshing
    
    INFO  2025-10-09T06:44:05 +99ms service=session.compaction pruned=0 total=0 found
    INFO  2025-10-09T07:26:00 +2515337ms service=models.dev file={} refreshing
    
  5. OpeOginni commented on Oct 9, 2025

    @OpeOginni
    OpeOginni
    on Oct 9, 2025
    Contributor
    More actions

    @wojons I don't think the compact that causes the issue, this fetch comes every hour, I would suggest trying to call https://models.dev/api.json in your browser to see if its a network issue.
    Maybe best fix would be to have a timeout on this fetch to abort it if its more than 10 seconds, to prevent the indefinite hanging.

  6. rekram1-node commented on Oct 9, 2025

    @rekram1-node
    rekram1-node
    on Oct 9, 2025
    Member
    More actions

    definitely, pr welcome btw

    if not ill take care of it

  7. rekram1-node
    assigned
    rekram1-node
    and unassigned
    thdxr
    on Oct 9, 2025
  8. OpeOginni commented on Oct 9, 2025

    @OpeOginni
    OpeOginni
    on Oct 9, 2025
    Contributor
    More actions

    @rekram1-node read my mind lol

  9. wojons commented on Oct 9, 2025

    @wojons
    wojons
    on Oct 9, 2025
    Author
    More actions

    @OpeOginni I will trust your judgment on the call what i noticed was that they seemed to happen one after the other anytime i check when stuck in the logs that became the pattern. I have had it on multiple computers multiple networks including data centers etc.

  10. rekram1-node commented on Oct 12, 2025

    @rekram1-node
    rekram1-node
    on Oct 12, 2025
    Member
    More actions

    Maybe best fix would be to have a timeout on this fetch to abort it if its more than 10 seconds, to prevent the indefinite hanging.

    Now I don't think it caused issue in this case, it is still prolly good to timeout so Im approving

    Reacted by OpeOginni
  11. OneOfLzx commented on Jan 22, 2026

    @OneOfLzx
    OneOfLzx
    on Jan 22, 2026
    More actions

    You might consider trying the OpenCode Sentinel project—it cuts all network access except to your LLM, so it works flawlessly in network-restricted environments👍👍.

    Repo: https://github.com/oneoflzx/opencode-sentinel

  12. github-actions commented on Mar 28, 2026

    @github-actions
    github-actionsBot
    on Mar 28, 2026 – with GitHub Actions
    Contributor
    More actions

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

  13. github-actions
    closed this as completedon Mar 28, 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

No labels
No labels

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.