Skip to content

feat(openclaw): support tenant routing headers#1420

Open
yeyitech wants to merge 1 commit intovolcengine:mainfrom
yeyitech:feat/openclaw-tenant-routing
Open

feat(openclaw): support tenant routing headers#1420
yeyitech wants to merge 1 commit intovolcengine:mainfrom
yeyitech:feat/openclaw-tenant-routing

Conversation

@yeyitech
Copy link
Copy Markdown
Contributor

Summary

  • add accountId and userId to the OpenClaw plugin config/schema with env fallback support
  • pass tenant headers through the plugin client so remote and local modes can target non-default tenants correctly
  • document and test tenant-aware routing for config parsing, client headers, and slash-command search flow

Testing

  • npm test -- tests/ut/config.test.ts tests/ut/client.test.ts tests/ut/tools.test.ts
  • npm test

Closes #1216

@github-actions
Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis ✅

1216 - Fully compliant

Compliant requirements:

  • Extend plugin config with accountId and userId
  • Pass these values as X-OpenViking-Account and X-OpenViking-User headers
  • Update plugin config schema
  • Allow env fallback for accountId and userId
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🏅 Score: 95
🧪 PR contains tests
🔒 No security concerns identified
✅ No TODO sections
🔀 No multiple PR themes
⚡ No major issues detected

@github-actions
Copy link
Copy Markdown

PR Code Suggestions ✨

No code suggestions found for the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

[Feature]: Openclaw plugin supports X-OpenViking-Account and X-OpenViking-User

1 participant