Files
chatgpt-on-wechat/channel/web
zhayujie 7d258b5202 feat(channels): add multi-channel management UI with real-time connect/disconnect
- Web console Channels page: display active channels as config cards, support
  save/connect/disconnect with real-time start/stop of channel processes
- Custom dropdown for channel selection (consistent with model selector style),
  custom confirmation dialog for disconnect
- Fix channel stop: use sys.modules['__main__'] to access live ChannelManager
- Fix web request pending: move stop logic outside lock, set daemon_threads=True
- Fix reconnect: new asyncio event loop per startup, ctypes thread interrupt,
  5s grace period before re-establishing remote connection
- Filter stale offline messages (>60s) pushed after reconnect
2026-02-27 14:39:40 +08:00
..

Web Channel

提供了一个默认的AI对话页面可展示文本、图片等消息交互支持markdown语法渲染兼容插件执行。

使用说明

  • config.json 配置文件中的 channel_type 字段填入 web
  • 程序运行后将监听9899端口浏览器访问 http://localhost:9899/chat 即可使用
  • 监听端口可以在配置文件 web_port 中自定义
  • 对于Docker运行方式如果需要外部访问需要在 docker-compose.yml 中通过 ports配置将端口监听映射到宿主机