Title
ctx_search causes Bun 1.3.14 segmentation fault on Windows in both fresh and existing OpenCode sessions
Description
On Windows with OpenCode 1.18.15 and Magic Context 0.34.2, calling ctx_search crashes the entire OpenCode process with a Bun 1.3.14 segmentation fault.
Environment
- Plugin: v0.34.2
- OS: win32 x64
- Node: v24.13.0
- OpenCode: 1.18.15
Configuration
Config from ~\.config\cortexkit\magic-context.jsonc:
Diagnostics
- Timestamp: 2026-08-08T02:28:53.940Z
- Plugin: v0.34.2
- OS: win32 x64
- Node: v24.13.0
- OpenCode installed: true [cli] (1.18.15)
- Plugin registered in opencode config: true
- Plugin registered in tui config: true
- magic-context.jsonc parse error: none
- Conflicts detected: none
- MC compaction mode: on
- Native compaction: auto=false, prune=false
OpenCode installations
| Marker |
Path |
Version |
Source |
| [active] |
~\AppData\Roaming\npm\opencode.cmd |
1.18.15 |
PATH |
|
~\AppData\Roaming\ai.opencode.desktop\opencode.settings |
unknown |
desktop |
Config paths
{
"configDir": "~\\.config\\opencode",
"opencodeConfig": "~\\.config\\opencode\\opencode.jsonc",
"opencodeConfigFormat": "jsonc",
"magicContextConfig": "~\\.config\\cortexkit\\magic-context.jsonc",
"tuiConfig": "~\\.config\\opencode\\tui.jsonc",
"tuiConfigFormat": "jsonc",
"omoConfig": null
}
magic-context.jsonc flags
Plugin cache
{
"path": "~\\.cache\\opencode\\packages\\@cortexkit\\opencode-magic-context@latest",
"cached": "0.34.2",
"latest": "0.34.2"
}
Storage
{
"path": "~\\.local\\share\\cortexkit\\magic-context",
"exists": true,
"context_db_size": "5.3 MB"
}
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>/.cortexkit/magic-context/historian/.
{
"byProject": [],
"legacyDumps": {
"dir": "~\\AppData\\Local\\Temp\\opencode\\magic-context\\historian",
"count": 0,
"recent": []
}
}
Historian failures (session_meta)
Note: this counter RESETS to 0 on every successful run — see 'Historian runs' below for the durable history.
No sessions with historian failures.
Historian runs (durable telemetry)
Per-session success/failure/no-op counts from historian_runs (never reset).
No historian runs recorded (or schema predates v24).
Log file
- Path: ~\AppData\Local\Temp\opencode\magic-context\magic-context.log
- Exists: true
- Size: 330 KB
Historian failure signals (log, sanitized)
[2026-08-08T01:19:51.551Z] [magic-context][ses_0214e32f9ffe9JYrQr8NvVYSp2] historian: prompt attempt 1 failed: prompt timed out after 300000ms
[2026-08-08T01:19:51.551Z] [magic-context][ses_0214e32f9ffe9JYrQr8NvVYSp2] historian prompt failed: Error message="prompt timed out after 300000ms" promptLength=14560 stackHead="Error: prompt timed out after 300000ms | at promptWithTimeout (~\.cache\opencode\packages\@cortexkit\opencode-magic-context@latest\node_modules\@cortexkit\opencode-magic-context\dist\index-z70pxrq1.js:9568:17) | at async attemptOnce (unknown) | at async promptSyncWithModelSuggestionRetry (unknown)"
Recent errors (last 20, sanitized)
[2026-08-08T01:19:51.551Z] [magic-context][ses_0214e32f9ffe9JYrQr8NvVYSp2] historian: prompt attempt 1 failed: prompt timed out after 300000ms
[2026-08-08T01:19:51.551Z] [magic-context][ses_0214e32f9ffe9JYrQr8NvVYSp2] historian prompt failed: Error message="prompt timed out after 300000ms" promptLength=14560 stackHead="Error: prompt timed out after 300000ms | at promptWithTimeout (~\.cache\opencode\packages\@cortexkit\opencode-magic-context@latest\node_modules\@cortexkit\opencode-magic-context\dist\index-z70pxrq1.js:9568:17) | at async attemptOnce (unknown) | at async promptSyncWithModelSuggestionRetry (unknown)"
Log (last 400 lines, sanitized)
[2026-08-08T01:43:11.743Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=pp.nudgeAndSticky elapsed=0.1ms
[2026-08-08T01:43:11.743Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=pp.noteAndTodoSynthesis elapsed=0.1ms
[2026-08-08T01:43:11.743Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=pp.autoSearchHint elapsed=0.1ms
[2026-08-08T01:43:11.743Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] final representation: clearedParts=0 mergedReasoningParts=0
[2026-08-08T01:43:11.743Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=finalizeMessageRepresentation elapsed=0.0ms clearedParts=0 mergedReasoningParts=0
[2026-08-08T01:43:11.743Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform: final-wire telemetry estimate=unavailable trusted=false conversation=unknown tools=unknown system=unknown toolDefinitions=unknown tail=[user:text, assistant:step-start+reasoning+tool+tool+step-finish, assistant:step-start+reasoning+text+tool+tool+tool+step-finish]
[2026-08-08T01:43:11.743Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=postTransformPhase elapsed=1.9ms
[2026-08-08T01:43:11.745Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform completed in 16.2ms (5 messages, 7 targets, watermark: 0)
[2026-08-08T01:43:11.768Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] injected generic guidance into system prompt (ctxReduce=true, subagent=false, subagentReduceMode=false)
[2026-08-08T01:43:11.884Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] event message.updated: no assistant info extracted from event
[2026-08-08T01:43:17.446Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] event message.updated: provider=deepseek model=deepseek-v4-flash hasUsageTokens=true tokens.input=4083 cache.read=27264 cache.write=0
[2026-08-08T01:43:17.446Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] event message.updated: totalInputTokens=31347 contextLimit=750000 percentage=4.2%
[2026-08-08T01:43:17.643Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] event message.updated: provider=deepseek model=deepseek-v4-flash hasUsageTokens=true tokens.input=4083 cache.read=27264 cache.write=0
[2026-08-08T01:43:17.643Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] event message.updated: provider=deepseek model=deepseek-v4-flash hasUsageTokens=false tokens.input=0 cache.read=0 cache.write=0
[2026-08-08T01:43:17.644Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] event message.updated: totalInputTokens=31347 contextLimit=750000 percentage=4.2%
[2026-08-08T01:43:17.854Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=findSessionId elapsed=0.0ms messages=4
[2026-08-08T01:43:17.854Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=findLastUserMessageId elapsed=0.0ms
[2026-08-08T01:43:17.855Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=getOrCreateSessionMeta elapsed=0.3ms
[2026-08-08T01:43:17.855Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=modelChangeDetection elapsed=0.1ms
[2026-08-08T01:43:17.855Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=schedulerAndUsage elapsed=0.1ms
[2026-08-08T01:43:17.855Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform scheduler: percentage=4.2% inputTokens=31347 cacheTtl=5m lastResponseTime=1786153397643 decision=defer
[2026-08-08T01:43:17.855Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] [boundary-exec] base=defer bypass=none midTurn=false effective=defer sideEffect=none
[2026-08-08T01:43:17.855Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=emergencyRecoveryBlock elapsed=0.6ms
[2026-08-08T01:43:17.856Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] tag floor: 0 (full-scan fallback) — no leading wire message resolved a tag across 4 msgs
[2026-08-08T01:43:17.856Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] compartment trigger: cheap-skip at 4.2% (below proactive floor 63%) — live-tail upper bound 9143 < triggerBudget 24375; no size trigger possible, skipped full raw read
[2026-08-08T01:43:17.856Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=compartmentTrigger elapsed=0.2ms
[2026-08-08T01:43:17.856Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=prepareCompartmentInjection elapsed=0.0ms
[2026-08-08T01:43:17.856Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=injectTemporalMarkers elapsed=0.0ms
[2026-08-08T01:43:17.856Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=tag.initFromDb elapsed=0.0ms
[2026-08-08T01:43:17.857Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=tag.getSourceContents elapsed=0.1ms
[2026-08-08T01:43:17.861Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=tag.loop elapsed=4.3ms
[2026-08-08T01:43:17.861Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=tag.deriveOwner elapsed=0.5ms
[2026-08-08T01:43:17.861Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=tag.getToolTag elapsed=0.0ms
[2026-08-08T01:43:17.861Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=tag.assignTag elapsed=0.7ms
[2026-08-08T01:43:17.861Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=tag.assignToolTag elapsed=1.1ms
[2026-08-08T01:43:17.861Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=tag.saveSource elapsed=0.4ms
[2026-08-08T01:43:17.861Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=tagMessages elapsed=4.5ms
[2026-08-08T01:43:17.861Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=getActiveTagsBySession elapsed=0.1ms count=9
[2026-08-08T01:43:17.861Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=getTagsByNumbers elapsed=0.2ms targets=9 fetched=9
[2026-08-08T01:43:17.861Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=applyFlushedStatuses elapsed=0.0ms
[2026-08-08T01:43:17.861Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=batchFinalize:flushed elapsed=0.0ms
[2026-08-08T01:43:17.861Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=stripStructuralNoise elapsed=0.0ms strippedParts=0
[2026-08-08T01:43:17.861Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=stripClearedReasoning elapsed=0.0ms strippedParts=0
[2026-08-08T01:43:17.861Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=compartmentPhase elapsed=0.0ms
[2026-08-08T01:43:17.862Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=batchFinalize:heuristics elapsed=0.0ms
[2026-08-08T01:43:17.862Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform: injected m[0]/m[1] (rematerialized=false, reason=cache_hit)
[2026-08-08T01:43:17.862Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=pp.injectM0M1 elapsed=0.4ms
[2026-08-08T01:43:17.862Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=pp.placeholderNeutralize elapsed=0.0ms
[2026-08-08T01:43:17.862Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=pp.nudgeAndSticky elapsed=0.1ms
[2026-08-08T01:43:17.862Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=pp.noteAndTodoSynthesis elapsed=0.1ms
[2026-08-08T01:43:17.862Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=pp.autoSearchHint elapsed=0.1ms
[2026-08-08T01:43:17.862Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] final representation: clearedParts=0 mergedReasoningParts=0
[2026-08-08T01:43:17.862Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=finalizeMessageRepresentation elapsed=0.0ms clearedParts=0 mergedReasoningParts=0
[2026-08-08T01:43:17.862Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform: final-wire telemetry estimate=unavailable trusted=false conversation=unknown tools=unknown system=unknown toolDefinitions=unknown tail=[assistant:step-start+reasoning+tool+tool+step-finish, assistant:step-start+reasoning+text+tool+tool+tool+step-finish, assistant:step-start+reasoning+text+tool+step-finish]
[2026-08-08T01:43:17.862Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform stage: stage=postTransformPhase elapsed=1.1ms
[2026-08-08T01:43:17.864Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] transform completed in 9.3ms (6 messages, 9 targets, watermark: 0)
[2026-08-08T01:43:17.881Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] injected generic guidance into system prompt (ctxReduce=true, subagent=false, subagentReduceMode=false)
[2026-08-08T01:43:18.005Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] event message.updated: no assistant info extracted from event
[2026-08-08T01:43:31.066Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] event message.updated: provider=deepseek model=deepseek-v4-flash hasUsageTokens=true tokens.input=1564 cache.read=31232 cache.write=0
[2026-08-08T01:43:31.066Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] event message.updated: totalInputTokens=32796 contextLimit=750000 percentage=4.4%
[2026-08-08T01:43:31.286Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] event message.updated: provider=deepseek model=deepseek-v4-flash hasUsageTokens=true tokens.input=1564 cache.read=31232 cache.write=0
[2026-08-08T01:43:31.286Z] [magic-context][ses_020f68ce2ffebS7G8hDrH3f54v] event message.updated: totalInputTokens=32796 contextLimit=750000 percentage=4.4%
[2026-08-08T01:43:41.610Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T01:43:41.641Z] [migrations] migration lock check attempt 1/6
[2026-08-08T01:43:41.642Z] [magic-context] upstream migration lane at boot: database=v75, supported_fence=v75
[2026-08-08T01:43:41.695Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T01:43:41.702Z] [dreamer] registered project git:df6c20889e39bef05b9f8ede78fb94f1a543a26d (dreaming=true embeddings=true commits=true; total=1)
[2026-08-08T01:43:41.702Z] [dreamer] started independent schedule timer (every 15m)
[2026-08-08T01:43:41.718Z] [rpc] server listening on 127.0.0.1:58188
[2026-08-08T01:43:41.720Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T01:43:42.359Z] [magic-context][global] models-dev-cache: API layer loaded 493 model metadata entries
[2026-08-08T01:43:42.442Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T01:43:42.442Z] [magic-context] not binding a project identity for this directory
[2026-08-08T01:43:42.444Z] [magic-context] dream timer skipped: no project identity is bound for this directory
[2026-08-08T01:43:42.455Z] [rpc] server listening on 127.0.0.1:58189
[2026-08-08T01:43:42.455Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T01:43:42.789Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] event message.updated: no assistant info extracted from event
[2026-08-08T01:43:42.801Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] event message.updated: provider=deepseek model=deepseek-v4-flash hasUsageTokens=false tokens.input=0 cache.read=0 cache.write=0
[2026-08-08T01:43:42.801Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] event message.updated: skipping — no usage tokens and no known usage
[2026-08-08T01:43:43.639Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=findSessionId elapsed=0.3ms messages=1
[2026-08-08T01:43:43.639Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=findLastUserMessageId elapsed=0.1ms
[2026-08-08T01:43:43.639Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=getOrCreateSessionMeta elapsed=0.5ms
[2026-08-08T01:43:43.645Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=modelChangeDetection elapsed=0.2ms
[2026-08-08T01:43:43.645Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=schedulerAndUsage elapsed=0.3ms
[2026-08-08T01:43:43.645Z] [magic-context][global] models-dev-cache: output reserve capped at 25% for deepseek/deepseek-v4-flash: 384000 → 250000
[2026-08-08T01:43:43.646Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform scheduler: percentage=0.0% inputTokens=0 cacheTtl=5m lastResponseTime=0 decision=defer
[2026-08-08T01:43:43.647Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] [boundary-exec] base=defer bypass=none midTurn=false effective=defer sideEffect=none
[2026-08-08T01:43:43.647Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=emergencyRecoveryBlock elapsed=2.3ms
[2026-08-08T01:43:43.650Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] tag floor: 0 (full-scan fallback) — no leading wire message resolved a tag across 1 msgs
[2026-08-08T01:43:43.652Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] compartment trigger: cheap-skip at 0.0% (below proactive floor 63%) — live-tail upper bound 0 < triggerBudget 24375; no size trigger possible, skipped full raw read
[2026-08-08T01:43:43.652Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=compartmentTrigger elapsed=1.5ms
[2026-08-08T01:43:43.653Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=prepareCompartmentInjection elapsed=1.6ms
[2026-08-08T01:43:43.653Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=injectTemporalMarkers elapsed=0.1ms
[2026-08-08T01:43:43.654Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=tag.initFromDb elapsed=0.3ms
[2026-08-08T01:43:43.655Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=tag.getSourceContents elapsed=0.1ms
[2026-08-08T01:43:43.658Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=tag.loop elapsed=3.7ms
[2026-08-08T01:43:43.658Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=tag.deriveOwner elapsed=0.0ms
[2026-08-08T01:43:43.658Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=tag.getToolTag elapsed=0.0ms
[2026-08-08T01:43:43.658Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=tag.assignTag elapsed=2.7ms
[2026-08-08T01:43:43.658Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=tag.assignToolTag elapsed=0.0ms
[2026-08-08T01:43:43.658Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=tag.saveSource elapsed=0.6ms
[2026-08-08T01:43:43.658Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=tagMessages elapsed=4.9ms
[2026-08-08T01:43:43.659Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=getActiveTagsBySession elapsed=0.3ms count=1
[2026-08-08T01:43:43.659Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=getTagsByNumbers elapsed=0.2ms targets=1 fetched=1
[2026-08-08T01:43:43.659Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=applyFlushedStatuses elapsed=0.1ms
[2026-08-08T01:43:43.659Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=batchFinalize:flushed elapsed=0.1ms
[2026-08-08T01:43:43.659Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=stripStructuralNoise elapsed=0.0ms strippedParts=0
[2026-08-08T01:43:43.659Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=stripClearedReasoning elapsed=0.0ms strippedParts=0
[2026-08-08T01:43:43.660Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=compartmentPhase elapsed=0.7ms
[2026-08-08T01:43:43.671Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] heuristics WILL RUN — reason=m0_hard_fold (drain folded into known m[0] bust, scheduler=defer), context=0.0%, turn=msg_fdf0a4e4a0016R2nr953uTIgNu
[2026-08-08T01:43:43.671Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] pending ops WILL APPLY — reason=scheduler_execute (scheduler=defer), pendingOps=0, context=0.0%
[2026-08-08T01:43:43.672Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=applyPendingOperations elapsed=0.5ms
[2026-08-08T01:43:43.672Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=applyHeuristicCleanup elapsed=0.5ms droppedTools=0 deduplicatedTools=0 droppedInjections=0 compressedTextTags=0 mutatedTextTags=0
[2026-08-08T01:43:43.673Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=clearOldReasoning elapsed=0.1ms
[2026-08-08T01:43:43.673Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=batchFinalize:heuristics elapsed=0.0ms
[2026-08-08T01:43:43.680Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform: injected m[0]/m[1] (rematerialized=true, reason=first_render)
[2026-08-08T01:43:43.680Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=pp.injectM0M1 elapsed=7.2ms
[2026-08-08T01:43:43.680Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=pp.placeholderNeutralize elapsed=0.5ms
[2026-08-08T01:43:43.680Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=pp.nudgeAndSticky elapsed=0.2ms
[2026-08-08T01:43:43.690Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=pp.noteAndTodoSynthesis elapsed=8.9ms
[2026-08-08T01:43:43.847Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] event message.updated: no assistant info extracted from event
[2026-08-08T01:43:44.098Z] [magic-context] embedding model loaded: Xenova/all-MiniLM-L6-v2
[2026-08-08T01:43:44.169Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] auto-search: attached hint to msg_fdf0a4e4a0016R2nr953uTIgNu (4 fragments, top score 1.000)
[2026-08-08T01:43:44.169Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=pp.autoSearchHint elapsed=479.0ms
[2026-08-08T01:43:44.170Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] final representation: clearedParts=0 mergedReasoningParts=0
[2026-08-08T01:43:44.170Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=finalizeMessageRepresentation elapsed=0.2ms clearedParts=0 mergedReasoningParts=0
[2026-08-08T01:43:44.170Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform: final-wire telemetry estimate=unavailable trusted=false conversation=unknown tools=unknown system=unknown toolDefinitions=unknown tail=[user:text, user:text, user:text]
[2026-08-08T01:43:44.171Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform stage: stage=postTransformPhase elapsed=510.9ms
[2026-08-08T01:43:44.173Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] transform completed in 534.3ms (3 messages, 1 targets, watermark: 0)
[2026-08-08T01:43:46.774Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T01:43:47.397Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] injected generic guidance into system prompt (ctxReduce=true, subagent=false, subagentReduceMode=false)
[2026-08-08T01:43:47.397Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] system prompt hash initialized: a56c5a185a950372a98e5ddea950d636 (len=36921)
[2026-08-08T01:43:47.457Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T01:43:51.918Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] event message.updated: provider=deepseek model=deepseek-v4-flash hasUsageTokens=true tokens.input=6040 cache.read=16128 cache.write=0
[2026-08-08T01:43:51.958Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] event message.updated: totalInputTokens=22168 contextLimit=750000 percentage=3.0%
[2026-08-08T01:43:52.560Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] event message.updated: provider=deepseek model=deepseek-v4-flash hasUsageTokens=true tokens.input=6040 cache.read=16128 cache.write=0
[2026-08-08T01:43:52.561Z] [magic-context][ses_020f5b26affe2VxmeY1W0yFz6u] event message.updated: totalInputTokens=22168 contextLimit=750000 percentage=3.0%
[2026-08-08T02:07:11.129Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:07:11.178Z] [migrations] migration lock check attempt 1/6
[2026-08-08T02:07:11.180Z] [magic-context] upstream migration lane at boot: database=v75, supported_fence=v75
[2026-08-08T02:07:11.181Z] [magic-context] not binding a project identity for this directory
[2026-08-08T02:07:11.185Z] [magic-context] dream timer skipped: no project identity is bound for this directory
[2026-08-08T02:07:11.190Z] [rpc] server listening on 127.0.0.1:64010
[2026-08-08T02:07:11.201Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:07:12.096Z] [magic-context][global] models-dev-cache: API layer loaded 493 model metadata entries
[2026-08-08T02:07:13.420Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:07:13.464Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:07:13.470Z] [dreamer] registered project git:df6c20889e39bef05b9f8ede78fb94f1a543a26d (dreaming=true embeddings=true commits=true; total=1)
[2026-08-08T02:07:13.470Z] [dreamer] started independent schedule timer (every 15m)
[2026-08-08T02:07:13.484Z] [rpc] server listening on 127.0.0.1:64011
[2026-08-08T02:07:13.485Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:07:17.033Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:07:17.150Z] [magic-context][global] models-dev-cache: output reserve capped at 25% for deepseek/deepseek-v4-flash: 384000 → 250000
[2026-08-08T02:07:18.487Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:07:37.303Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:07:37.320Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:07:37.323Z] [dreamer] registered project dir:5ec9d57b21ea (dreaming=true embeddings=true commits=true; total=2)
[2026-08-08T02:07:37.336Z] [rpc] server listening on 127.0.0.1:62546
[2026-08-08T02:07:37.338Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:07:48.014Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:07:48.075Z] [migrations] migration lock check attempt 1/6
[2026-08-08T02:07:48.076Z] [magic-context] upstream migration lane at boot: database=v75, supported_fence=v75
[2026-08-08T02:07:48.078Z] [magic-context] not binding a project identity for this directory
[2026-08-08T02:07:48.081Z] [magic-context] dream timer skipped: no project identity is bound for this directory
[2026-08-08T02:07:48.091Z] [rpc] server listening on 127.0.0.1:62549
[2026-08-08T02:07:48.094Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:07:48.903Z] [magic-context][global] models-dev-cache: API layer loaded 493 model metadata entries
[2026-08-08T02:07:50.609Z] [magic-context][global] models-dev-cache: output reserve capped at 25% for deepseek/deepseek-v4-flash: 384000 → 250000
[2026-08-08T02:07:53.107Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:08:52.122Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:08:52.137Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:08:52.144Z] [dreamer] registered project dir:ec1bfdd91743 (dreaming=true embeddings=true commits=true; total=1)
[2026-08-08T02:08:52.144Z] [dreamer] started independent schedule timer (every 15m)
[2026-08-08T02:08:52.160Z] [rpc] server listening on 127.0.0.1:64981
[2026-08-08T02:08:52.161Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:08:57.165Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:08:59.850Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:08:59.860Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:08:59.862Z] [dreamer] registered project dir:c34a4be760eb (dreaming=true embeddings=true commits=true; total=2)
[2026-08-08T02:08:59.871Z] [rpc] server listening on 127.0.0.1:64983
[2026-08-08T02:08:59.872Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:09:02.648Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:09:02.669Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:09:02.674Z] [dreamer] registered project dir:5ba476e88d78 (dreaming=true embeddings=true commits=true; total=3)
[2026-08-08T02:09:02.686Z] [rpc] server listening on 127.0.0.1:64984
[2026-08-08T02:09:02.687Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:09:04.874Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:09:07.689Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:09:11.983Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:09:12.000Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:09:12.004Z] [dreamer] registered project dir:c8ee573e0243 (dreaming=true embeddings=true commits=true; total=4)
[2026-08-08T02:09:12.016Z] [rpc] server listening on 127.0.0.1:58034
[2026-08-08T02:09:12.017Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:09:12.639Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:09:12.695Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:09:12.701Z] [dreamer] registered project git:51dcbede610ced4aa3188396dd1b78065fb07c55 (dreaming=true embeddings=true commits=true; total=5)
[2026-08-08T02:09:12.718Z] [rpc] server listening on 127.0.0.1:58035
[2026-08-08T02:09:12.718Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:09:13.864Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:09:13.901Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:09:13.903Z] [dreamer] registered project git:ff0badc6d8371e540529e9c1737684c9f8f4f125 (dreaming=true embeddings=true commits=true; total=6)
[2026-08-08T02:09:13.915Z] [rpc] server listening on 127.0.0.1:58036
[2026-08-08T02:09:13.916Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:09:17.119Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:09:17.768Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:09:18.057Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:09:18.098Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:09:18.101Z] [dreamer] registered project git:4fd71fb1aa089c7e2a435d871deeca5030ac8c86 (dreaming=true embeddings=true commits=true; total=7)
[2026-08-08T02:09:18.114Z] [rpc] server listening on 127.0.0.1:58037
[2026-08-08T02:09:18.115Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:09:18.772Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:09:18.775Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:09:18.780Z] [dreamer] registered project dir:91befc5b435a (dreaming=true embeddings=true commits=true; total=8)
[2026-08-08T02:09:18.793Z] [rpc] server listening on 127.0.0.1:58039
[2026-08-08T02:09:18.793Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:09:18.984Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:09:19.231Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:09:19.267Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:09:19.271Z] [dreamer] registered project dir:6e94ee6583a8 (dreaming=true embeddings=true commits=true; total=9)
[2026-08-08T02:09:19.284Z] [rpc] server listening on 127.0.0.1:58040
[2026-08-08T02:09:19.284Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:09:20.796Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:09:20.812Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:09:20.815Z] [dreamer] registered project dir:908cdcb7f8c3 (dreaming=true embeddings=true commits=true; total=10)
[2026-08-08T02:09:20.826Z] [rpc] server listening on 127.0.0.1:58041
[2026-08-08T02:09:20.827Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:09:21.689Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:09:21.730Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:09:21.735Z] [dreamer] registered project git:1379d5e3fc47f25d9b992cc3bcf464ba7ec5d123 (dreaming=true embeddings=true commits=true; total=11)
[2026-08-08T02:09:21.751Z] [rpc] server listening on 127.0.0.1:58042
[2026-08-08T02:09:21.752Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:09:22.161Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:09:22.206Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:09:22.210Z] [dreamer] registered project dir:3acac5e79b5b (dreaming=true embeddings=true commits=true; total=12)
[2026-08-08T02:09:22.227Z] [rpc] server listening on 127.0.0.1:58043
[2026-08-08T02:09:22.228Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:09:22.850Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:09:22.883Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:09:22.886Z] [dreamer] registered project dir:18f63ba93550 (dreaming=true embeddings=true commits=true; total=13)
[2026-08-08T02:09:22.902Z] [rpc] server listening on 127.0.0.1:58044
[2026-08-08T02:09:22.902Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:09:23.144Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:09:23.485Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:09:23.522Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:09:23.525Z] [dreamer] registered project git:df7607bbed89c0dfcb0b517559e3247f3ac2291a (dreaming=true embeddings=true commits=true; total=14)
[2026-08-08T02:09:23.540Z] [rpc] server listening on 127.0.0.1:58045
[2026-08-08T02:09:23.541Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:09:23.970Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:09:24.325Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:09:24.432Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:09:24.469Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:09:24.471Z] [dreamer] registered project git:79abcc8cbb40f7f5cc104e9879e430fb1b86cacd (dreaming=true embeddings=true commits=true; total=15)
[2026-08-08T02:09:24.484Z] [rpc] server listening on 127.0.0.1:58047
[2026-08-08T02:09:24.484Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:09:25.966Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:09:26.751Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:09:26.789Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:09:26.793Z] [dreamer] registered project dir:26047bb887b2 (dreaming=true embeddings=true commits=true; total=16)
[2026-08-08T02:09:26.814Z] [rpc] server listening on 127.0.0.1:58048
[2026-08-08T02:09:26.814Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:09:27.255Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:09:27.255Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:09:27.386Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:09:27.401Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:09:27.404Z] [dreamer] registered project dir:2f158c4731d7 (dreaming=true embeddings=true commits=true; total=17)
[2026-08-08T02:09:27.416Z] [rpc] server listening on 127.0.0.1:58049
[2026-08-08T02:09:27.417Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:09:27.640Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:09:27.643Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:09:27.648Z] [dreamer] registered project dir:fc4f1f694fd1 (dreaming=true embeddings=true commits=true; total=18)
[2026-08-08T02:09:27.666Z] [rpc] server listening on 127.0.0.1:58050
[2026-08-08T02:09:27.667Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:09:28.076Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:09:28.558Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:09:29.494Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:09:31.818Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:09:32.426Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:09:32.696Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:09:48.028Z] [dreamer] timer tick (startup) — projects=18
[2026-08-08T02:09:48.160Z] [git-commits] sweep starting for dir:c34a4be760eb (sinceDays=365 maxCommits=2000)
[2026-08-08T02:09:48.206Z] [git-commits] dir:c34a4be760eb is not indexable (not_a_repo)
[2026-08-08T02:09:49.518Z] [git-commits] sweep starting for dir:5ba476e88d78 (sinceDays=365 maxCommits=2000)
[2026-08-08T02:09:49.564Z] [git-commits] dir:5ba476e88d78 is not indexable (not_a_repo)
[2026-08-08T02:09:50.206Z] [git-commits] sweep starting for dir:c8ee573e0243 (sinceDays=365 maxCommits=2000)
[2026-08-08T02:09:50.244Z] [git-commits] dir:c8ee573e0243 is not indexable (not_a_repo)
[2026-08-08T02:09:51.642Z] [git-commits] sweep starting for git:51dcbede610ced4aa3188396dd1b78065fb07c55 (sinceDays=365 maxCommits=2000)
[2026-08-08T02:09:51.684Z] [git-commits] read 5 commits for git:51dcbede610ced4aa3188396dd1b78065fb07c55 (sinceMs=1754618991642 latestIndexed=none)
[2026-08-08T02:09:52.033Z] [magic-context] embedding model loaded: Xenova/all-MiniLM-L6-v2
[2026-08-08T02:09:52.178Z] [git-commits] embedded 5 commits for git:51dcbede610ced4aa3188396dd1b78065fb07c55 (total embedded: 5)
[2026-08-08T02:09:52.178Z] [git-commits] indexed git:51dcbede610ced4aa3188396dd1b78065fb07c55: scanned=5 inserted=5 updated=0 evicted=0 embedded=5
[2026-08-08T02:09:52.182Z] [git-commits] sweep finished for git:51dcbede610ced4aa3188396dd1b78065fb07c55 in 540ms: scanned=5 inserted=5 updated=0 evicted=0 embedded=5 drained=0 backlogDrained=0
[2026-08-08T02:09:52.994Z] [git-commits] sweep starting for git:ff0badc6d8371e540529e9c1737684c9f8f4f125 (sinceDays=365 maxCommits=2000)
[2026-08-08T02:09:53.033Z] [git-commits] read 1 commits for git:ff0badc6d8371e540529e9c1737684c9f8f4f125 (sinceMs=1754618992994 latestIndexed=none)
[2026-08-08T02:09:53.178Z] [magic-context] embedding model loaded: Xenova/all-MiniLM-L6-v2
[2026-08-08T02:09:53.194Z] [git-commits] embedded 1 commits for git:ff0badc6d8371e540529e9c1737684c9f8f4f125 (total embedded: 1)
[2026-08-08T02:09:53.194Z] [git-commits] indexed git:ff0badc6d8371e540529e9c1737684c9f8f4f125: scanned=1 inserted=1 updated=0 evicted=0 embedded=1
[2026-08-08T02:09:53.196Z] [git-commits] sweep finished for git:ff0badc6d8371e540529e9c1737684c9f8f4f125 in 202ms: scanned=1 inserted=1 updated=0 evicted=0 embedded=1 drained=0 backlogDrained=0
[2026-08-08T02:09:53.453Z] [git-commits] sweep starting for git:4fd71fb1aa089c7e2a435d871deeca5030ac8c86 (sinceDays=365 maxCommits=2000)
[2026-08-08T02:09:53.498Z] [git-commits] read 2 commits for git:4fd71fb1aa089c7e2a435d871deeca5030ac8c86 (sinceMs=1754618993453 latestIndexed=none)
[2026-08-08T02:09:53.669Z] [magic-context] embedding model loaded: Xenova/all-MiniLM-L6-v2
[2026-08-08T02:09:53.705Z] [git-commits] embedded 2 commits for git:4fd71fb1aa089c7e2a435d871deeca5030ac8c86 (total embedded: 2)
[2026-08-08T02:09:53.705Z] [git-commits] indexed git:4fd71fb1aa089c7e2a435d871deeca5030ac8c86: scanned=2 inserted=2 updated=0 evicted=0 embedded=2
[2026-08-08T02:09:53.707Z] [git-commits] sweep finished for git:4fd71fb1aa089c7e2a435d871deeca5030ac8c86 in 254ms: scanned=2 inserted=2 updated=0 evicted=0 embedded=2 drained=0 backlogDrained=0
[2026-08-08T02:09:54.449Z] [git-commits] sweep starting for dir:91befc5b435a (sinceDays=365 maxCommits=2000)
[2026-08-08T02:09:54.492Z] [git-commits] dir:91befc5b435a is not indexable (not_a_repo)
[2026-08-08T02:09:55.954Z] [git-commits] sweep starting for dir:6e94ee6583a8 (sinceDays=365 maxCommits=2000)
[2026-08-08T02:09:56.001Z] [git-commits] dir:6e94ee6583a8 is not indexable (no_head)
[2026-08-08T02:09:56.430Z] [git-commits] sweep starting for dir:908cdcb7f8c3 (sinceDays=365 maxCommits=2000)
[2026-08-08T02:09:56.472Z] [git-commits] dir:908cdcb7f8c3 is not indexable (not_a_repo)
[2026-08-08T02:09:57.335Z] [git-commits] sweep starting for git:1379d5e3fc47f25d9b992cc3bcf464ba7ec5d123 (sinceDays=365 maxCommits=2000)
[2026-08-08T02:09:57.374Z] [git-commits] read 7 commits for git:1379d5e3fc47f25d9b992cc3bcf464ba7ec5d123 (sinceMs=1754618997335 latestIndexed=none)
[2026-08-08T02:09:57.538Z] [magic-context] embedding model loaded: Xenova/all-MiniLM-L6-v2
[2026-08-08T02:09:57.577Z] [git-commits] embedded 7 commits for git:1379d5e3fc47f25d9b992cc3bcf464ba7ec5d123 (total embedded: 7)
[2026-08-08T02:09:57.577Z] [git-commits] indexed git:1379d5e3fc47f25d9b992cc3bcf464ba7ec5d123: scanned=7 inserted=7 updated=0 evicted=0 embedded=7
[2026-08-08T02:09:57.580Z] [git-commits] sweep finished for git:1379d5e3fc47f25d9b992cc3bcf464ba7ec5d123 in 245ms: scanned=7 inserted=7 updated=0 evicted=0 embedded=7 drained=0 backlogDrained=0
[2026-08-08T02:09:58.057Z] [git-commits] sweep starting for dir:3acac5e79b5b (sinceDays=365 maxCommits=2000)
[2026-08-08T02:09:58.093Z] [git-commits] dir:3acac5e79b5b is not indexable (no_head)
[2026-08-08T02:09:59.219Z] [git-commits] sweep starting for dir:18f63ba93550 (sinceDays=365 maxCommits=2000)
[2026-08-08T02:09:59.257Z] [git-commits] dir:18f63ba93550 is not indexable (no_head)
[2026-08-08T02:10:00.672Z] [git-commits] sweep starting for git:df7607bbed89c0dfcb0b517559e3247f3ac2291a (sinceDays=365 maxCommits=2000)
[2026-08-08T02:10:00.720Z] [git-commits] read 9 commits for git:df7607bbed89c0dfcb0b517559e3247f3ac2291a (sinceMs=1754619000672 latestIndexed=none)
[2026-08-08T02:10:00.912Z] [magic-context] embedding model loaded: Xenova/all-MiniLM-L6-v2
[2026-08-08T02:10:01.023Z] [git-commits] embedded 9 commits for git:df7607bbed89c0dfcb0b517559e3247f3ac2291a (total embedded: 9)
[2026-08-08T02:10:01.023Z] [git-commits] indexed git:df7607bbed89c0dfcb0b517559e3247f3ac2291a: scanned=9 inserted=9 updated=0 evicted=0 embedded=9
[2026-08-08T02:10:01.026Z] [git-commits] sweep finished for git:df7607bbed89c0dfcb0b517559e3247f3ac2291a in 354ms: scanned=9 inserted=9 updated=0 evicted=0 embedded=9 drained=0 backlogDrained=0
[2026-08-08T02:10:01.668Z] [git-commits] sweep starting for git:79abcc8cbb40f7f5cc104e9879e430fb1b86cacd (sinceDays=365 maxCommits=2000)
[2026-08-08T02:10:01.716Z] [git-commits] read 10 commits for git:79abcc8cbb40f7f5cc104e9879e430fb1b86cacd (sinceMs=1754619001668 latestIndexed=none)
[2026-08-08T02:10:01.890Z] [magic-context] embedding model loaded: Xenova/all-MiniLM-L6-v2
[2026-08-08T02:10:02.461Z] [git-commits] embedded 10 commits for git:79abcc8cbb40f7f5cc104e9879e430fb1b86cacd (total embedded: 10)
[2026-08-08T02:10:02.461Z] [git-commits] indexed git:79abcc8cbb40f7f5cc104e9879e430fb1b86cacd: scanned=10 inserted=10 updated=0 evicted=0 embedded=10
[2026-08-08T02:10:02.464Z] [git-commits] sweep finished for git:79abcc8cbb40f7f5cc104e9879e430fb1b86cacd in 796ms: scanned=10 inserted=10 updated=0 evicted=0 embedded=10 drained=0 backlogDrained=0
[2026-08-08T02:10:02.503Z] [git-commits] sweep starting for dir:26047bb887b2 (sinceDays=365 maxCommits=2000)
[2026-08-08T02:10:02.551Z] [git-commits] dir:26047bb887b2 is not indexable (no_head)
[2026-08-08T02:10:03.987Z] [git-commits] sweep starting for dir:2f158c4731d7 (sinceDays=365 maxCommits=2000)
[2026-08-08T02:10:04.034Z] [git-commits] dir:2f158c4731d7 is not indexable (not_a_repo)
[2026-08-08T02:10:04.800Z] [git-commits] sweep starting for dir:fc4f1f694fd1 (sinceDays=365 maxCommits=2000)
[2026-08-08T02:10:04.842Z] [git-commits] dir:fc4f1f694fd1 is not indexable (not_a_repo)
[2026-08-08T02:10:08.409Z] [git-commits] sweep starting for dir:ec1bfdd91743 (sinceDays=365 maxCommits=2000)
[2026-08-08T02:10:08.456Z] [git-commits] dir:ec1bfdd91743 is not indexable (not_a_repo)
[2026-08-08T02:10:08.720Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:10:08.737Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:10:08.740Z] [dreamer] registered project dir:5dbd7a9ecb44 (dreaming=true embeddings=true commits=true; total=19)
[2026-08-08T02:10:08.752Z] [rpc] server listening on 127.0.0.1:58055
[2026-08-08T02:10:08.753Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:10:13.764Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:10:27.718Z] [git-commits] sweep starting for dir:5dbd7a9ecb44 (sinceDays=365 maxCommits=2000)
[2026-08-08T02:10:27.764Z] [git-commits] read 3 commits for dir:5dbd7a9ecb44 (sinceMs=1754619027718 latestIndexed=none)
[2026-08-08T02:10:27.764Z] [git-commits] indexed dir:5dbd7a9ecb44: scanned=3 inserted=0 updated=0 evicted=0 embedded=0
[2026-08-08T02:10:27.769Z] [git-commits] sweep finished for dir:5dbd7a9ecb44 in 51ms: scanned=3 inserted=0 updated=0 evicted=0 embedded=0 drained=0 backlogDrained=0
[2026-08-08T02:20:23.900Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:20:23.930Z] [migrations] migration lock check attempt 1/6
[2026-08-08T02:20:23.932Z] [magic-context] upstream migration lane at boot: database=v75, supported_fence=v75
[2026-08-08T02:20:23.933Z] [magic-context] not binding a project identity for this directory
[2026-08-08T02:20:23.937Z] [magic-context] dream timer skipped: no project identity is bound for this directory
[2026-08-08T02:20:23.947Z] [rpc] server listening on 127.0.0.1:64346
[2026-08-08T02:20:23.949Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:20:24.383Z] [magic-context][global] models-dev-cache: API layer loaded 493 model metadata entries
[2026-08-08T02:20:24.643Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:20:24.682Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:20:24.686Z] [dreamer] registered project dir:3b813ae06c36 (dreaming=true embeddings=true commits=true; total=1)
[2026-08-08T02:20:24.686Z] [dreamer] started independent schedule timer (every 15m)
[2026-08-08T02:20:24.703Z] [rpc] server listening on 127.0.0.1:64347
[2026-08-08T02:20:24.703Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:20:26.815Z] [magic-context][global] models-dev-cache: output reserve capped at 25% for deepseek/deepseek-v4-flash: 384000 → 250000
[2026-08-08T02:20:28.974Z] [auto-update-checker] Plugin not found in config
[2026-08-08T02:20:29.709Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:21:21.201Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:21:21.234Z] [migrations] migration lock check attempt 1/6
[2026-08-08T02:21:21.236Z] [magic-context] upstream migration lane at boot: database=v75, supported_fence=v75
[2026-08-08T02:21:21.237Z] [magic-context] not binding a project identity for this directory
[2026-08-08T02:21:21.241Z] [magic-context] dream timer skipped: no project identity is bound for this directory
[2026-08-08T02:21:21.251Z] [rpc] server listening on 127.0.0.1:64363
[2026-08-08T02:21:21.253Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:22:11.226Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:22:11.260Z] [migrations] migration lock check attempt 1/6
[2026-08-08T02:22:11.262Z] [magic-context] upstream migration lane at boot: database=v75, supported_fence=v75
[2026-08-08T02:22:11.263Z] [magic-context] not binding a project identity for this directory
[2026-08-08T02:22:11.267Z] [magic-context] dream timer skipped: no project identity is bound for this directory
[2026-08-08T02:22:11.277Z] [rpc] server listening on 127.0.0.1:64368
[2026-08-08T02:22:11.279Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:22:11.722Z] [magic-context][global] models-dev-cache: API layer loaded 493 model metadata entries
[2026-08-08T02:22:11.935Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:22:11.973Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:22:11.977Z] [dreamer] registered project dir:3b813ae06c36 (dreaming=true embeddings=true commits=true; total=1)
[2026-08-08T02:22:11.977Z] [dreamer] started independent schedule timer (every 15m)
[2026-08-08T02:22:11.992Z] [rpc] server listening on 127.0.0.1:64369
[2026-08-08T02:22:11.993Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:22:13.681Z] [magic-context][global] models-dev-cache: output reserve capped at 25% for deepseek/deepseek-v4-flash: 384000 → 250000
[2026-08-08T02:22:16.296Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:22:17.005Z] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-08-08T02:25:54.125Z] [magic-context] no conflicts detected, plugin enabled
[2026-08-08T02:25:54.155Z] [migrations] migration lock check attempt 1/6
[2026-08-08T02:25:54.157Z] [magic-context] upstream migration lane at boot: database=v75, supported_fence=v75
[2026-08-08T02:25:54.195Z] [magic-context] rehydrated 1 session(s) with pending compaction-marker drain at hook init
[2026-08-08T02:25:54.201Z] [dreamer] registered project dir:3b813ae06c36 (dreaming=true embeddings=true commits=true; total=1)
[2026-08-08T02:25:54.201Z] [dreamer] started independent schedule timer (every 15m)
[2026-08-08T02:25:54.216Z] [rpc] server listening on 127.0.0.1:57148
[2026-08-08T02:25:54.218Z] [magic-context] cleanup: no active Desktop session found
[2026-08-08T02:25:55.203Z] [magic-context][global] models-dev-cache: API layer loaded 493 model metadata entries
Title
ctx_search causes Bun 1.3.14 segmentation fault on Windows in both fresh and existing OpenCode sessions
Description
On Windows with OpenCode 1.18.15 and Magic Context 0.34.2, calling ctx_search crashes the entire OpenCode process with a Bun 1.3.14 segmentation fault.
Environment
Configuration
Config from
~\.config\cortexkit\magic-context.jsonc:{ "$schema": "https://raw.githubusercontent.com/cortexkit/magic-context/master/assets/magic-context.schema.json", "history_budget_percentage": 0.05, "historian": { "model": "openai/gpt-5.6-luna", "fallback_models": [ "deepseek/deepseek-v4-pro" ], "maxTokens": 16384 }, "dreamer": { "model": "deepseek/deepseek-v4-pro", "fallback_models": [ "deepseek/deepseek-v4-flash" ] }, "memory": { "git_commit_indexing": { "enabled": true } } }Diagnostics
OpenCode installations
~\AppData\Roaming\npm\opencode.cmd~\AppData\Roaming\ai.opencode.desktop\opencode.settingsConfig paths
{ "configDir": "~\\.config\\opencode", "opencodeConfig": "~\\.config\\opencode\\opencode.jsonc", "opencodeConfigFormat": "jsonc", "magicContextConfig": "~\\.config\\cortexkit\\magic-context.jsonc", "tuiConfig": "~\\.config\\opencode\\tui.jsonc", "tuiConfigFormat": "jsonc", "omoConfig": null }magic-context.jsonc flags
{ "$schema": "https://raw.githubusercontent.com/cortexkit/magic-context/master/assets/magic-context.schema.json", "history_budget_percentage": 0.05, "historian": { "model": "openai/gpt-5.6-luna", "fallback_models": [ "deepseek/deepseek-v4-pro" ], "maxTokens": 16384 }, "dreamer": { "model": "deepseek/deepseek-v4-pro", "fallback_models": [ "deepseek/deepseek-v4-flash" ] }, "memory": { "git_commit_indexing": { "enabled": true } } }Plugin cache
{ "path": "~\\.cache\\opencode\\packages\\@cortexkit\\opencode-magic-context@latest", "cached": "0.34.2", "latest": "0.34.2" }Storage
{ "path": "~\\.local\\share\\cortexkit\\magic-context", "exists": true, "context_db_size": "5.3 MB" }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>/.cortexkit/magic-context/historian/.{ "byProject": [], "legacyDumps": { "dir": "~\\AppData\\Local\\Temp\\opencode\\magic-context\\historian", "count": 0, "recent": [] } }Historian failures (session_meta)
Note: this counter RESETS to 0 on every successful run — see 'Historian runs' below for the durable history.
No sessions with historian failures.
Historian runs (durable telemetry)
Per-session success/failure/no-op counts from
historian_runs(never reset).No historian runs recorded (or schema predates v24).
Log file
Historian failure signals (log, sanitized)
Recent errors (last 20, sanitized)
Log (last 400 lines, sanitized)