Skip to content

Historian aborting sub-agents #72

@clickcatalystmcc

Description

@clickcatalystmcc

Description

Always happen to me when there are sub-agents already running then a historian spawn, it will abort the other agents when it finished first. Environment is WSL archlinux.

Environment

  • Plugin: v0.18.0
  • OS: linux x64
  • Node: v24.14.1
  • OpenCode: 1.14.41

Configuration

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

{
  "$schema": "https://raw.githubusercontent.com/cortexkit/opencode-magic-context/master/assets/magic-context.schema.json",
  "enabled": true,
  "ctx_reduce_enabled": true,
  "drop_tool_structure": true,
  "protected_tags": 20,
  "auto_drop_tool_age": 50,
  "history_budget_percentage": 0.15,
  "compressor": {
    "enabled": true,
    "min_compartment_ratio": 1000,
    "max_merge_depth": 5,
    "cooldown_ms": 600000
  },
  "historian": {
    "model": "openai/gpt-5.4",
    "fallback_models": [
      "github-copilot/claude-sonnet-4.6",
      "google/gemini-3-pro-preview"
    ]
  },
  "dreamer": {
    "enabled": true,
    "model": "openai/gpt-5.4",
    "fallback_models": [
      "github-copilot/claude-sonnet-4.6",
      "google/gemini-3-pro-preview"
    ],
    "schedule": "02:00-06:00",
    "inject_docs": false,
    "user_memories": {
      "enabled": true,
      "promotion_threshold": 3
    },
    "pin_key_files": {
      "enabled": true,
      "token_budget": 10000,
      "min_reads": 4
    },
    "tasks": [
      "consolidate",
      "verify",
      "archive-stale",
      "improve"
    ]
  },
  "sidekick": {
    "enabled": true,
    "model": "openai/gpt-5.4-mini-fast",
    "fallback_models": [
      "opencode/gpt-5-nano",
      "opencode/big-pickle"
    ],
    "timeout_ms": 30000
  },
  "cache_ttl": {
    "default": "5m"
  },
  "execute_threshold_percentage": {
    "default": 55
  },
  "memory": {
    "enabled": true,
    "injection_budget_tokens": 6000,
    "auto_promote": true
  },
  "compaction_markers": true
}

Diagnostics

  • Timestamp: 2026-05-11T14:23:44.028Z
  • Plugin: v0.18.0
  • OS: linux x64
  • Node: v24.14.1
  • OpenCode installed: true (1.14.41)
  • Plugin registered in opencode config: true
  • Plugin registered in tui config: true
  • magic-context.jsonc parse error: none
  • 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": "~/.config/opencode/oh-my-openagent.json"
}

magic-context.jsonc flags

{
  "$schema": "https://raw.githubusercontent.com/cortexkit/opencode-magic-context/master/assets/magic-context.schema.json",
  "enabled": true,
  "ctx_reduce_enabled": true,
  "drop_tool_structure": true,
  "protected_tags": 20,
  "auto_drop_tool_age": 50,
  "history_budget_percentage": 0.15,
  "compressor": {
    "enabled": true,
    "min_compartment_ratio": 1000,
    "max_merge_depth": 5,
    "cooldown_ms": 600000
  },
  "historian": {
    "model": "openai/gpt-5.4",
    "fallback_models": [
      "github-copilot/claude-sonnet-4.6",
      "google/gemini-3-pro-preview"
    ]
  },
  "dreamer": {
    "enabled": true,
    "model": "openai/gpt-5.4",
    "fallback_models": [
      "github-copilot/claude-sonnet-4.6",
      "google/gemini-3-pro-preview"
    ],
    "schedule": "02:00-06:00",
    "inject_docs": false,
    "user_memories": {
      "enabled": true,
      "promotion_threshold": 3
    },
    "pin_key_files": {
      "enabled": true,
      "token_budget": 10000,
      "min_reads": 4
    },
    "tasks": [
      "consolidate",
      "verify",
      "archive-stale",
      "improve"
    ]
  },
  "sidekick": {
    "enabled": true,
    "model": "openai/gpt-5.4-mini-fast",
    "fallback_models": [
      "opencode/gpt-5-nano",
      "opencode/big-pickle"
    ],
    "timeout_ms": 30000
  },
  "cache_ttl": {
    "default": "5m"
  },
  "execute_threshold_percentage": {
    "default": 55
  },
  "memory": {
    "enabled": true,
    "injection_budget_tokens": 6000,
    "auto_promote": true
  },
  "compaction_markers": true
}

Plugin cache

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

Storage

{
  "path": "~/.local/share/cortexkit/magic-context",
  "exists": true,
  "context_db_size": "29.3 MB"
}

Historian dumps

(Metadata only — XML content is not included in this report.)

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

Historian failures (session_meta)

No sessions with historian failures.

Log file

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

Historian failure signals (log, sanitized)

No historian failure 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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions