Remove orchestration_event_push feature flag; rename poller to streamer (#9265)
## Description Removes the `orchestration_event_push` feature flag and the polling fallback in the orchestration event delivery path. SSE-based event push has been on in dogfood and staging long enough that it's now the only path; the dual-mode `OrchestrationEventPoller` is renamed to `OrchestrationEventStreamer` and only opens persistent SSE connections. - Removed `FeatureFlag::OrchestrationEventPush` and the matching Cargo feature. - Renamed `app/src/ai/blocklist/orchestration_event_poller.rs` (and its tests) to `orchestration_event_streamer.rs`. Renamed the public type to `OrchestrationEventStreamer`; renamed the shared event-injection sink `handle_poll_result` → `handle_event_batch`. - Removed polling-only state (`poll_backoff_index`, `poll_in_flight`), methods (`poll_and_inject`, `start_idle_poll_timer`), and constants (`POLL_BACKOFF_STEPS`, `EVENT_POLL_BATCH_LIMIT`). Kept `event_cursor`, `pending_delivery`, and `conversation_statuses` since they are also used by the SSE path. - Removed the now-dead `AIClient::poll_agent_events` trait method and its `ServerApi` implementation in `app/src/server/server_api/ai.rs`. The `OrchestrationV2` flag continues to gate streamer instantiation and watched-run registration; runtime behavior under v2 is unchanged. Pairs with the warp-server PR that drops the flag server-side: https://github.com/warpdotdev/warp-server/pull/10736 — that PR should land first so the polling endpoint stays available for older clients during rollout. ## Testing - `cargo build -p warp` clean. - `cargo clippy -p warp -p warp_features --all-targets -- -D warnings` clean (after `cargo fmt`). - `cargo test -p warp --lib ai::blocklist::orchestration_event_streamer` — all 7 tests pass. ## Agent Mode - [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode --- [Plan: Remove orchestration_event_push flag (server + client)](https://staging.warp.dev/drive/notebook/yAlAxMAr4EO65A9LEy40cX) [Conversation](https://staging.warp.dev/conversation/ff5e82cb-bba7-4cbf-ae0b-e51f2c542f4a) --------- Co-authored-by: Oz <oz-agent@warp.dev>
This commit is contained in:
+1
-3
@@ -1570,7 +1570,7 @@ fn initialize_app(
|
||||
ctx.add_singleton_model(ai::blocklist::task_status_sync_model::TaskStatusSyncModel::new);
|
||||
if warp_core::features::FeatureFlag::OrchestrationV2.is_enabled() {
|
||||
ctx.add_singleton_model(
|
||||
ai::blocklist::orchestration_event_poller::OrchestrationEventPoller::new,
|
||||
ai::blocklist::orchestration_event_streamer::OrchestrationEventStreamer::new,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -2726,8 +2726,6 @@ pub fn enabled_features() -> HashSet<FeatureFlag> {
|
||||
FeatureFlag::Orchestration,
|
||||
#[cfg(feature = "orchestration_v2")]
|
||||
FeatureFlag::OrchestrationV2,
|
||||
#[cfg(feature = "orchestration_event_push")]
|
||||
FeatureFlag::OrchestrationEventPush,
|
||||
#[cfg(feature = "pending_user_query_indicator")]
|
||||
FeatureFlag::PendingUserQueryIndicator,
|
||||
#[cfg(feature = "queue_slash_command")]
|
||||
|
||||
Reference in New Issue
Block a user