mushuiyu886
414c250af9
fix #95495 : [Bug]: 2026.6.9 silently relocates memory store with no migration, forcing a full re-embed (1499 files) with zero upgrade-time warning ( #95631 )
...
* fix(memory): import legacy sidecar indexes into agent db
* fix(memory): move legacy sidecar import to doctor migration
* fix(memory): restore sidecar vector rows during doctor migration
* fix(memory): keep legacy sidecar when skipping import
* fix(memory): keep legacy sidecar import within extension boundary
* fix(memory-core): keep legacy sidecar migration retry-safe
* fix(memory-core): backfill sidecar FTS rows
* fix(memory-core): preserve sidecar when vector import defers
* fix(memory-core): cover custom sidecar migrations
* fix(memory-core): keep legacy config migration under doctor
* fix(memory-core): reject sidecar metadata conflicts
* fix(memory-core): keep partial legacy config sidecars
* fix(memory-core): preserve partial config retries
* fix(memory-core): keep partial config task migrations
* fix(memory-core): avoid phantom sidecar agents
* fix(memory-core): reject incomplete sidecar indexes
* fix(memory-core): keep malformed sidecars retryable
* fix(doctor): use canonical state dir for plugin migrations
* fix(memory-core): honor disabled vector sidecar migration
* fix(memory-core): treat provider-none sidecars as fts-only
* fix(memory-core): preserve setup-failed sidecars
* test(memory-core): use non-mutating sort assertions
* test(memory-core): compare sorted chunk ids
* test(memory-core): compare sorted chunk ids
* test(memory-core): stringify sorted chunk ids
* fix(qa): skip chromium bootstrap for explicit browser channels
* fix(qa): skip chromium bootstrap for explicit browser channels
---------
Co-authored-by: Vincent Koc <vincentkoc@ieee.org >
2026-06-24 17:47:44 +08:00
Peter Steinberger
c9ddf2eca6
test(memory): clean up qmd fixture gracefully
2026-06-23 13:31:46 -07:00
Peter Steinberger
73dd758310
fix(memory): abort orphaned qmd search processes
2026-06-23 13:31:46 -07:00
Alix-007
78184ea7e4
fix(memory): abort orphaned qmd search subprocess when memory_search times out
...
PR #91742 wired memory_search's 15s deadline AbortSignal through the builtin
memory manager but missed the QMD backend behind the same
MemorySearchManager.search interface. With QMD, the tool returns "timed out
after 15s" to the agent while the spawned qmd query/search subprocess keeps
running for the full qmd command timeout (memory.qmd.limits.timeoutMs, whose
embed-heavy default was raised to 600s in #87572 ), leaving orphaned
embedding/search work running after the agent already moved on.
Add optional AbortSignal support to runCliCommand: an aborting signal kills the
spawned child immediately and rejects with the abort reason, funneled through a
single settle() guard so abort/timeout/error/close cannot double-settle. Thread
the search signal through QmdMemoryManager.search -> runQmdSearch -> runQmd ->
runCliCommand for the default direct-qmd subprocess path (including the query
fallback), and fast-fail search() when the signal is already aborted.
2026-06-23 13:31:46 -07:00
Josh Lehman
c24d266b2d
refactor: use accessor-backed transcript corpus for memory ( #96162 )
...
* refactor: ratchet memory transcript corpus access
* test: use narrow runtime config snapshot import
* test: update plugin sdk surface budgets
* refactor: split memory transcript corpus module
2026-06-23 12:37:44 -07:00
Ben.Li
b335381247
fix(memory): preserve Windows QMD command paths ( #95274 )
2026-06-22 17:50:11 +00:00
Vincent Koc
b3b5b08e67
fix(memory): preserve Windows session transcript paths
2026-06-22 23:32:06 +08:00
Josh Lehman
d3781cc4b8
refactor: add memory and QMD session identity mapping ( #95087 )
2026-06-22 06:28:54 -07:00
Vincent Koc
830691b201
fix(memory-host-sdk): taskkill qmd process trees on windows
2026-06-21 08:51:36 +02:00
Vincent Koc
c4d1f37d33
fix(memory): abort batch upload response reads ( #95111 )
...
* fix(memory): abort batch upload response reads
* test(memory): stabilize batch upload abort proof
2026-06-20 06:22:23 +08:00
Vincent Koc
6aa85dfaa1
refactor(memory): drop unused host-sdk helpers
2026-06-19 16:04:00 +08:00
Vincent Koc
33fa225f65
refactor(memory): drop unused host helpers
2026-06-19 15:13:27 +08:00
Vincent Koc
be7d86ed80
fix(memory): abort remote response body reads
2026-06-19 08:25:53 +02:00
Vincent Koc
681e5a0f8c
fix(memory): preserve schema helper compatibility
2026-06-19 01:20:06 +08:00
Vincent Koc
6e6bd5633f
fix(memory): rebuild migrated search indexes
2026-06-19 01:20:06 +08:00
Josh Lehman
28fb5b019a
fix(memory): migrate source primary key shape
2026-06-19 01:20:06 +08:00
Josh Lehman
9cfd1cd287
fix(memory): key index sources by path and source
2026-06-19 01:20:06 +08:00
Vincent Koc
7485dd6492
fix(sqlite): migrate legacy memory and proxy state
2026-06-19 01:20:06 +08:00
Vincent Koc
88bc08c124
refactor(memory): canonicalize agent database tables
2026-06-19 01:20:06 +08:00
Vincent Koc
25e68e9fa7
fix(memory): reject stale reindex publishes
2026-06-19 01:20:06 +08:00
Vincent Koc
bdc46fa28d
refactor(memory): remove unused session file exports
2026-06-18 11:24:02 +08:00
Vincent Koc
20534c57b7
fix(memory-host): kill qmd process groups
2026-06-17 22:33:10 +02:00
liuhao1024
94e6255666
feat(memory): apply outputDimensionality truncation to local GGUF embeddings ( fixes #58765 ) ( #93758 )
...
* feat(memory): apply outputDimensionality truncation to local GGUF embeddings
The outputDimensionality config field was passed through to the local
embedding provider but never applied. Local GGUF models (e.g.
Qwen3-Embedding-0.6B) always returned their full dimension vector.
Apply slice(0, N) after normalization so MRL-capable models can benefit
from dimension truncation — matching the behavior already supported by
Gemini embedding-2 and OpenAI providers.
Fixes #58765
* fix(memory): preserve local embedding dimensions through worker
---------
Co-authored-by: Vincent Koc <25068+vincentkoc@users.noreply.github.com >
2026-06-17 05:05:49 +08:00
Shakker
a1b7f3570c
test: centralize session file env restore
2026-06-14 19:11:31 +01:00
Vincent Koc
b470316fc0
fix(state): harden sqlite path caching
...
Resolve explicit relative SQLite DB paths before caching handles and centralize durable SQLite connection pragmas so busy_timeout is applied before WAL/NFS negotiation.
2026-06-15 01:04:35 +08:00
이민재
1a2e418500
fix: use passive periodic sqlite wal checkpoints
...
Use PASSIVE for periodic SQLite WAL checkpoints while keeping explicit checkpoint() and close() on TRUNCATE by default.
Preserve the old interval export as a compatibility alias, add the neutral interval export, and update the task storage docs contract.
Fixes #81715 .
2026-06-14 22:46:15 +08:00
Dream Hunter
8d72cb9401
fix(memory): abort orphaned embedding work when memory_search times out ( #91742 )
...
* fix(memory): abort orphaned embedding work when memory_search times out
memory_search raced its 15s deadline with Promise.race and returned a clean
timeout to the agent, but the underlying embedQueryWithRetry loop kept
retrying (3 attempts x 60s) against the embedding backend with no consumer.
Thread the tool-owned AbortSignal through manager.search ->
embedQueryWithRetry -> runEmbeddingOperationWithTimeout so the deadline
cancels in-flight embedding work, stops the retry loop, and skips
fallback-provider activation for an absent caller.
Fixes #91718
* fix(memory): let the deadline result win before aborting the search
Abort listeners dispatch synchronously, so an abort-aware search could
reject the raced task before the timeout promise resolved and replace the
stable 'memory_search timed out after 15s' result with a provider-wrapped
abort error. Resolve the timeout first, then abort.
* fix(memory): scope deadline abort to builtin embeddings
* fix(memory): preserve deadline signal across fallback
---------
Co-authored-by: Vincent Koc <vincentkoc@ieee.org >
2026-06-11 20:36:11 +09:00
Vincent Koc
7f1d82ab25
revert(sessions): defer session metadata sqlite
...
Reverts 538d36eaaa while preserving subsequent main changes. The beta-only SQLite downgrade rescue and reverse migration remain excluded.
2026-06-10 16:34:06 +09:00
mushuiyu_xydt
a36e05050a
fix #88009 : [Feature]: batched memory embedding should batch over files ( #89138 )
...
Merged via squash.
Prepared head SHA: 66d362a56d
Co-authored-by: mushuiyu886 <266724580+mushuiyu886@users.noreply.github.com >
Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com >
Reviewed-by: @jalehman
2026-06-09 06:38:30 -04:00
Onur Solmaz
3137110167
fix(memory): move local llama.cpp runtime to provider plugin
...
* fix(memory): move local llama.cpp runtime to provider plugin
* chore: ignore llama cpp dynamic dependency
* test: remove invalid local provider alias fixture
* chore: refresh llama cpp shrinkwrap
* chore: drop stale memory embedding defaults facade
2026-06-09 14:30:35 +08:00
Vincent Koc
355a9cbf35
fix(memory): fall back to sqlite-vec platform variant
2026-06-08 23:25:24 +09:00
Vincent Koc
9c5ac9f42d
fix(memory): verify sqlite-vec loads usable functions
2026-06-08 23:16:54 +09:00
Peter Steinberger
538d36eaaa
refactor: move session metadata to SQLite ( #91322 )
...
* refactor: move session metadata to sqlite
* test: seed session stores with sqlite fixtures
* test: seed remaining session stores with sqlite fixtures
* fix: stabilize sqlite session cache freshness
* test: seed cli transcript metadata in sqlite
2026-06-07 23:17:35 -07:00
Onur Solmaz
0dbf17471b
feat(memory): support qmd query rerank toggle
...
Add memory.qmd.rerank as an opt-out for QMD query reranking when searchMode is query.
When set to false, direct QMD query calls pass --no-rerank and the mcporter unified query tool receives rerank:false. Search and vsearch modes keep their existing behavior.
Refs #61834 .
2026-06-05 11:18:57 +08:00
Peter Steinberger
4df95d3c3f
docs: document package sources
2026-06-04 20:54:41 -04:00
Peter Steinberger
5b98f03c64
docs: document memory host runtime helpers
2026-06-04 01:34:57 -04:00
Peter Steinberger
eecec7495f
docs: document memory remote helpers
2026-06-04 01:32:51 -04:00
Peter Steinberger
c40dd6ff5c
docs: document memory batch helpers
2026-06-04 01:31:52 -04:00
Peter Steinberger
8b6bed9c9c
docs: document memory host sdk helpers
2026-06-04 01:30:42 -04:00
Peter Steinberger
0b8aabe864
docs: document auth profile failure policy contract ( #89613 )
...
* docs: document markdown marker renderer
* docs: document rendered markdown chunking
* docs: document markdown text chunking
* docs: document shared text chunking
* docs: document plugin text chunking exports
* docs: document avatar policy constants
* docs: document node match candidates
* docs: document scoped expiring id cache
* docs: document runtime import normalization
* docs: document string sample summaries
* docs: document session usage timeseries types
* docs: document session usage response types
* docs: document manifest frontmatter shapes
* docs: document channel route input metadata
* docs: document pair loop guard settings
* docs: document migration config patch helpers
* docs: document api provider registry
* docs: document tool call repair payloads
* docs: document plugin tool payload helpers
* docs: document lazy promise loader
* docs: document store writer queue state
* docs: document thread binding lifecycle
* docs: document concurrency helper contract
* docs: document gateway client info contract
* docs: document delivery context contracts
* docs: document secret ref defaults contract
* docs: document command gating contract
* docs: document avatar policy contract
* docs: document node match policy
* docs: document message channel normalization
* docs: document boolean parsing contract
* docs: document zod parse helpers
* docs: document direct dm guard policy
* docs: document fixed window limiter contract
* docs: document node presence event contract
* docs: document secret normalization contract
* docs: document progress draft line removal
* docs: document usage formatting contracts
* docs: document agent run status contract
* docs: document runtime import helpers
* docs: document provider utility ownership
* docs: document invalid config helpers
* docs: document json compat parser
* docs: document channel config metadata ownership
* docs: document channel logging helpers
* docs: document sender identity validation ownership
* docs: document string sampling helper
* docs: document global singleton helpers
* docs: document transcript tool helpers
* docs: document exec safe-bin normalization
* docs: document reaction level resolver
* docs: document account snapshot redaction boundary
* docs: document messaging target helpers
* docs: document thread binding messages
* docs: document conversation binding context
* docs: document conversation resolution helper
* docs: document owner display secret retention
* docs: document provider request config types
* docs: document skills config types
* docs: document memory config types
* docs: document imessage config types
* docs: document crestodian config types
* docs: document tools config policies
* docs: document shared config base types
* docs: document channel config contracts
* docs: document openclaw config state types
* docs: document model config contracts
* docs: document shared agent config types
* docs: document agent defaults config types
* docs: document secret input contracts
* docs: document auth config contracts
* docs: document gateway config contracts
* docs: document tool call stream repair contracts
* docs: document memory host facades
* docs: document llm core contracts
* docs: document markdown core contracts
* docs: document gateway connect error contracts
* docs: document gateway protocol primitives
* docs: document gateway frame schemas
* docs: document gateway device schemas
* docs: document gateway environment schemas
* docs: document gateway push schemas
* docs: document gateway plugin schemas
* docs: document gateway artifact schemas
* docs: document gateway command schemas
* docs: document gateway task schemas
* docs: document gateway exec approval schemas
* docs: document gateway secret schemas
* docs: document gateway config schemas
* docs: document gateway snapshot schemas
* docs: document gateway chat schemas
* docs: document gateway wizard schemas
* docs: document gateway node schemas
* docs: document gateway plugin approval schemas
* docs: document gateway talk schemas
* docs: document gateway agent schemas
* docs: document gateway session schemas
* docs: document gateway cron schemas
* docs: document gateway agent model skill schemas
* docs: document gateway skill proposal tool schemas
* docs: document gateway protocol registry
* docs: document gateway channel status schemas
* docs: document gateway schema regression tests
* docs: document gateway schema barrel
* docs: document gateway validator tests
* docs: document gateway primitive push tests
* docs: document gateway contract tests
* docs: document native protocol guard
* docs: document channel schema tests
* docs: document gateway protocol smoke tests
* docs: document gateway protocol entrypoint
* docs: document gateway protocol type exports
* docs: document gateway error codes
* docs: document protocol schema registry
* docs: document talk audio codec
* docs: document talk activation names
* docs: document talk consult questions
* docs: document talk consult tool
* docs: document talk run control contracts
* docs: document talk run control adapter
* docs: document talkback consult queue
* docs: document talk consult transcript guard
* docs: document talk fast context runtime
* docs: document forced talk consult coordinator
* docs: document talk output activity tracker
* docs: document talk event metrics
* docs: document talk diagnostics
* docs: document talk observability hook
* docs: document talk provider resolver
* docs: document talk provider registry
* docs: document talk runtime primitives
* docs: document talk consult controller logs
* docs: document channel identity helpers
* docs: document channel account allowlist helpers
* docs: document channel metadata draft controls
* docs: document channel ingress policy
* docs: document channel sender access gates
* docs: document channel catalog message contracts
* docs: document channel account plugin helpers
* docs: document configured binding helpers
* docs: document channel acp approval config helpers
* docs: document channel bundled config write helpers
* docs: document channel plugin utility contracts
* docs: document channel config access helpers
* docs: document channel message action helpers
* docs: document channel outbound runtime helpers
* docs: document channel pairing promotion helpers
* docs: document channel registry helpers
* docs: document channel setup wizard helpers
* docs: document channel lifecycle status helpers
* docs: document channel target thread helpers
* docs: document channel session binding helpers
* docs: document channel package module probes
* docs: document channel setup wizard contracts
* docs: document channel plugin API barrels
* docs: document channel contract test helpers
* docs: document channel core helpers
* docs: document small core facades
* docs: document provider runtime helpers
* docs: document persistence and realtime helpers
* docs: document mcp and state helpers
* docs: document tool planner contracts
* docs: document music generation runtime
* docs: document crestodian command flow
* docs: document utility helpers
* docs: document node host helpers
* docs: document transcript contracts
* docs: document trajectory export contracts
* docs: document image generation contracts
* docs: document routing helper contracts
* docs: document session helper contracts
* docs: document video generation contracts
* docs: document model catalog contracts
* docs: document proxy capture contracts
* docs: document status rendering contracts
* docs: document test helper contracts
* docs: document wizard setup contracts
* docs: document process contracts
* docs: document memory host sdk contracts
* docs: document tts contracts
* docs: document secrets runtime contracts
* docs: document shared helper contracts
* docs: document hook runtime contracts
* docs: document security audit contracts
* docs: document flow contracts
* docs: document media understanding contracts
* docs: document tui contracts
* docs: document logging contracts
* docs: document llm contracts
* docs: document cron contracts
* docs: document daemon contracts
* docs: document task contracts
* docs: document acp contracts
* docs: document test utility contracts
* docs: document skill contracts
* docs: document config contracts
* docs: document outbound infra contracts
* docs: document command analysis contracts
* docs: document provider usage infra contracts
* docs: document file safety infra contracts
* docs: document exec approval infra contracts
* docs: document gateway runtime infra contracts
* docs: document infra utility contracts
* docs: document infra queue storage contracts
* docs: document heartbeat infra contracts
* docs: document remaining infra contracts
* docs: document gateway auth contracts
* docs: document gateway display helpers
* docs: document gateway http helpers
* docs: document gateway node helpers
* docs: document gateway mcp helpers
* docs: document gateway support helpers
* docs: document gateway server runtime helpers
* docs: document gateway runtime bootstrap helpers
* docs: document gateway session events
* docs: document gateway utility helpers
* docs: document gateway talk helpers
* docs: document gateway helper contracts
* docs: document gateway server method helpers
* docs: document gateway server auth helpers
* docs: document gateway server tests
* docs: document gateway test helpers
* docs: document gateway node tests
* docs: document gateway channel tests
* docs: document gateway session tests
* docs: document gateway server startup tests
* docs: document gateway tool test helpers
* docs: document gateway server test helpers
* docs: document gateway server method tests
* docs: document remaining gateway tests
* docs: document plugin sdk public subpaths
* docs: document plugin sdk runtime helpers
* docs: document plugin sdk memory provider helpers
* docs: document plugin sdk runtime facades
* docs: document plugin sdk command approval helpers
* docs: document plugin sdk runtime types
* docs: document plugin sdk browser account helpers
* docs: document plugin sdk media memory helpers
* docs: document plugin sdk core tests
* docs: document plugin sdk contract helpers
* docs: document plugin sdk test helpers
* docs: document remaining plugin sdk tests
* docs: document cli utility helpers
* docs: document cli runtime helpers
* docs: document cli command registration helpers
* docs: document node cli helpers
* docs: document cli program registration
* docs: document message cli registration
* docs: document daemon cli helpers
* docs: document cli route parsers
2026-06-03 15:20:39 -07:00
NianJiu
5a55135146
fix(memory): retry transient FileProvider-backed reads ( #85351 )
2026-06-01 12:40:20 -07:00
Peter Steinberger
27dde7a4d6
chore(lint): enable stricter error rules
2026-06-01 01:12:21 +01:00
Peter Steinberger
22cb7fb6b7
chore(lint): enable no-promise-executor-return
2026-05-31 23:06:13 +01:00
Peter Steinberger
304e2c83c0
chore(lint): enable stricter oxlint rules
2026-05-31 18:59:02 +01:00
Peter Steinberger
77f1359612
refactor: extract media and ACP core packages ( #88534 )
...
* refactor: extract media and acp core packages
* refactor: remove relocated media and acp sources
* build: wire new core packages into dependency checks
* test: alias new core packages in vitest
* build: keep media sniffer runtime dependency
* docs: refresh plugin sdk api baseline
* fix: keep normalized proposal queries non-empty
* test: keep channel timer tests isolated
* fix: keep rebased plugin checks green
* fix: preserve sms numeric allowlist entries
* test: harden exec foreground timeout failure
* test: remove duplicate skill workshop assertion
* fix: remove channel config lint suppression
* test: refresh lint suppression allowlist
2026-05-31 11:30:33 +01:00
Peter Steinberger
f5eca3f84c
chore(lint): enable object and reassignment rules
2026-05-31 09:32:52 +01:00
Peter Steinberger
33c44626d2
fix(memory): bound embedding batch poll intervals
2026-05-31 01:37:46 -04:00
Peter Steinberger
66a4410095
fix(memory): bound session export timestamps
2026-05-31 01:37:45 -04:00
Peter Steinberger
de1dfab03e
refactor: move terminal core into package ( #88279 )
...
* refactor: move terminal core into package
* refactor: move terminal module files
* fix: clean terminal package CI followups
* test: update lint suppression allowlist
* fix: ship terminal core runtime aliases
2026-05-30 11:07:45 +02:00
Peter Steinberger
7c3d7fc6e3
fix(memory): cap retry sleep delays
2026-05-30 02:21:24 -04:00