Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix: clear composer CI gates

Steven Enamakel1dfad86408c5
diff --git a/app/scripts/e2e-run-all-flows.sh b/app/scripts/e2e-run-all-flows.sh
index 9df79e6bb9..bdc7f06ef4 100755
--- a/app/scripts/e2e-run-all-flows.sh
+++ b/app/scripts/e2e-run-all-flows.sh
@@ -333,6 +333,7 @@ if should_run_suite "providers"; then
run "test/e2e/specs/gmail-flow.spec.ts" "gmail" "providers"
run "test/e2e/specs/accounts-provider-modal.spec.ts" "accounts-providers" "providers"
run "test/e2e/specs/credential-channels-flow.spec.ts" "credential-channels" "providers"
+ run "test/e2e/specs/chip-tabs-keyboard.spec.ts" "chip-tabs-keyboard" "providers"
_mini_summary "providers"
fi
diff --git a/app/src/features/conversations/Conversations.processSourceCommand.test.tsx b/app/src/features/conversations/Conversations.processSourceCommand.test.tsx
index e5544f12b8..573dbb2268 100644
--- a/app/src/features/conversations/Conversations.processSourceCommand.test.tsx
+++ b/app/src/features/conversations/Conversations.processSourceCommand.test.tsx
@@ -415,7 +415,7 @@ describe('composer model routing', () => {
registry.reset();
vi.mocked(threadApi.appendMessage)
.mockReset()
- .mockImplementation(async (_threadId: string, message: unknown) => message);
+ .mockImplementation(async (_threadId: string, message) => message);
vi.mocked(callCoreRpc).mockReset().mockResolvedValue({});
mockChatSend.mockReset().mockResolvedValue(undefined);
});
diff --git a/crates/openhuman-core/src/inference/provider/openhuman_backend_model_tests.rs b/crates/openhuman-core/src/inference/provider/openhuman_backend_model_tests.rs
index 7b6a30fdba..822080b61a 100644
--- a/crates/openhuman-core/src/inference/provider/openhuman_backend_model_tests.rs
+++ b/crates/openhuman-core/src/inference/provider/openhuman_backend_model_tests.rs
@@ -584,16 +584,8 @@ async fn consecutive_managed_calls_reuse_one_connection() {
);
}
-// ── resolve_bearer local-expiry precheck (#5503, part e) ───────────────
-
#[test]
fn resolve_bearer_fast_fails_session_expired_on_expired_token() {
- // An app-session JWT whose recorded `exp` is in the past must fail the
- // precheck as a `SESSION_EXPIRED` sentinel BEFORE any request is built —
- // so the web-chat classifier routes it to `session_expired` (actionable
- // re-auth) instead of a doomed request that can surface as a misleading
- // "model unavailable" (#5503). No backend is stood up: a correct
- // precheck never reaches the network.
let tmp = tempfile::TempDir::new().unwrap();
let past = (chrono::Utc::now() - chrono::Duration::hours(1)).to_rfc3339();
seed_app_session_with_expiry(tmp.path(), &past);
@@ -615,8 +607,6 @@ fn resolve_bearer_fast_fails_session_expired_on_expired_token() {
#[test]
fn resolve_bearer_returns_token_when_expiry_in_future() {
- // A recorded `exp` comfortably in the future resolves normally — the
- // precheck only rejects the past-expiry case.
let tmp = tempfile::TempDir::new().unwrap();
let future = (chrono::Utc::now() + chrono::Duration::hours(1)).to_rfc3339();
seed_app_session_with_expiry(tmp.path(), &future);
@@ -628,8 +618,6 @@ fn resolve_bearer_returns_token_when_expiry_in_future() {
assert_eq!(token, "test.session.jwt");
}
-// ── managed-bearer transport safety for a stored API key (CWE-319) ─────
-
fn backend_with_api_key(api_url: &str, dir: &std::path::Path) -> OpenHumanBackendModel {
crate::security::credentials::api_key::store_api_key_in(dir, false, "th_test_key")
.expect("seed api key");
@@ -685,8 +673,6 @@ fn resolve_bearer_rejects_foreign_https_for_api_key() {
#[test]
fn resolve_bearer_sends_a_stored_api_key_over_plain_loopback() {
- // Plain HTTP to loopback stays allowed — the same local-testing
- // allowance `openhuman_embed::turn::is_safe_endpoint_for_bearer` makes.
let tmp = tempfile::TempDir::new().unwrap();
let backend = backend_with_api_key("http://127.0.0.1:9999", tmp.path());
@@ -698,10 +684,6 @@ fn resolve_bearer_sends_a_stored_api_key_over_plain_loopback() {
#[test]
fn resolve_bearer_returns_token_for_exp_less_offline_session() {
- // Offline / local sessions record no `exp`, so the precheck falls
- // through to presence-only and their behaviour is unchanged (the
- // post-call 401 net still covers a server-side revocation). Guards the
- // #5503 precheck against breaking the offline path.
let tmp = tempfile::TempDir::new().unwrap();
seed_app_session(tmp.path());
let backend = backend_pointed_at("127.0.0.1:9", tmp.path());
diff --git a/crates/openhuman-core/src/web_chat/session_routing_tests.rs b/crates/openhuman-core/src/web_chat/session_routing_tests.rs
index 957bc21fba..ea888c1d99 100644
--- a/crates/openhuman-core/src/web_chat/session_routing_tests.rs
+++ b/crates/openhuman-core/src/web_chat/session_routing_tests.rs
@@ -228,13 +228,12 @@ fn selected_managed_route_constructs_with_the_picker_model() {
let config = Config::default();
let selection = "openrouter/author/picked-model:free";
let effective = effective_session_config(&config, Some(selection), None);
- let (_, resolved_model) =
- crate::inference::provider::factory::create_chat_model_with_model_id(
- "chat",
- &effective,
- effective.default_temperature,
- )
- .expect("managed picker selection should construct without network access");
+ let (_, resolved_model) = crate::inference::provider::factory::create_chat_model_with_model_id(
+ "chat",
+ &effective,
+ effective.default_temperature,
+ )
+ .expect("managed picker selection should construct without network access");
assert_eq!(resolved_model, selection);
}