mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-08 23:33:16 +08:00
feat(channel): unify deliverable outbound and WeChat attachments
Require deliverable:true for all channel attachments including images; extend save_deliverable_attachment with attachment_id; add WeChat proactive attachment delivery; inject channel file rules via system prompt instead of repeating on every user message. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
dc5da21f5a
commit
cbe68a54cd
14 changed files with 440 additions and 125 deletions
|
|
@ -6458,6 +6458,8 @@ class SqliteStore(ScheduledJobStoreMixin):
|
|||
"text": str(r["text"] or ""),
|
||||
"source": source,
|
||||
"context_token": str(meta.get("context_token") or ""),
|
||||
"attachments": [a for a in (meta.get("attachments") or []) if isinstance(a, dict)],
|
||||
"media_path": str(meta.get("media_path") or ""),
|
||||
"created_at": str(r["created_at"] or ""),
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue