Commit Graph

28549 Commits (4329d94de3a71803db177ee50af68eb75d7ea06b)
 

Author SHA1 Message Date
Gustavo Madeira Santana cc04153d01
Agents: reuse shared subagent hook runner type 8 months ago
Daniel Olshansky 6e1f00dc86
[ClawDock] Iteration on the first submission; bug fixes, UX improvements, etc (#23912)
Merged via squash.

Prepared head SHA: 30c5ef37a4a6e5af59025ad5585d824a392c81b4
Co-authored-by: Olshansk <1892194+Olshansk@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
8 months ago
Peter Steinberger c2cbdea28c
refactor: add approval auth capabilities to more channels 8 months ago
Peter Steinberger 63cbc097b5
refactor(channels): route core through registered plugin capabilities 8 months ago
Peter Steinberger 471e059b69
refactor(plugin-sdk): remove channel-specific sdk shims 8 months ago
Peter Steinberger bff6a6a9c1
test(config): align optimistic write helpers 8 months ago
Peter Steinberger 47216702f4
refactor(config): use source snapshots for config mutations 8 months ago
Gustavo Madeira Santana f9bf76067f
Agents: fix subagent spawn hook typing 8 months ago
hnshah 19113637e8
fix(memory): keep qmd embeddings active in search mode (#54509)
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
8 months ago
yuna78 0033f64e19
gateway: narrow already-running exit code (#26718)
Co-authored-by: ImLukeF <92253590+ImLukeF@users.noreply.github.com>
8 months ago
dadgo 2885c65c74
fix(memory): point qmd config dir at nested path (#39078)
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
8 months ago
Amine Harch el korane 219d4f03bd
fix: wire memorySearch.extraPaths to QMD indexing (#57315)
* fix: wire memorySearch.extraPaths to QMD indexing

The 'agents.defaults.memorySearch.extraPaths' config field was documented
to add extra directories to the memory index, but the paths were never
actually passed to the QMD backend. Only 'memory.qmd.paths' worked.

This fix reads extraPaths from the memorySearch config and maps them
to QMD custom path collections, so users can simply configure:

  memorySearch:
    extraPaths:
      - odd-vault
      - /Users/odd/workspace
      - /Users/odd/docs

And have those directories indexed alongside the default memory files.

Closes #57302

* fix: handle per-agent memorySearch.extraPaths overrides + add tests

- Read per-agent overrides from agents.list[].memorySearch.extraPaths
- Agent-specific overrides take priority over defaults
- Falls back to defaults when agent has no overrides
- Added 3 test cases for the feature

* fix: merge defaults + agent overrides instead of replacing

* fix: remove any types from tests, fix merge behavior assertion

* fix(memory): merge qmd extra path collections

* fix(memory): normalize qmd extra path resolution

* fix(memory): type qmd extra path merge

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
8 months ago
Peter Steinberger cbceb1db76
docs(i18n): sync zh-CN node exec wording 8 months ago
Peter Steinberger 6b8a1b77a0
refactor(nodes): split media and invoke handlers 8 months ago
Vincent Koc 475defdf82
Anthropic: wire explicit service tier params (#45453)
* Anthropic: add explicit service tier wrapper

* Runner: wire explicit Anthropic service tiers

* Tests: cover explicit Anthropic service tiers

* Changelog: note Anthropic service tier follow-up

* fix(agents): make Anthropic service tiers override fast mode

* fix(config): drop duplicate healed sourceConfig

* docs(anthropic): update fast mode service tier guidance

* fix(agents): remove dead Anthropic Bedrock exports

* fix(agents): avoid cross-provider Anthropic tier warnings

* fix(agents): avoid cross-provider OpenAI tier warnings
8 months ago
Peter Steinberger feed2c42dd
test: stabilize subagent spawn harnesses 8 months ago
Vincent Koc 170a3a39d4 fix(test): restore subagent announce timeout mocks 8 months ago
Gustavo Madeira Santana 188fcbfa34
Docs: add zh-CN Diffs page 8 months ago
Gustavo Madeira Santana c191dc9928
Control UI: preserve seq-gap reconnect state 8 months ago
Peter Steinberger cf84a03ecf
docs: clarify generic channel approval capabilities 8 months ago
Peter Steinberger 3b878e6b86
refactor: move approval auth and payload hooks to generic channel capabilities 8 months ago
Vincent Koc 7008379ff0 test(agents): restore cli runner test seams 8 months ago
Vincent Koc 408f6a5b0b test(matrix): stabilize file sync store persistence checks 8 months ago
Vincent Koc d6a3580347 fix(lint): clear current main lint blockers 8 months ago
Peter Steinberger 193f781fad
fix: stabilize ci and serial test gate 8 months ago
Vincent Koc 0da610a8ec fix(tasks): prefer ACP spawn metadata on merge 8 months ago
Peter Steinberger c1137ef00d
docs(nodes): remove nodes.run references 8 months ago
Peter Steinberger 2255e04b07
test(nodes): update coverage after exec consolidation 8 months ago
Peter Steinberger 5dae663ea4
refactor(nodes): remove nodes.run execution path 8 months ago
Peter Steinberger dd8d66fc44 refactor: inject subagent announce test seams 8 months ago
Peter Steinberger f914cd598a
refactor(gateway): dedupe self-write config reloads 8 months ago
Peter Steinberger a27ccee5d9
refactor(config): use source snapshots for config writes 8 months ago
Vincent Koc c5baf63fa5 docs: deep audit of memory section -- fix icons, beef up engine pages, restructure config reference 8 months ago
Gustavo Madeira Santana 1600c1726e
Control UI: reconnect on seq gaps 8 months ago
Peter Steinberger 15c3aa82bf
refactor: unify approval forwarding and rendering 8 months ago
Peter Steinberger 8720070fe0
refactor: rename channel approval capabilities 8 months ago
Vincent Koc 53bcd5769e
refactor(tasks): unify the shared task run registry (#57324)
* refactor(tasks): simplify shared task run registry

* refactor(tasks): remove legacy task registry aliases

* fix(cron): normalize timeout task status and harden ledger writes

* fix(cron): keep manual runs resilient to ledger failures
8 months ago
Peter Steinberger e4466c72a2 test: stabilize runner and acp mocks
- reuse the shared cli-runner harness in claude runner tests
- make ACP session metadata and startup tests use stable static mocks
8 months ago
Vincent Koc bf63264c62 docs: fix Honcho tool names and add CLI commands 8 months ago
Robin Waslander bdd9bc93f1
fix(cron): deliver full announce output instead of last chunk only (#57322)
resolveCronPayloadOutcome() collapsed announce delivery to the last
deliverable payload. Replace with pickDeliverablePayloads() that
preserves all successful text payloads. Error-only runs fall back to
the last error payload only.

Extract shared isDeliverablePayload() helper. Keep
deliveryPayloadHasStructuredContent scoped to the last payload
to preserve downstream finalizeTextDelivery safeguards.

Fixes #13812
8 months ago
Peter Steinberger 0a4c11061d test: stabilize targeted harnesses
- reduce module-reset mock churn in auth/acp tests
- simplify runtime web mock cleanup
- make canvas reload test use in-memory websocket tracking
8 months ago
Radek Sienkiewicz 4680335b2a
docs: fix English link audits (#57039)
Merged via squash.

Prepared head SHA: d20a3b620f78881ea2175640f593929e2637f0dc
Co-authored-by: velvet-shark <126378+velvet-shark@users.noreply.github.com>
Reviewed-by: @velvet-shark
8 months ago
Gustavo Madeira Santana 6c91b27756
Docs: remove internal CLI metadata note 8 months ago
Gustavo Madeira Santana b0077904a7
Plugins: align CLI metadata loader behavior 8 months ago
Peter Steinberger 9a97c30fad
style(test): sort mutate helper imports 8 months ago
Peter Steinberger f928b81279
test(config): align snapshot fixtures and isolation 8 months ago
Peter Steinberger 89a4f2a34e
refactor(config): centralize runtime config state 8 months ago
Armand du Plessis b888741462
fix: QMD 1.1+ mcporter compatibility with legacy fallback [AI-assisted] (#54728)
* fix: QMD 2.0 mcporter compatibility with v1 fallback [AI-assisted]

QMD 2.0 unified all search modes under a single 'query' MCP tool
with typed sub-queries, replacing search/vector_search/deep_search.

- Default to QMD 2.0 'query' tool with {searches: [...]} format
- Auto-detect version on first call and cache for the session
- Fall back to v1 tool names if 'query' is not found
- Backwards compatible: v1 users get one retry then cached

AI-assisted: Built with Claude (Opus 4.6) via OpenClaw. Fully tested
against QMD 2.0 with mcporter 0.7.3 daemon. v1 fallback path not
live-tested (no v1 instance available). Code reviewed and understood.

* test: add QMD v2 tool format and v1 fallback tests

- Verify mcporter bridge uses 'query' tool with {searches: [...]} format (v2)
- Verify fallback to 'deep_search' with {query, limit} format when v2 not found
- Verify v1 fallback logs a warning for visibility

* fix: address review feedback — multi-collection v1 fallback + test cleanup

- Fix multi-collection v1 fallback: resolve effectiveTool at the top
  of runQmdSearchViaMcporter so stale 'query' tool names from the
  loop are corrected once qmdMcpToolVersion is set to 'v1'
- Assert callCount in v1 fallback test (one v2 attempt + one v1 retry)
- Remove spurious global state reset (qmdMcpToolVersion is per-instance)

* docs: correct version references — breaking change was QMD 1.5, not 2.0

The MCP tool removal (search/vector_search/deep_search → query) happened
in QMD 1.5, not 2.0. QMD 2.0 was the SDK/library refactor.
Updated all comments, test names, and documentation to reflect this.

* fix: respect searchMode when building v2 mcporter queries

When searchMode is 'search' (BM25), only send lex sub-query.
When 'vsearch', only send vec. Default 'query' sends all three
(lex + vec + hyde) for full hybrid search with reranking.

Previously all three sub-queries were always sent regardless of
the configured searchMode, which could trigger unnecessary vector
embedding and HyDE LLM work on setups explicitly requesting
lexical-only search.

Addresses Codex P2 review feedback.

* docs: correct to QMD 1.1.0 — that's the actual version that removed the tools

Per CHANGELOG.md, MCP tools search/vector_search/deep_search were removed
in QMD 1.1.0 (2026-02-20), not 1.5 (which doesn't exist). Versions go
1.0.7 → 1.1.0 → 1.1.1 → 1.1.2 → 1.1.5 → 1.1.6 → 2.0.0.

* fix: remove redundant v1 guard (race condition) + tighten error matching

1. Remove qmdMcpToolVersion !== 'v1' guard from catch block. It's
   redundant (effectiveTool === 'query' already prevents infinite retry)
   and introduces a race condition: concurrent searches that both probe
   with 'query' while version is null would fail after the first sets
   version to 'v1'.

2. Tighten isToolNotFoundError regex to require 'Tool' near 'not found'
   (within 40 chars, no sentence boundary). Prevents false-positives
   when user query text in the mcporter args contains both words.

Addresses Greptile P1 (concurrent-search race) and Codex P2
(overly broad error matching).

* fix: address claude code review — type safety, minScore docs, explicit switch

- Restore type union for tool param instead of bare string
- Add comment explaining minScore omission for v2 (QMD 1.1+ uses
  its own reranking pipeline, no minScore parameter)
- Make buildV2Searches switch exhaustive with explicit case 'query'

* fix: resolve CI failures — oxfmt formatting + TypeScript type errors

- Run oxfmt to fix formatting issues
- Add union return type to resolveQmdMcpTool() and
  runMcporterAcrossCollections() tool param to satisfy tsc
  (string was not assignable to the union type)

* fix(memory): align qmd query collection filters

* fix(memory): narrow qmd missing-tool fallback detection

* fix(memory): ignore qmd timeout text for v1 fallback

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
8 months ago
Peter Steinberger 0fdf724125
test: trim stale extension boundary allowlist 8 months ago
Peter Steinberger 809833ef9d
fix(config): recover clobbered config and isolate test paths 8 months ago