Skip to content

feat: add bot gateway#3763

Merged
esengine merged 7 commits into
esengine:main-v2from
SivanCola:codex/bot-gateway
Jun 10, 2026
Merged

feat: add bot gateway#3763
esengine merged 7 commits into
esengine:main-v2from
SivanCola:codex/bot-gateway

Conversation

@SivanCola

Copy link
Copy Markdown
Collaborator

Summary

Testing

  • go test ./internal/bot ./internal/cli ./internal/config
  • (cd desktop && go test ./...)
  • (cd desktop/frontend && npm run build) after npm ci and wails generate module

Note: a full root go test ./... was attempted, but this local macOS environment has unrelated sandbox/config-sensitive failures in internal/sandbox and internal/tool/builtin; the bot/config/CLI target packages passed.

@SivanCola SivanCola requested a review from esengine as a code owner June 10, 2026 03:04
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) tui Terminal UI / CLI (internal/cli, internal/control) config Configuration & setup (internal/config) labels Jun 10, 2026
# Conflicts:
#	desktop/frontend/src/components/SettingsPanel.tsx
#	desktop/frontend/src/styles.css
#	internal/config/config.go

@esengine esengine left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @SivanCola — clean extraction from #3752, and the lint cleanup landed. CI is green across the board (lint/race/test x3/desktop/CodeQL) and the package carries tests for the gateway, sessions, render, and each adapter's verification path.

Reviewed the inbound surface: Feishu's optional webhook is token-verified, QQ and Weixin are outbound-authenticated (no exposed inbound), so there's no unauthenticated path to drive the agent. Merging.

I'll land a small hardening follow-up right after — refuse Feishu webhook mode when no verification token is set, and address the weixin.go file size. Appreciate the responsiveness on the split.

@esengine esengine merged commit 28bedc6 into esengine:main-v2 Jun 10, 2026
13 checks passed
esengine added a commit that referenced this pull request Jun 10, 2026
#3779)

Follow-up to #3763.

- Feishu webhook mode is the default, and verificationTokenValid accepts
  any caller when no token is configured, so an empty verification_token
  exposed an unauthenticated event endpoint. Refuse to start webhook mode
  without a token (fail closed).
- Move the weixin account-persistence and QR-login block to
  weixin_login.go, bringing weixin.go under the 800-line ceiling (811->587).

Co-authored-by: reasonix <reasonix@deepseek.com>
SuMuxi66 pushed a commit to SuMuxi66/DeepSeek-Reasonix that referenced this pull request Jun 10, 2026
)

Lands the bot gateway as its own feature, extracted from esengine#3752: gateway/session plumbing plus Feishu, Weixin, and QQ adapters, CLI/config support, and the desktop Settings UI for bot channel configuration and guided setup.

Co-authored-by trailers preserved from the source branch.
SuMuxi66 pushed a commit to SuMuxi66/DeepSeek-Reasonix that referenced this pull request Jun 10, 2026
esengine#3779)

Follow-up to esengine#3763.

- Feishu webhook mode is the default, and verificationTokenValid accepts
  any caller when no token is configured, so an empty verification_token
  exposed an unauthenticated event endpoint. Refuse to start webhook mode
  without a token (fail closed).
- Move the weixin account-persistence and QR-login block to
  weixin_login.go, bringing weixin.go under the 800-line ceiling (811->587).

Co-authored-by: reasonix <reasonix@deepseek.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config Configuration & setup (internal/config) desktop Wails desktop app (desktop/**) tui Terminal UI / CLI (internal/cli, internal/control) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants