Skip to content

feat: move AI workflows to Worker with durable bot relay - #68

Merged
Yuna-Celisse merged 16 commits into
mainfrom
codex/flue-queue-bridge
Oct 14, 2026
Merged

Yuna-Celisse merged 16 commits into
mainfrom
codex/flue-queue-bridge

Conversation

@Yuna-Celisse

@Yuna-Celisse Yuna-Celisse commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Move AI workflows out of the bot process into the independent Worker while keeping platform adapters in HuaJiBot.NET. The bridge provides signed HTTPS admission, a durable SQLite outbox, thread mapping, Queue pull delivery, retry handling, and a persistent delivery ledger. Ordinary messages archive without invoking a model; prompted image turns include image URLs. Scheduled summaries use validated date anchors.

The Worker handles text/vision conversations, image follow-ups, authenticated MCP search/weather, D1 history, and durable daily summaries. Its source is https://github.com/Yuna-Celisse/huaji-agent; engineering improvements and the image fallback recovery fix are in https://github.com/Yuna-Celisse/huaji-agent/pull/1. Shared C#/Worker fixture tests are stacked in #70.

Deployment preserves existing adapter credentials and unrelated services, retains configuration/data backups, and includes startup rollback. Original history and delivery receipts remain available for recovery. Production identifiers and credentials belong in private configuration.

Validation: focused bridge tests, formatting checks, Worker tests, type checks, and builds pass. Production weather and manual-summary conversations were confirmed through real platform history. An image request exposed a malformed reply-tool history error during model fallback; the Worker fix is deployed, with renewed real-image acceptance pending. The diagnostic probe now explicitly requires TLS 1.2 or newer for WSS connections, addressing the CodeQL finding.

Adapter acceptance before receipt persistence still has a duplicate-delivery crash window. Platform events never delivered during downtime require backfill; old AIChat image threads are not automatically recreated. Platform failure/restart/DLQ acceptance remains pending.

Refs #64.

Comment thread deploy/flue-bridge/probe_onebot.py Fixed
@Yuna-Celisse Yuna-Celisse changed the title feat: add Flue bridge and Cloudflare Queue reply consumer feat: move AI workflows to Worker with durable bot relay Oct 3, 2026
@Yuna-Celisse
Yuna-Celisse marked this pull request as ready for review October 14, 2026 05:54
@Yuna-Celisse
Yuna-Celisse merged commit 4e51e6c into main Oct 14, 2026
8 checks passed
@Yuna-Celisse
Yuna-Celisse deleted the codex/flue-queue-bridge branch October 14, 2026 05:59
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