Skip to content

[codex] Use tinychannels provider implementations - #4557

Merged
senamakel merged 4 commits into
tinyhumansai:mainfrom
senamakel:port-channel-implementations
Jul 5, 2026
Merged

senamakel merged 4 commits into
tinyhumansai:mainfrom
senamakel:port-channel-implementations

Conversation

@senamakel

Copy link
Copy Markdown
Member

Summary

  • Replace OpenHuman-owned Slack, WhatsApp Cloud, and Signal channel implementations with TinyChannels re-exports.
  • Keep OpenHuman runtime proxy behavior by constructing the TinyChannels providers with proxy-aware reqwest clients.
  • Update root and Tauri Cargo locks to TinyChannels branch port-channel-implementations.

Dependency

  • Depends on tinyhumansai/tinychannels branch port-channel-implementations.

Validation

  • cargo check --lib
  • cargo test --test tools_channels_raw_coverage_e2e whatsapp_webhook_parser_covers_allowed_and_skipped_payloads
  • cargo test --test tools_approval_channels_raw_coverage_e2e --no-run
  • pre-push hook: format:check, lint, compile, rust:check

@coderabbitai

coderabbitai Bot commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 45 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7aafe10a-64ee-4243-a1a3-aa4b8265f3f9

📥 Commits

Reviewing files that changed from the base of the PR and between 2aa4222 and 6a76a18.

⛔ Files ignored due to path filters (2)
  • Cargo.lock is excluded by !**/*.lock
  • app/src-tauri/Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (14)
  • .github/workflows/release-production.yml
  • .github/workflows/release-staging.yml
  • .gitmodules
  • Cargo.toml
  • app/src-tauri/Cargo.toml
  • src/openhuman/channels/commands.rs
  • src/openhuman/channels/providers/signal.rs
  • src/openhuman/channels/providers/signal_tests.rs
  • src/openhuman/channels/providers/slack.rs
  • src/openhuman/channels/providers/whatsapp.rs
  • src/openhuman/channels/providers/whatsapp_tests.rs
  • src/openhuman/channels/runtime/startup.rs
  • tests/subconscious_e2e.rs
  • vendor/tinychannels

Comment @coderabbitai help to get the list of available commands.

@senamakel
senamakel marked this pull request as ready for review July 5, 2026 08:20
@senamakel
senamakel requested a review from a team July 5, 2026 08:20

@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: 277fdbcaff

ℹ️ 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 on lines +578 to +582
channels.push(Arc::new(SlackChannel::with_http_client(
sl.bot_token.clone(),
sl.channel_id.clone(),
sl.allowed_users.clone(),
crate::openhuman::config::build_runtime_proxy_client("channel.slack"),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Don't pin live channels to a stale proxy client

When proxy_config updates or disables proxy settings it calls set_runtime_proxy_config, which clears the runtime client cache so callers of build_runtime_proxy_client pick up the new proxy on the next request. Before this change Slack/Signal/WhatsApp built their client lazily inside each send/poll/health call; this startup path now passes a prebuilt reqwest::Client into the tinychannels provider, which stores and clones that same client, so a running channel keeps sending/polling through the old proxy configuration until the core is restarted. Keep a lazy client factory here or rebuild/restart these channels when the runtime proxy config changes.

Useful? React with 👍 / 👎.

@senamakel
senamakel merged commit 16f7379 into tinyhumansai:main Jul 5, 2026
13 of 14 checks passed
senamakel added a commit to senamakel/openhuman that referenced this pull request Jul 5, 2026
…ls_*

The "catalog canonical methods exist in core schema registry" test read
src/openhuman/channels/controllers/schemas.rs for the channels_* namespace/
function literals, but tinyhumansai#4557 ("Use tinychannels provider implementations")
moved the actual ChannelControllerSchema definitions (namespace: "channels",
...) into the vendored vendor/tinychannels/src/controllers/schemas.rs crate —
the in-tree file now only adapts from it. This left the drift guard failing
on main independent of this PR (verified: same failure reproduces against
main's own copy of both files); fixed by also reading the vendored schema
source.

Claude-Session: https://claude.ai/code/session_01QpsTTxxjFgDhzuozS28tyU
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