fail to upgrade from v0.8.3 even after running bunx @cortexkit/opencode-magic-context@latest doctor --force
Upon reopening opencode, the opencode-magic-context version remains at v0.8.3. Checking .cache/opencode/packages confirms that doctor correctly deleted the previous cache, but the newly downloaded version is still v0.8.3.
## Description
fail to upgrade from v0.8.3 even after running bunx @cortexkit/opencode-magic-context@latest doctor --force
## Environment
- Plugin: v0.8.12
- OS: linux x64
- Node: v22.22.2
- OpenCode: 1.4.3
## 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": "kimi-for-coding/k2p5"
},
"dreamer": {
"enabled": true,
"model": "kimi-for-coding/k2p5",
"fallback_models": [
"step-plan/step-3.5-flash-2603"
]
}
}
## Diagnostics
- Timestamp: 2026-04-14T11:34:07.359Z
- Plugin: v0.8.12
- OS: linux x64
- Node: v22.22.2
- OpenCode installed: true (1.4.3)
- 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.jsonc",
"opencodeConfigFormat": "jsonc",
"magicContextConfig": "~/.config/opencode/magic-context.jsonc",
"tuiConfig": "~/.config/opencode/tui.json",
"tuiConfigFormat": "json",
"omoConfig": "~/.config/opencode/oh-my-openagent.jsonc"
}
### magic-context.jsonc flags
{
"$schema": "https://raw.githubusercontent.com/cortexkit/opencode-magic-context/master/assets/magic-context.schema.json",
"historian": {
"model": "kimi-for-coding/k2p5"
},
"dreamer": {
"enabled": true,
"model": "kimi-for-coding/k2p5",
"fallback_models": [
"step-plan/step-3.5-flash-2603"
]
}
}
### Plugin cache
{
"path": "~/.cache/opencode/packages/@cortexkit/opencode-magic-context@latest",
"cached": "0.8.3",
"latest": "0.8.12"
}
### Storage
{
"path": "~/.local/share/opencode/storage/plugin/magic-context",
"exists": true,
"context_db_size": "3.9 MB"
}
### Historian dumps
{
"dir": "/tmp/magic-context-historian",
"count": 0,
"recent": []
}
### Log file
- Path: /tmp/magic-context.log
- Exists: true
- Size: 2725 KB
## Log (last 200 lines, sanitized)
[2026-04-14T10:49:13.905Z] [dreamer] timer tick — checking schedule and embeddings
[2026-04-14T10:49:13.914Z] [dreamer] timer tick — checking schedule window "02:00-06:00"
[2026-04-14T10:49:13.918Z] [magic-context] embedding model failed to load: {}
[2026-04-14T11:04:13.908Z] [dreamer] timer tick — checking schedule and embeddings
[2026-04-14T11:04:13.911Z] [dreamer] timer tick — checking schedule window "02:00-06:00"
[2026-04-14T11:04:13.911Z] [magic-context] embedding model failed to load: {}
[2026-04-14T11:17:16.636Z] [magic-context] no conflicts detected, plugin enabled
[2026-04-14T11:17:16.645Z] [dreamer] started independent schedule timer (every 15m)
[2026-04-14T11:17:16.645Z] [magic-context] started TUI action consumer (2s poll)
[2026-04-14T11:17:16.646Z] [magic-context] conflict-warning: Desktop state file not found at ~/.config/ai.opencode.desktop/opencode.global.dat
[2026-04-14T11:17:16.646Z] [magic-context] cleanup: no active Desktop session found
[2026-04-14T11:17:29.333Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] event message.updated: no assistant info extracted from event
[2026-04-14T11:17:29.350Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] event message.updated: provider=kimi-for-coding model=k2p5 hasUsageTokens=false tokens.input=0 cache.read=0 cache.write=0
[2026-04-14T11:17:29.350Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] event message.updated: skipping — no usage tokens and no known usage
[2026-04-14T11:17:29.363Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] injected generic guidance into system prompt
[2026-04-14T11:17:29.363Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] system prompt hash initialized: c54de9d0c54f48802fc910fefe92dd6b (len=7221)
[2026-04-14T11:17:48.120Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] transform stage: stage=findSessionId elapsed=0.0ms messages=1
[2026-04-14T11:17:48.120Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] transform stage: stage=findLastUserMessageId elapsed=0.1ms
[2026-04-14T11:17:48.120Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] transform stage: stage=getOrCreateSessionMeta elapsed=0.1ms
[2026-04-14T11:17:48.120Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] transform stage: stage=modelChangeDetection elapsed=0.0ms
[2026-04-14T11:17:48.120Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] transform stage: stage=schedulerAndUsage elapsed=0.0ms
[2026-04-14T11:17:48.120Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] transform scheduler: percentage=0.0% inputTokens=0 cacheTtl=5m lastResponseTime=0 decision=defer
[2026-04-14T11:17:48.120Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] transform stage: stage=emergencyRecoveryBlock elapsed=0.2ms
[2026-04-14T11:17:48.121Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] transform stage: stage=prepareCompartmentInjection elapsed=0.7ms
[2026-04-14T11:17:48.130Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] transform stage: stage=tagMessages elapsed=8.8ms
[2026-04-14T11:17:48.130Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] transform stage: stage=getTagsBySession elapsed=0.1ms count=1
[2026-04-14T11:17:48.130Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] transform stage: stage=applyFlushedStatuses elapsed=0.0ms
[2026-04-14T11:17:48.130Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] transform stage: stage=batchFinalize:flushed elapsed=0.1ms
[2026-04-14T11:17:48.130Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] transform stage: stage=stripStructuralNoise elapsed=0.0ms strippedParts=0
[2026-04-14T11:17:48.130Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] transform stage: stage=stripClearedReasoning elapsed=0.0ms strippedParts=0
[2026-04-14T11:17:48.130Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] transform stage: stage=compartmentPhase elapsed=0.4ms
[2026-04-14T11:17:48.131Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] transform stage: stage=batchFinalize:heuristics elapsed=0.0ms
[2026-04-14T11:17:48.132Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] nudge: none fired at 0.0% (band=far lastBand=none lastNudge=0 current=0 interval=10000 projected=none)
[2026-04-14T11:17:48.132Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] transform stage: stage=postTransformPhase elapsed=1.6ms
[2026-04-14T11:17:48.132Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] transform completed in 12.2ms (1 messages, 1 targets, watermark: 0)
[2026-04-14T11:17:48.138Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] event message.updated: no assistant info extracted from event
[2026-04-14T11:17:48.147Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] injected sisyphus guidance into system prompt
[2026-04-14T11:17:48.148Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] system prompt hash changed: c54de9d0c54f48802fc910fefe92dd6b → efda589ffa50067010245ea7fbbb50a8 (len=46717), triggering flush
[2026-04-14T11:18:17.256Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] event message.updated: provider=kimi-for-coding model=k2p5 hasUsageTokens=true tokens.input=24642 cache.read=4608 cache.write=0
[2026-04-14T11:18:17.268Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] event message.updated: totalInputTokens=29250 contextLimit=262144 percentage=11.2%
[2026-04-14T11:18:17.285Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] event message.updated: provider=kimi-for-coding model=k2p5 hasUsageTokens=true tokens.input=24642 cache.read=4608 cache.write=0
[2026-04-14T11:18:17.285Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] event message.updated: totalInputTokens=29250 contextLimit=262144 percentage=11.2%
[2026-04-14T11:18:17.297Z] [magic-context][ses_2744a1207ffe85zf3RaUHtV5hY] event message.updated: no assistant info extracted from event
[2026-04-14T11:19:13.860Z] [dreamer] timer tick — checking schedule and embeddings
[2026-04-14T11:19:13.870Z] [dreamer] timer tick — checking schedule window "02:00-06:00"
[2026-04-14T11:19:13.875Z] [magic-context] embedding model failed to load: {}
[2026-04-14T11:19:43.048Z] [magic-context] no conflicts detected, plugin enabled
[2026-04-14T11:19:43.054Z] [dreamer] started independent schedule timer (every 15m)
[2026-04-14T11:19:43.054Z] [magic-context] started TUI action consumer (2s poll)
[2026-04-14T11:19:43.055Z] [magic-context] conflict-warning: Desktop state file not found at ~/.config/ai.opencode.desktop/opencode.global.dat
[2026-04-14T11:19:43.055Z] [magic-context] cleanup: no active Desktop session found
[2026-04-14T11:20:20.095Z] [magic-context] no conflicts detected, plugin enabled
[2026-04-14T11:20:20.101Z] [dreamer] started independent schedule timer (every 15m)
[2026-04-14T11:20:20.101Z] [magic-context] started TUI action consumer (2s poll)
[2026-04-14T11:20:20.101Z] [magic-context] conflict-warning: Desktop state file not found at ~/.config/ai.opencode.desktop/opencode.global.dat
[2026-04-14T11:20:20.101Z] [magic-context] cleanup: no active Desktop session found
[2026-04-14T11:20:25.171Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] event message.updated: no assistant info extracted from event
[2026-04-14T11:20:25.182Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] event message.updated: provider=kimi-for-coding model=k2p5 hasUsageTokens=false tokens.input=0 cache.read=0 cache.write=0
[2026-04-14T11:20:25.182Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] event message.updated: skipping — no usage tokens and no known usage
[2026-04-14T11:20:25.193Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] injected generic guidance into system prompt
[2026-04-14T11:20:25.194Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] system prompt hash initialized: c54de9d0c54f48802fc910fefe92dd6b (len=7221)
[2026-04-14T11:20:37.981Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] transform stage: stage=findSessionId elapsed=0.0ms messages=1
[2026-04-14T11:20:37.981Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] transform stage: stage=findLastUserMessageId elapsed=0.1ms
[2026-04-14T11:20:37.981Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] transform stage: stage=getOrCreateSessionMeta elapsed=0.1ms
[2026-04-14T11:20:37.981Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] transform stage: stage=modelChangeDetection elapsed=0.0ms
[2026-04-14T11:20:37.981Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] transform stage: stage=schedulerAndUsage elapsed=0.0ms
[2026-04-14T11:20:37.982Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] transform scheduler: percentage=0.0% inputTokens=0 cacheTtl=5m lastResponseTime=0 decision=defer
[2026-04-14T11:20:37.982Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] transform stage: stage=emergencyRecoveryBlock elapsed=0.3ms
[2026-04-14T11:20:37.982Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] transform stage: stage=prepareCompartmentInjection elapsed=0.2ms
[2026-04-14T11:20:37.992Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] transform stage: stage=tagMessages elapsed=10.1ms
[2026-04-14T11:20:37.992Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] transform stage: stage=getTagsBySession elapsed=0.1ms count=1
[2026-04-14T11:20:37.992Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] transform stage: stage=applyFlushedStatuses elapsed=0.0ms
[2026-04-14T11:20:37.992Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] transform stage: stage=batchFinalize:flushed elapsed=0.1ms
[2026-04-14T11:20:37.992Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] transform stage: stage=stripStructuralNoise elapsed=0.1ms strippedParts=0
[2026-04-14T11:20:37.992Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] transform stage: stage=stripClearedReasoning elapsed=0.0ms strippedParts=0
[2026-04-14T11:20:37.993Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] transform stage: stage=compartmentPhase elapsed=0.4ms
[2026-04-14T11:20:37.993Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] transform stage: stage=batchFinalize:heuristics elapsed=0.0ms
[2026-04-14T11:20:37.994Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] nudge: none fired at 0.0% (band=far lastBand=none lastNudge=0 current=0 interval=10000 projected=none)
[2026-04-14T11:20:37.994Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] transform stage: stage=postTransformPhase elapsed=1.2ms
[2026-04-14T11:20:37.994Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] transform completed in 12.7ms (1 messages, 1 targets, watermark: 0)
[2026-04-14T11:20:37.998Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] event message.updated: no assistant info extracted from event
[2026-04-14T11:20:38.007Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] injected sisyphus guidance into system prompt
[2026-04-14T11:20:38.008Z] [magic-context][ses_274476333ffe3Mn4TMeJy5J8nh] system prompt hash changed: c54de9d0c54f48802fc910fefe92dd6b → efda589ffa50067010245ea7fbbb50a8 (len=46717), triggering flush
[2026-04-14T11:23:24.377Z] [magic-context] no conflicts detected, plugin enabled
[2026-04-14T11:23:24.382Z] [dreamer] started independent schedule timer (every 15m)
[2026-04-14T11:23:24.382Z] [magic-context] started TUI action consumer (2s poll)
[2026-04-14T11:23:24.383Z] [magic-context] conflict-warning: Desktop state file not found at ~/.config/ai.opencode.desktop/opencode.global.dat
[2026-04-14T11:23:24.383Z] [magic-context] cleanup: no active Desktop session found
[2026-04-14T11:23:30.491Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] event message.updated: no assistant info extracted from event
[2026-04-14T11:23:30.502Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] event message.updated: provider=kimi-for-coding model=k2p5 hasUsageTokens=false tokens.input=0 cache.read=0 cache.write=0
[2026-04-14T11:23:30.502Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] event message.updated: skipping — no usage tokens and no known usage
[2026-04-14T11:23:30.516Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] injected generic guidance into system prompt
[2026-04-14T11:23:30.517Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] system prompt hash initialized: c54de9d0c54f48802fc910fefe92dd6b (len=7221)
[2026-04-14T11:23:43.199Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] transform stage: stage=findSessionId elapsed=0.0ms messages=1
[2026-04-14T11:23:43.199Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] transform stage: stage=findLastUserMessageId elapsed=0.1ms
[2026-04-14T11:23:43.199Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] transform stage: stage=getOrCreateSessionMeta elapsed=0.1ms
[2026-04-14T11:23:43.200Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] transform stage: stage=modelChangeDetection elapsed=0.0ms
[2026-04-14T11:23:43.200Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] transform stage: stage=schedulerAndUsage elapsed=0.0ms
[2026-04-14T11:23:43.200Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] transform scheduler: percentage=0.0% inputTokens=0 cacheTtl=5m lastResponseTime=0 decision=defer
[2026-04-14T11:23:43.200Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] transform stage: stage=emergencyRecoveryBlock elapsed=0.2ms
[2026-04-14T11:23:43.200Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] transform stage: stage=prepareCompartmentInjection elapsed=0.2ms
[2026-04-14T11:23:43.210Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] transform stage: stage=tagMessages elapsed=9.6ms
[2026-04-14T11:23:43.210Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] transform stage: stage=getTagsBySession elapsed=0.2ms count=1
[2026-04-14T11:23:43.210Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] transform stage: stage=applyFlushedStatuses elapsed=0.1ms
[2026-04-14T11:23:43.210Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] transform stage: stage=batchFinalize:flushed elapsed=0.1ms
[2026-04-14T11:23:43.210Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] transform stage: stage=stripStructuralNoise elapsed=0.1ms strippedParts=0
[2026-04-14T11:23:43.210Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] transform stage: stage=stripClearedReasoning elapsed=0.0ms strippedParts=0
[2026-04-14T11:23:43.210Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] transform stage: stage=compartmentPhase elapsed=0.3ms
[2026-04-14T11:23:43.211Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] transform stage: stage=batchFinalize:heuristics elapsed=0.0ms
[2026-04-14T11:23:43.211Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] nudge: none fired at 0.0% (band=far lastBand=none lastNudge=0 current=0 interval=10000 projected=none)
[2026-04-14T11:23:43.211Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] transform stage: stage=postTransformPhase elapsed=1.2ms
[2026-04-14T11:23:43.211Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] transform completed in 12.2ms (1 messages, 1 targets, watermark: 0)
[2026-04-14T11:23:43.216Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] event message.updated: no assistant info extracted from event
[2026-04-14T11:23:43.227Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] injected sisyphus guidance into system prompt
[2026-04-14T11:23:43.227Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] system prompt hash changed: c54de9d0c54f48802fc910fefe92dd6b → efda589ffa50067010245ea7fbbb50a8 (len=46717), triggering flush
[2026-04-14T11:24:08.938Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] event message.updated: provider=kimi-for-coding model=k2p5 hasUsageTokens=true tokens.input=0 cache.read=29250 cache.write=0
[2026-04-14T11:24:08.949Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] event message.updated: totalInputTokens=29250 contextLimit=262144 percentage=11.2%
[2026-04-14T11:24:08.963Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] event message.updated: provider=kimi-for-coding model=k2p5 hasUsageTokens=true tokens.input=0 cache.read=29250 cache.write=0
[2026-04-14T11:24:08.963Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] event message.updated: totalInputTokens=29250 contextLimit=262144 percentage=11.2%
[2026-04-14T11:24:08.974Z] [magic-context][ses_274448f34ffeW3WkXKk2mVrlIE] event message.updated: no assistant info extracted from event
[2026-04-14T11:26:36.580Z] [magic-context] no conflicts detected, plugin enabled
[2026-04-14T11:26:36.585Z] [dreamer] started independent schedule timer (every 15m)
[2026-04-14T11:26:36.585Z] [magic-context] started TUI action consumer (2s poll)
[2026-04-14T11:26:36.586Z] [magic-context] conflict-warning: Desktop state file not found at ~/.config/ai.opencode.desktop/opencode.global.dat
[2026-04-14T11:26:36.586Z] [magic-context] cleanup: no active Desktop session found
[2026-04-14T11:26:43.051Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] event message.updated: no assistant info extracted from event
[2026-04-14T11:26:43.062Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] event message.updated: provider=kimi-for-coding model=k2p5 hasUsageTokens=false tokens.input=0 cache.read=0 cache.write=0
[2026-04-14T11:26:43.062Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] event message.updated: skipping — no usage tokens and no known usage
[2026-04-14T11:26:43.074Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] injected generic guidance into system prompt
[2026-04-14T11:26:43.075Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] system prompt hash initialized: c54de9d0c54f48802fc910fefe92dd6b (len=7221)
[2026-04-14T11:26:55.917Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] transform stage: stage=findSessionId elapsed=0.0ms messages=1
[2026-04-14T11:26:55.917Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] transform stage: stage=findLastUserMessageId elapsed=0.1ms
[2026-04-14T11:26:55.917Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] transform stage: stage=getOrCreateSessionMeta elapsed=0.1ms
[2026-04-14T11:26:55.917Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] transform stage: stage=modelChangeDetection elapsed=0.0ms
[2026-04-14T11:26:55.917Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] transform stage: stage=schedulerAndUsage elapsed=0.0ms
[2026-04-14T11:26:55.917Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] transform scheduler: percentage=0.0% inputTokens=0 cacheTtl=5m lastResponseTime=0 decision=defer
[2026-04-14T11:26:55.917Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] transform stage: stage=emergencyRecoveryBlock elapsed=0.2ms
[2026-04-14T11:26:55.917Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] transform stage: stage=prepareCompartmentInjection elapsed=0.2ms
[2026-04-14T11:26:55.934Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] transform stage: stage=tagMessages elapsed=16.7ms
[2026-04-14T11:26:55.934Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] transform stage: stage=getTagsBySession elapsed=0.2ms count=1
[2026-04-14T11:26:55.934Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] transform stage: stage=applyFlushedStatuses elapsed=0.1ms
[2026-04-14T11:26:55.934Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] transform stage: stage=batchFinalize:flushed elapsed=0.1ms
[2026-04-14T11:26:55.934Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] transform stage: stage=stripStructuralNoise elapsed=0.1ms strippedParts=0
[2026-04-14T11:26:55.934Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] transform stage: stage=stripClearedReasoning elapsed=0.0ms strippedParts=0
[2026-04-14T11:26:55.935Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] transform stage: stage=compartmentPhase elapsed=0.3ms
[2026-04-14T11:26:55.935Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] transform stage: stage=batchFinalize:heuristics elapsed=0.0ms
[2026-04-14T11:26:55.936Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] nudge: none fired at 0.0% (band=far lastBand=none lastNudge=0 current=0 interval=10000 projected=none)
[2026-04-14T11:26:55.936Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] transform stage: stage=postTransformPhase elapsed=1.2ms
[2026-04-14T11:26:55.936Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] transform completed in 19.4ms (1 messages, 1 targets, watermark: 0)
[2026-04-14T11:26:55.940Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] event message.updated: no assistant info extracted from event
[2026-04-14T11:26:55.951Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] injected sisyphus guidance into system prompt
[2026-04-14T11:26:55.951Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] system prompt hash changed: c54de9d0c54f48802fc910fefe92dd6b → efda589ffa50067010245ea7fbbb50a8 (len=46717), triggering flush
[2026-04-14T11:27:21.171Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] event message.updated: provider=kimi-for-coding model=k2p5 hasUsageTokens=true tokens.input=0 cache.read=29250 cache.write=0
[2026-04-14T11:27:21.182Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] event message.updated: totalInputTokens=29250 contextLimit=262144 percentage=11.2%
[2026-04-14T11:27:21.196Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] event message.updated: provider=kimi-for-coding model=k2p5 hasUsageTokens=true tokens.input=0 cache.read=29250 cache.write=0
[2026-04-14T11:27:21.196Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] event message.updated: totalInputTokens=29250 contextLimit=262144 percentage=11.2%
[2026-04-14T11:27:21.218Z] [magic-context][ses_274419f21ffe4kx8NrFCryTdP6] event message.updated: no assistant info extracted from event
[2026-04-14T11:30:17.395Z] [magic-context] no conflicts detected, plugin enabled
[2026-04-14T11:30:17.401Z] [dreamer] started independent schedule timer (every 15m)
[2026-04-14T11:30:17.401Z] [magic-context] started TUI action consumer (2s poll)
[2026-04-14T11:30:17.401Z] [magic-context] conflict-warning: Desktop state file not found at ~/.config/ai.opencode.desktop/opencode.global.dat
[2026-04-14T11:30:17.401Z] [magic-context] cleanup: no active Desktop session found
[2026-04-14T11:30:27.656Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] event message.updated: no assistant info extracted from event
[2026-04-14T11:30:27.665Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] event message.updated: provider=kimi-for-coding model=k2p5 hasUsageTokens=false tokens.input=0 cache.read=0 cache.write=0
[2026-04-14T11:30:27.665Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] event message.updated: skipping — no usage tokens and no known usage
[2026-04-14T11:30:27.677Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] injected generic guidance into system prompt
[2026-04-14T11:30:27.678Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] system prompt hash initialized: c54de9d0c54f48802fc910fefe92dd6b (len=7221)
[2026-04-14T11:30:40.052Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] transform stage: stage=findSessionId elapsed=0.0ms messages=1
[2026-04-14T11:30:40.052Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] transform stage: stage=findLastUserMessageId elapsed=0.1ms
[2026-04-14T11:30:40.052Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] transform stage: stage=getOrCreateSessionMeta elapsed=0.1ms
[2026-04-14T11:30:40.052Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] transform stage: stage=modelChangeDetection elapsed=0.0ms
[2026-04-14T11:30:40.052Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] transform stage: stage=schedulerAndUsage elapsed=0.0ms
[2026-04-14T11:30:40.052Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] transform scheduler: percentage=0.0% inputTokens=0 cacheTtl=5m lastResponseTime=0 decision=defer
[2026-04-14T11:30:40.052Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] transform stage: stage=emergencyRecoveryBlock elapsed=0.2ms
[2026-04-14T11:30:40.052Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] transform stage: stage=prepareCompartmentInjection elapsed=0.2ms
[2026-04-14T11:30:40.061Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] transform stage: stage=tagMessages elapsed=8.5ms
[2026-04-14T11:30:40.061Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] transform stage: stage=getTagsBySession elapsed=0.2ms count=1
[2026-04-14T11:30:40.061Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] transform stage: stage=applyFlushedStatuses elapsed=0.0ms
[2026-04-14T11:30:40.061Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] transform stage: stage=batchFinalize:flushed elapsed=0.1ms
[2026-04-14T11:30:40.061Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] transform stage: stage=stripStructuralNoise elapsed=0.1ms strippedParts=0
[2026-04-14T11:30:40.061Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] transform stage: stage=stripClearedReasoning elapsed=0.0ms strippedParts=0
[2026-04-14T11:30:40.062Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] transform stage: stage=compartmentPhase elapsed=0.4ms
[2026-04-14T11:30:40.062Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] transform stage: stage=batchFinalize:heuristics elapsed=0.0ms
[2026-04-14T11:30:40.062Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] nudge: none fired at 0.0% (band=far lastBand=none lastNudge=0 current=0 interval=10000 projected=none)
[2026-04-14T11:30:40.063Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] transform stage: stage=postTransformPhase elapsed=1.1ms
[2026-04-14T11:30:40.063Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] transform completed in 11.0ms (1 messages, 1 targets, watermark: 0)
[2026-04-14T11:30:40.067Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] event message.updated: no assistant info extracted from event
[2026-04-14T11:30:40.075Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] injected sisyphus guidance into system prompt
[2026-04-14T11:30:40.075Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] system prompt hash changed: c54de9d0c54f48802fc910fefe92dd6b → efda589ffa50067010245ea7fbbb50a8 (len=46717), triggering flush
[2026-04-14T11:31:11.767Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] event message.updated: provider=kimi-for-coding model=k2p5 hasUsageTokens=true tokens.input=0 cache.read=29250 cache.write=0
[2026-04-14T11:31:11.779Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] event message.updated: totalInputTokens=29250 contextLimit=262144 percentage=11.2%
[2026-04-14T11:31:11.801Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] event message.updated: provider=kimi-for-coding model=k2p5 hasUsageTokens=true tokens.input=0 cache.read=29250 cache.write=0
[2026-04-14T11:31:11.801Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] event message.updated: totalInputTokens=29250 contextLimit=262144 percentage=11.2%
[2026-04-14T11:31:11.811Z] [magic-context][ses_2743e31a2ffeqi37jC8tU6ID7K] event message.updated: no assistant info extracted from event
[2026-04-14T11:32:36.484Z] [magic-context] no conflicts detected, plugin enabled
[2026-04-14T11:32:36.490Z] [dreamer] started independent schedule timer (every 15m)
[2026-04-14T11:32:36.490Z] [magic-context] started TUI action consumer (2s poll)
[2026-04-14T11:32:36.490Z] [magic-context] conflict-warning: Desktop state file not found at ~/.config/ai.opencode.desktop/opencode.global.dat
[2026-04-14T11:32:36.490Z] [magic-context] cleanup: no active Desktop session found
Short description
fail to upgrade from v0.8.3 even after running bunx @cortexkit/opencode-magic-context@latest doctor --force
What happened?
Expected Behavior
After running
bunx @cortexkit/opencode-magic-context@latest doctor --force, opencode-magic-context should be upgraded to v0.8.12.Actual Behavior
Upon reopening opencode, the opencode-magic-context version remains at v0.8.3. Checking
.cache/opencode/packagesconfirms thatdoctorcorrectly deleted the previous cache, but the newly downloaded version is still v0.8.3.Diagnostics
Plugin version
0.8.3
OpenCode version
1.4.3
Platform
Ubuntu 24.04, WSL2
Client
OpenCode TUI (CLI)
Log output (optional)