Commit Graph

2504 Commits (f5814cc002f8ca575ff4ffa4045c193670d4969f)

Author SHA1 Message Date
Peter Steinberger f5814cc002 docs: add extension channels to Channels nav 9 months ago
Peter Steinberger 290f375aa1 docs: fix Together provider env path 9 months ago
Peter Steinberger 6fef318fda docs: replace legacy chat examples in Venice provider guide 9 months ago
Peter Steinberger 72446f419f docs: align CLI docs and help surface 9 months ago
Peter Steinberger 0c1f491a02 fix(gateway): clarify pairing and node auth guidance 9 months ago
Vincent Koc 89a1e99815
fix(slack): finalize replyToMode off threading behavior (#23799)
* fix: make replyToMode 'off' actually prevent threading in Slack

Three independent bugs caused Slack replies to always create threads
even when replyToMode was set to 'off':

1. Typing indicator created threads via statusThreadTs fallback (#16868)
   - resolveSlackThreadTargets fell back to messageTs for statusThreadTs
   - 'is typing...' was posted as thread reply, creating a thread
   - Fix: remove messageTs fallback, let statusThreadTs be undefined

2. [[reply_to_current]] tags bypassed replyToMode entirely (#16080)
   - Slack dock had allowExplicitReplyTagsWhenOff: true
   - Reply tags from system prompt always threaded regardless of config
   - Fix: set allowExplicitReplyTagsWhenOff to false for Slack

3. Contradictory replyToMode defaults in codebase (#20827)
   - monitor/provider.ts defaulted to 'all'
   - accounts.ts defaulted to 'off' (matching docs)
   - Fix: align provider.ts default to 'off' per documentation

Fixes: openclaw/openclaw#16868, openclaw/openclaw#16080, openclaw/openclaw#20827

* fix(slack): respect replyToMode in DMs even with typing indicator thread

When replyToMode is 'off' in DMs, replies should stay in the main
conversation even when the typing indicator creates a thread context.

Previously, when incomingThreadTs was set (from the typing indicator's
thread), replyToMode was forced to 'all', causing all replies to go
into the thread.

Now, for direct messages, the user's configured replyToMode is always
respected. For channels/groups, the existing behavior is preserved
(stay in thread if already in one).

This fix:
- Keeps the typing indicator working (statusThreadTs fallback preserved)
- Prevents DM replies from being forced into threads
- Maintains channel thread continuity

Fixes #16868

* refactor(slack): eliminate redundant resolveSlackThreadContext call

- Add isThreadReply to resolveSlackThreadTargets return value
- Remove duplicate call in dispatch.ts
- Addresses greptile review feedback with cleaner DRY approach

* docs(slack): add JSDoc to resolveSlackThreadTargets

Document return values including isThreadReply distinction between
genuine user thread replies vs bot status message thread context.

* docs(changelog): record Slack replyToMode off threading fixes

---------

Co-authored-by: James <jamesrp13@gmail.com>
Co-authored-by: theoseo <suhong.seo@gmail.com>
9 months ago
Peter Steinberger 08431da5d5 refactor(gateway): unify credential precedence across entrypoints 9 months ago
Peter Steinberger e58054b85c docs(telegram): align Node22 network defaults and setup guidance 9 months ago
Peter Steinberger f442a3539f feat(update): add core auto-updater and dry-run preview 9 months ago
Peter Steinberger a5e2bd4eaa docs: document verbose-gated tool error details 9 months ago
Peter Steinberger adfbbcf1f6 chore: merge origin/main into main 9 months ago
Onur 3308c86002 docs: keep channel names only in thread-support list 9 months ago
Onur 418e4e32c9 docs: clarify thread-bound subagents are Discord-only 9 months ago
Onur c952334808 docs: list thread supporting channels in subagents guide 9 months ago
Onur 0b9b9d4301 docs: make subagents thread guidance channel-first 9 months ago
Peter Steinberger 0d0f4c6992 refactor(exec): centralize safe-bin policy checks 9 months ago
Peter Steinberger 47c3f742b6 fix(exec): require explicit safe-bin profiles 9 months ago
Peter Steinberger e80c803fa8 fix(security): block shell env allowlist bypass in system.run 9 months ago
Peter Steinberger 6fda04e938 refactor: tighten onboarding dmScope typing and docs links 9 months ago
Peter Steinberger 65dccbdb4b fix: document onboarding dmScope default as breaking change (#23468) (thanks @bmendonca3) 9 months ago
Peter Steinberger 85e5ed3f78 refactor(channels): centralize runtime group policy handling 9 months ago
Peter Steinberger 777817392d fix: fail closed missing provider group policy across message channels (#23367) (thanks @bmendonca3) 9 months ago
Brian Mendonca 3700151ec0 Channels: fail closed when Slack/Discord config is missing 9 months ago
Peter Steinberger b98d3330f6 docs: update pty supervision test command paths 9 months ago
Glucksberg 2739328508
fix(telegram): classify undici fetch errors as recoverable for retry (#16699)
Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 67b5bce44f7014c8cbefc00eed0731e61d6300b9
Co-authored-by: Glucksberg <80581902+Glucksberg@users.noreply.github.com>
Co-authored-by: obviyus <22031114+obviyus@users.noreply.github.com>
Reviewed-by: @obviyus
9 months ago
Peter Steinberger c995f9be07 test: reclassify mocked announce and sandbox suites as unit tests 9 months ago
Brian Mendonca bc78b343ba Security: expand audit checks for mDNS and real-IP fallback 9 months ago
maweibin 98a03c490b
Feat/logger support log level validation0222 (#23436)
* 1、环境变量**:新增 `OPENCLAW_LOG_LEVEL`,可取值 `silent|fatal|error|warn|info|debug|trace`。设置后同时覆盖**文件日志**与**控制台**的级别,优先级高于配置文件。
2、启动参数**:在 `openclaw gateway run` 上新增 `--log-level <level>`,对该次进程同时生效于文件与控制台;未传时仍使用环境变量或配置文件。

* fix(logging): make log-level override global and precedence-safe

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
9 months ago
Peter Steinberger 1b327da6e3 fix: harden exec sandbox fallback semantics (#23398) (thanks @bmendonca3) 9 months ago
Brian Mendonca c76a47cce2 Exec: fail closed when sandbox host is unavailable 9 months ago
Peter Steinberger 8887f41d7d refactor(gateway)!: remove legacy v1 device-auth handshake 9 months ago
Peter Steinberger 008a8c9dc6 chore(docs): normalize security finding table formatting 9 months ago
Peter Steinberger 265da4dd2a fix(security): harden gateway command/audit guardrails 9 months ago
Peter Steinberger 121d027229 chore: remove dead plugin hook loader 9 months ago
Peter Steinberger 049b8b14bc fix(security): flag open-group runtime/fs exposure in audit 9 months ago
Peter Steinberger 817905f3a0 docs: document thread-bound subagent sessions and remove plan 9 months ago
Peter Steinberger 2c14b0cf4c refactor(config): unify streaming config across channels 9 months ago
Peter Steinberger f97c45c5b5 fix(security): warn on Discord name-based allowlists in audit 9 months ago
Peter Steinberger 89aad7b922 refactor: tighten safe-bin policy model and docs parity 9 months ago
Peter Steinberger 4c1dd9d068 fix(security): harden macos rawCommand allowlist resolution 9 months ago
Peter Steinberger 57fbbaebca fix: block safeBins sort --compress-program bypass 9 months ago
Vincent Koc 59c78c105a
docs: revert automated heading consistency edits (#22743) 9 months ago
Onur 8178ea472d
feat: thread-bound subagents on Discord (#21805)
* docs: thread-bound subagents plan

* docs: add exact thread-bound subagent implementation touchpoints

* Docs: prioritize auto thread-bound subagent flow

* Docs: add ACP harness thread-binding extensions

* Discord: add thread-bound session routing and auto-bind spawn flow

* Subagents: add focus commands and ACP/session binding lifecycle hooks

* Tests: cover thread bindings, focus commands, and ACP unbind hooks

* Docs: add plugin-hook appendix for thread-bound subagents

* Plugins: add subagent lifecycle hook events

* Core: emit subagent lifecycle hooks and decouple Discord bindings

* Discord: handle subagent bind lifecycle via plugin hooks

* Subagents: unify completion finalizer and split registry modules

* Add subagent lifecycle events module

* Hooks: fix subagent ended context key

* Discord: share thread bindings across ESM and Jiti

* Subagents: add persistent sessions_spawn mode for thread-bound sessions

* Subagents: clarify thread intro and persistent completion copy

* test(subagents): stabilize sessions_spawn lifecycle cleanup assertions

* Discord: add thread-bound session TTL with auto-unfocus

* Subagents: fail session spawns when thread bind fails

* Subagents: cover thread session failure cleanup paths

* Session: add thread binding TTL config and /session ttl controls

* Tests: align discord reaction expectations

* Agent: persist sessionFile for keyed subagent sessions

* Discord: normalize imports after conflict resolution

* Sessions: centralize sessionFile resolve/persist helper

* Discord: harden thread-bound subagent session routing

* Rebase: resolve upstream/main conflicts

* Subagents: move thread binding into hooks and split bindings modules

* Docs: add channel-agnostic subagent routing hook plan

* Agents: decouple subagent routing from Discord

* Discord: refactor thread-bound subagent flows

* Subagents: prevent duplicate end hooks and orphaned failed sessions

* Refactor: split subagent command and provider phases

* Subagents: honor hook delivery target overrides

* Discord: add thread binding kill switches and refresh plan doc

* Discord: fix thread bind channel resolution

* Routing: centralize account id normalization

* Discord: clean up thread bindings on startup failures

* Discord: add startup cleanup regression tests

* Docs: add long-term thread-bound subagent architecture

* Docs: split session binding plan and dedupe thread-bound doc

* Subagents: add channel-agnostic session binding routing

* Subagents: stabilize announce completion routing tests

* Subagents: cover multi-bound completion routing

* Subagents: suppress lifecycle hooks on failed thread bind

* tests: fix discord provider mock typing regressions

* docs/protocol: sync slash command aliases and delete param models

* fix: add changelog entry for Discord thread-bound subagents (#21805) (thanks @onutc)

---------

Co-authored-by: Shadow <hi@shadowing.dev>
9 months ago
Peter Steinberger 166068dfbe test: add byteplus coding-plan live test 9 months ago
Peter Steinberger 581868365d fix: finish volcengine/byteplus landing polish (#7967) (thanks @funmore123) 9 months ago
fanziqing 559736a5a0 feat(volcengine): integrate Volcengine & Byteplus Provider 9 months ago
Peter Steinberger f48698a50b fix(security): harden sandbox browser network defaults 9 months ago
Peter Steinberger 8c1518f0f3 fix(sandbox): use one-time noVNC observer tokens 9 months ago
Peter Steinberger 621d8e1312 fix(sandbox): require noVNC observer password auth 9 months ago
Peter Steinberger be7f825006 refactor(gateway): harden proxy client ip resolution 9 months ago