Skip to content

OpenClaw plugin: shared sessions table, security scanner fixes, capture toggle#50

Closed
kaghni wants to merge 17 commits intomainfrom
feat/openclaw-login-command
Closed

OpenClaw plugin: shared sessions table, security scanner fixes, capture toggle#50
kaghni wants to merge 17 commits intomainfrom
feat/openclaw-login-command

Conversation

@kaghni
Copy link
Copy Markdown
Collaborator

@kaghni kaghni commented Apr 14, 2026

Summary

  • Rewrite OpenClaw plugin to use shared sessions table (same schema as CC/Codex)
  • Set agent='openclaw' on all captured events
  • Add /hivemind_login and /hivemind_capture commands
  • Strip process.env, readFileSync, and child_process from bundle to pass OpenClaw security scanner
  • Use sqlLike for ILIKE patterns to prevent % wildcard data leak
  • Fix Deeplake casing in pre-tool-use descriptions
  • Delete duplicate credentials.ts and memory.ts (replaced by shared src/)
  • Cherry-pick agent column from codex branch

Test plan

  • Recall working — 5 memories recalled per turn on VM
  • Capture working — openclaw sessions written to Deeplake sessions table
  • Install from ClawHub — no critical security flags
  • Bundle smoke test — loads without errors
  • Zero readFileSync, process.env, child_process in bundle

kaghni and others added 17 commits April 10, 2026 17:07
… 0.6.10

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Track which agent (claude_code, codex, openclaw) generated each event.
The column is included in CREATE TABLE schema for both memory and
sessions tables, and populated in all INSERT statements.
- Use same sessions table schema as CC (id, path, filename, message JSONB,
  author, size_bytes, project, description, agent, creation_date, last_update_date)
- Use buildSessionPath() with same convention as CC
- Set agent='openclaw' on all captured events
- Fix SQL quoting (wrap sqlStr() in single quotes)
- Delete credentials.ts and memory.ts (replaced by shared src/)
- Add child_process stub in esbuild for OpenClaw build
- Rebuild CC bundles with agent column
…ommand

# Conflicts:
#	CLAUDE.md
#	claude-code/.claude-plugin/plugin.json
#	esbuild.config.mjs
Add /hivemind_login step and explain auto-recall/capture behavior.
Note shared sessions table across all platforms.
…ommand

# Conflicts:
#	openclaw/package.json
#	openclaw/src/index.ts
@kaghni kaghni closed this Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants