Skip to content

stuck in compaction loop, kept writing summary after summary, i am seeing "Context at 95% — Magic Context is compacting history before continuing. This may take up to 2 minutes. #123

@DexterHuang

Description

@DexterHuang

Description

Context at 95% — Magic Context is compacting history before continuing. This may take up to 2 minutes.

Environment

  • Plugin: v0.21.8
  • OS: linux x64
  • Node: v24.14.0
  • OpenCode: 1.15.13

Configuration

Config from ~/.config/opencode/magic-context.jsonc:

{
  "$schema": "https://raw.githubusercontent.com/cortexkit/opencode-magic-context/master/assets/magic-context.schema.json",
  "historian": {
    "model": "github-copilot/gpt-5.4"
  },
  "dreamer": {
    "model": "github-copilot/gemini-3-flash-preview"
  },
  "sidekick": {
    "model": "github-copilot/gpt-5-mini"
  }
}

Diagnostics

  • Timestamp: 2026-06-01T14:16:09.483Z
  • Plugin: v0.21.8
  • OS: linux x64
  • Node: v24.14.0
  • OpenCode installed: true (1.15.13)
  • Plugin registered in opencode config: true
  • Plugin registered in tui config: true
  • magic-context.jsonc parse error: none
  • AFT available: false (opencode=false, pi=false)
  • Conflicts detected: none

Config paths

{
  "configDir": "~/.config/opencode",
  "opencodeConfig": "~/.config/opencode/opencode.json",
  "opencodeConfigFormat": "json",
  "magicContextConfig": "~/.config/opencode/magic-context.jsonc",
  "tuiConfig": "~/.config/opencode/tui.json",
  "tuiConfigFormat": "json",
  "omoConfig": null
}

magic-context.jsonc flags

{
  "$schema": "https://raw.githubusercontent.com/cortexkit/opencode-magic-context/master/assets/magic-context.schema.json",
  "historian": {
    "model": "github-copilot/gpt-5.4"
  },
  "dreamer": {
    "model": "github-copilot/gemini-3-flash-preview"
  },
  "sidekick": {
    "model": "github-copilot/gpt-5-mini"
  }
}

Plugin cache

{
  "path": "~/.cache/opencode/packages/@cortexkit/opencode-magic-context@latest",
  "cached": "0.15.3",
  "latest": "0.21.8"
}

Storage

{
  "path": "~/.local/share/cortexkit/magic-context",
  "exists": false,
  "context_db_size": "0 B"
}

Recent sessions

No recent OpenCode sessions found (or OpenCode DB unavailable on this runtime).

Historian dumps

(Metadata only — XML content is not included in this report.)
Dumps are stored per-project under <project>/.opencode/magic-context/historian/.

{
  "byProject": [],
  "legacyDumps": {
    "dir": "/tmp/opencode/magic-context/historian",
    "count": 0,
    "recent": []
  }
}

Historian failures (session_meta)

No sessions with historian failures.

Log file

  • Path: /tmp/opencode/magic-context/magic-context.log
  • Exists: false
  • Size: 0 KB

Historian failure signals (log, sanitized)

No historian failure log lines found in recent history.

Recent errors (last 20, sanitized)

No error-shaped log lines found in recent history.

Log (last 400 lines, sanitized)

<no log output>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions