The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(ci): repair inherited layout and E2E inventory failures
Steven Enamakela2284248725b
diff --git a/app/scripts/e2e-run-all-flows.sh b/app/scripts/e2e-run-all-flows.shindex 9df79e6bb9..84b4a80295 100755--- a/app/scripts/e2e-run-all-flows.sh+++ b/app/scripts/e2e-run-all-flows.sh@@ -244,6 +244,7 @@ if should_run_suite "navigation"; thenrun "test/e2e/specs/navigation-settings-panels.spec.ts" "navigation-settings" "navigation"run "test/e2e/specs/command-palette.spec.ts" "command-palette" "navigation"run "test/e2e/specs/channels-smoke.spec.ts" "channels-smoke" "navigation"+ run "test/e2e/specs/chip-tabs-keyboard.spec.ts" "chip-tabs-keyboard" "navigation"run "test/e2e/specs/guided-tour-gates.spec.ts" "guided-tour-gates" "navigation"_mini_summary "navigation"fidiff --git a/crates/openhuman-core/src/inference/provider/openhuman_backend_model_auth_tests.rs b/crates/openhuman-core/src/inference/provider/openhuman_backend_model_auth_tests.rsnew file mode 100644index 0000000000..e3d4332286--- /dev/null+++ b/crates/openhuman-core/src/inference/provider/openhuman_backend_model_auth_tests.rs@@ -0,0 +1,46 @@+use super::*;++// #6932: the offline local profile is a valid sign-in with no TinyHumans+// account behind it. `classify_session_token` reports its `exp`-less token+// `Live`, so managed inference used to send it, collect a backend+// `401 "Invalid token"` and surface that as an expired session.+#[test]+fn the_offline_local_session_cannot_authenticate_managed_inference() {+ use crate::security::credentials::session_support::{+ SessionTokenCheck, LOCAL_SESSION_MANAGED_INFERENCE_UNAVAILABLE,+ };++ let error = managed_bearer(SessionTokenCheck::Live("header.payload.local".to_string()))+ .expect_err("a local session has no managed bearer");++ assert_eq!(+ error.to_string(),+ LOCAL_SESSION_MANAGED_INFERENCE_UNAVAILABLE+ );+}++#[test]+fn the_refusal_does_not_read_as_an_expired_session() {+ use crate::security::credentials::session_support::SessionTokenCheck;++ let error = managed_bearer(SessionTokenCheck::Live("header.payload.local".to_string()))+ .expect_err("a local session has no managed bearer");++ // The whole point of the fix: this must not reach the sign-out path that+ // the backend's 401 envelope used to trigger.+ assert!(!crate::core::observability::is_session_expired_message(+ &error.to_string()+ ));+}++#[test]+fn a_signed_in_session_still_authenticates_managed_inference() {+ use crate::security::credentials::session_support::SessionTokenCheck;++ let bearer = managed_bearer(SessionTokenCheck::Live(+ "header.payload.signature".to_string(),+ ))+ .expect("a hosted session is the bearer");++ assert_eq!(bearer, "header.payload.signature");+}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.rsindex 7b6a30fdba..dcfdc5e1a8 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@@ -711,50 +711,7 @@ fn resolve_bearer_returns_token_for_exp_less_offline_session() {.expect("an exp-less offline session must resolve (presence-only)");assert_eq!(token, "test.session.jwt");}+#[path = "openhuman_backend_model_auth_tests.rs"]+mod auth_tests;#[path = "openhuman_backend_model_endpoint_tests.rs"]mod endpoint_tests;--// #6932: the offline local profile is a valid sign-in with no TinyHumans-// account behind it. `classify_session_token` reports its `exp`-less token-// `Live`, so managed inference used to send it, collect a backend-// `401 "Invalid token"` and surface that as an expired session.-#[test]-fn the_offline_local_session_cannot_authenticate_managed_inference() {- use crate::security::credentials::session_support::{- SessionTokenCheck, LOCAL_SESSION_MANAGED_INFERENCE_UNAVAILABLE,- };-- let error = managed_bearer(SessionTokenCheck::Live("header.payload.local".to_string()))- .expect_err("a local session has no managed bearer");-- assert_eq!(- error.to_string(),- LOCAL_SESSION_MANAGED_INFERENCE_UNAVAILABLE- );-}--#[test]-fn the_refusal_does_not_read_as_an_expired_session() {- use crate::security::credentials::session_support::SessionTokenCheck;-- let error = managed_bearer(SessionTokenCheck::Live("header.payload.local".to_string()))- .expect_err("a local session has no managed bearer");-- // The whole point of the fix: this must not reach the sign-out path that- // the backend's 401 envelope used to trigger.- assert!(!crate::core::observability::is_session_expired_message(- &error.to_string()- ));-}--#[test]-fn a_signed_in_session_still_authenticates_managed_inference() {- use crate::security::credentials::session_support::SessionTokenCheck;-- let bearer = managed_bearer(SessionTokenCheck::Live(- "header.payload.signature".to_string(),- ))- .expect("a hosted session is the bearer");-- assert_eq!(bearer, "header.payload.signature");-}