Commit Graph

28 Commits (6ad675c1e9d13b94de246e794b90d6d9cefd761a)

Author SHA1 Message Date
Nikolay Petrov a9f1188785
sessions_spawn: inline attachments with redaction, lifecycle cleanup, and docs (#16761)
Add inline file attachment support for sessions_spawn (subagent runtime only):

- Schema: attachments[] (name, content, encoding, mimeType) and attachAs.mountPath hint
- Materialization: files written to .openclaw/attachments/<uuid>/ with manifest.json
- Validation: strict base64 decode, filename checks, size limits, duplicate detection
- Transcript redaction: sanitizeToolCallInputs redacts attachment content from persisted transcripts
- Lifecycle cleanup: safeRemoveAttachmentsDir with symlink-safe path containment check
- Config: tools.sessions_spawn.attachments (enabled, maxFiles, maxFileBytes, maxTotalBytes, retainOnSessionKeep)
- Registry: attachmentsDir/attachmentsRootDir/retainAttachmentsOnKeep on SubagentRunRecord
- ACP rejection: attachments rejected for runtime=acp with clear error message
- Docs: updated tools/index.md, concepts/session-tool.md, configuration-reference.md
- Tests: 85 new/updated tests across 5 test files

Fixes:
- Guard fs.rm in materialization catch block with try/catch (review concern #1)
- Remove unreachable fallback in safeRemoveAttachmentsDir (review concern #7)
- Move attachment cleanup out of retry path to avoid timing issues with announce loop

Co-authored-by: Tyler Yust <TYTYYUST@YAHOO.COM>
Co-authored-by: napetrov <napetrov@users.noreply.github.com>
9 months ago
Peter Steinberger bfeadb80b6 feat(agents): add sessions_spawn sandbox require mode 9 months ago
Peter Steinberger b9aa2d436b fix(security): enforce sandbox inheritance for sessions_spawn 9 months ago
Peter Steinberger 8c5cf2d5b2 docs(subagents): document default runTimeoutSeconds config (#24594) (thanks @mitchmcalister) 9 months ago
Peter Steinberger 817905f3a0 docs: document thread-bound subagent sessions and remove plan 9 months ago
Shadow f555835b09
Channels: add thread-aware model overrides 9 months ago
Tyler Yust fe57bea088
Subagents: restore announce chain + fix nested retry/drop regressions (#22223)
* Subagents: restore announce flow and fix nested delivery retries

* fix: prep subagent announce + docs alignment (#22223) (thanks @tyler6204)
9 months ago
Peter Steinberger fa4f66255c fix(subagents): return completion message for manual session spawns 9 months ago
Peter Steinberger c6c53437f7 fix(security): scope session tools and webhook secret fallback 9 months ago
Peter Steinberger 85409e401b fix: preserve inter-session input provenance (thanks @anbecker) 9 months ago
Seb Slight abcaa8c7a9
Docs: add nav titles across docs (#5689) 10 months ago
cpojer 8cab78abbc
chore: Run `pnpm format:fix`. 10 months ago
Peter Steinberger 9a7160786a refactor: rename to openclaw 10 months ago
Peter Steinberger 6d16a658e5 refactor: rename clawdbot to moltbot with legacy compat 10 months ago
Peter Steinberger ab000398be fix: resolve session ids in session tools 10 months ago
Peter Steinberger 96f1846c2c docs: align node transport with gateway ws 10 months ago
Peter Steinberger a85ddf258c fix: expose deliveryContext in sessions_list
Co-authored-by: Adam Holt <mail@adamholt.co.nz>
10 months ago
Roshan Singh 1baa55c145
Structured subagent announce output + include run outcome (#835)
* docs: clarify subagent announce status

* Make subagent announce structured and include run outcome

* fix: stabilize sub-agent announce status (#835) (thanks @roshanasingh4)

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
10 months ago
Peter Steinberger 3eb48cbea7 docs: complete channels rename sweep 10 months ago
Peter Steinberger 5a443dfa53 docs: fix session key examples 11 months ago
Peter Steinberger a25922a21f fix: clarify sessions_send delivery semantics 11 months ago
Peter Steinberger 7b81d97ec2 feat: wire multi-agent config and routing
Co-authored-by: Mark Pors <1078320+pors@users.noreply.github.com>
11 months ago
Peter Steinberger a6c309824e docs: refresh and simplify docs 11 months ago
Peter Steinberger 2b29b86ab5 feat: add agents_list tool 11 months ago
Peter Steinberger 0ba72477de feat: allow sessions_spawn cross-agent 11 months ago
Peter Steinberger 77024cf776 fix(agents): make sessions_spawn non-blocking 11 months ago
Peter Steinberger 75c66acfd8 feat: update subagent announce + archive 11 months ago
Peter Steinberger db4d0b8e75 docs: reorganize documentation structure 11 months ago