Skip to content

feat: improve Feishu inbound workflows and connector-scoped automations - #442

Open
Xke1718He wants to merge 6 commits into
andrewyng:mainfrom
Xke1718He:dev
Open

feat: improve Feishu inbound workflows and connector-scoped automations#442
Xke1718He wants to merge 6 commits into
andrewyng:mainfrom
Xke1718He:dev

Conversation

@Xke1718He

Copy link
Copy Markdown

Summary

This PR improves connector-based workflows, with a focus on Feishu inbound conversations, connector-scoped automations, and session history management.

What changed

Feishu inbound messaging

  • Parse Feishu text, post, image, file, audio, video, share, and interactive messages.
  • Download Feishu attachments and preserve them in per-session record directories.
  • Pass images and small text-based files into the agent context.
  • Support sending Feishu text messages and files.
  • Add Feishu interactive approval cards with approve/deny actions.
  • Mirror agent progress back to Feishu with acknowledgements, progress updates, reactions, and final responses.
  • Validate the source chat before allowing an approval card to resolve an Inbox item.

Persistent inbound sessions

  • Persist the mapping between an external connector conversation and an OpenWorker session.
  • Reuse the same session for follow-up messages from the same conversation.
  • Prevent duplicate session creation when concurrent inbound messages arrive.
  • Store connector origin metadata and use it for session titles.
  • Add per-connector persona and workspace routing for newly created inbound conversations.
  • Preserve the existing persona assignment for already-created sessions.

Connector-scoped automations

  • Allow automations to explicitly select their connector data sources.
  • Restrict automation connector tools to the configured sources.
  • Limit automation connector access to read-only tools where appropriate.
  • Add explicit delivery targets for app or connector channels.
  • Track delivery status and delivery errors for each automation run.
  • Add paginated automation run history and run-count APIs.
  • Support clearing selected runs or completed runs older than a retention period.
  • Update the scheduling UI with source, delivery, persona, and history controls.

Other improvements

  • Improve image attachment handling for multimodal model requests.
  • Estimate image token usage without counting the full base64 payload.
  • Fix session running-state hydration in the GUI.
  • Enable persona selection by default.
  • Add regression coverage for automation, connectors, Feishu progress reporting, routing, attachments, and compaction.

Validation

  • git diff --check passes.
  • python -m compileall -q coworker passes.
  • Targeted pytest collection is currently blocked in this environment because the aisuite dependency is not installed.

@Xke1718He Xke1718He changed the title Dev feat: improve Feishu inbound workflows and connector-scoped automations Aug 4, 2026
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.

1 participant