Skip to content

Fix bot channel rendering and persistence / 修复 Bot 渠道分片和会话持久化#4374

Merged
esengine merged 7 commits into
esengine:main-v2from
SivanCola:fix/bot-channel-stability
Jun 14, 2026
Merged

Fix bot channel rendering and persistence / 修复 Bot 渠道分片和会话持久化#4374
esengine merged 7 commits into
esengine:main-v2from
SivanCola:fix/bot-channel-stability

Conversation

@SivanCola

Copy link
Copy Markdown
Collaborator

Summary

  • Render streamed bot replies only at semantic boundaries or length limits, with the final reply flushed on turn completion.
  • Persist concrete bot session IDs for CLI and desktop bot runtimes so linked sessions can be opened from the desktop UI.
  • Accept QQ expires_in as either a JSON number or string.
  • Keep Feishu/Lark WebSocket intake alive after SDK Start exits, and treat topic_group events as group messages consistently.

Fixes #4372.
Fixes #4293.
Fixes #4283.
Improves #4181.

Tests

  • go test ./...
  • go test ./... in desktop/

@SivanCola SivanCola requested a review from esengine as a code owner June 14, 2026 11:23
@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) labels Jun 14, 2026
@SivanCola SivanCola enabled auto-merge (squash) June 14, 2026 11:27

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b33bce624a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/bot/gateway.go Outdated
Comment thread internal/botruntime/runtime.go Outdated
Comment thread internal/bot/gateway.go
Comment thread internal/bot/render.go Outdated
Comment thread internal/bot/render.go
Comment thread internal/bot/gateway.go
Comment thread internal/botruntime/runtime.go Outdated
Co-authored-by: SivanCola <32437197+SivanCola@users.noreply.github.com>
@github-actions github-actions Bot added the config Configuration & setup (internal/config) label Jun 14, 2026
@SivanCola SivanCola marked this pull request as draft June 14, 2026 11:45
auto-merge was automatically disabled June 14, 2026 11:45

Pull request was converted to draft

Co-authored-by: SivanCola <32437197+SivanCola@users.noreply.github.com>
@SivanCola SivanCola marked this pull request as ready for review June 14, 2026 11:51
@SivanCola SivanCola enabled auto-merge (squash) June 14, 2026 11:51

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0b4b885dd3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/botruntime/runtime.go Outdated
Comment thread internal/botruntime/runtime.go
Comment thread internal/botruntime/runtime.go
Comment thread desktop/frontend/src/components/SettingsPanel.tsx
SivanCola and others added 4 commits June 14, 2026 20:12
Co-authored-by: SivanCola <32437197+SivanCola@users.noreply.github.com>
Co-authored-by: SivanCola <32437197+SivanCola@users.noreply.github.com>
Co-authored-by: SivanCola <32437197+SivanCola@users.noreply.github.com>
Co-authored-by: SivanCola <32437197+SivanCola@users.noreply.github.com>
@esengine esengine merged commit 375a0fc into esengine:main-v2 Jun 14, 2026
13 checks passed
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

2 participants