Skip to content

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

fix: clear merged-main CI checks

Steven Enamakel7d75067c81e1
diff --git a/app/src/lib/i18n/fr.ts b/app/src/lib/i18n/fr.ts
index ad6aba736d..029377b21c 100644
--- a/app/src/lib/i18n/fr.ts
+++ b/app/src/lib/i18n/fr.ts
@@ -5273,7 +5273,7 @@ const messages: TranslationMap = {
'memoryPage.engine.badgeDown': 'Injoignable',
'memoryPage.engine.connecting': 'Connexion…',
'memoryPage.engine.save': 'Enregistrer',
- 'memoryPage.engine.builtin.title': 'CortexDB via TinyHumans',
+ 'memoryPage.engine.builtin.title': 'CortexDB intégré à TinyHumans',
'memoryPage.engine.builtin.signInHint':
'Connectez-vous à votre compte TinyHumans pour utiliser CortexDB intégré.',
'memoryPage.engine.apiKeyOption.title': 'CortexDB avec votre propre clé',
diff --git a/app/src/lib/i18n/pt.ts b/app/src/lib/i18n/pt.ts
index bc742d1ea1..2d57052922 100644
--- a/app/src/lib/i18n/pt.ts
+++ b/app/src/lib/i18n/pt.ts
@@ -5222,7 +5222,7 @@ const messages: TranslationMap = {
'memoryPage.engine.badgeDown': 'Inacessível',
'memoryPage.engine.connecting': 'Conectando…',
'memoryPage.engine.save': 'Salvar',
- 'memoryPage.engine.builtin.title': 'CortexDB via TinyHumans',
+ 'memoryPage.engine.builtin.title': 'CortexDB integrado ao TinyHumans',
'memoryPage.engine.builtin.signInHint':
'Entre na sua conta TinyHumans para usar o CortexDB integrado.',
'memoryPage.engine.apiKeyOption.title': 'CortexDB com sua própria chave',
diff --git a/crates/openhuman-rpc/src/server/saas_gateway.rs b/crates/openhuman-rpc/src/server/saas_gateway.rs
index d211872e95..755633f25b 100644
--- a/crates/openhuman-rpc/src/server/saas_gateway.rs
+++ b/crates/openhuman-rpc/src/server/saas_gateway.rs
@@ -52,9 +52,20 @@ pub(crate) fn is_closed_in_saas(path: &str) -> bool {
})
}
-fn refuse(status: u16, message: &str) -> Response {
- let status = StatusCode::from_u16(status).unwrap_or(StatusCode::FORBIDDEN);
- (status, axum::Json(serde_json::json!({ "error": message }))).into_response()
+fn refuse(status: u16, message: &str) -> GatewayRefusal {
+ GatewayRefusal {
+ status,
+ message: message.to_string(),
+ }
+}
+
+fn refusal_response(refusal: GatewayRefusal) -> Response {
+ let status = StatusCode::from_u16(refusal.status).unwrap_or(StatusCode::FORBIDDEN);
+ (
+ status,
+ axum::Json(serde_json::json!({ "error": refusal.message })),
+ )
+ .into_response()
}
fn header_str<'a>(req: &'a Request, name: &str) -> Option<&'a str> {
@@ -75,7 +86,7 @@ pub(crate) async fn saas_gateway(operator: Arc<CoreContext>, req: Request, next:
.unwrap_or_default();
let secret = crate::core_host::core::auth::get_rpc_token();
match decide(&req, secret, now, resolve_scope) {
- Err(response) => response,
+ Err(refusal) => refusal_response(refusal),
Ok(GatewayScope::User(agent)) => {
let ctx = Arc::clone(agent.context());
// Holding the state for the request keeps the agent from being
@@ -99,7 +110,7 @@ pub(crate) fn decide(
secret: Option<&str>,
now: u64,
resolve: impl FnOnce(Option<&str>, Option<&str>, &str, u64) -> Result<GatewayScope, GatewayRefusal>,
-) -> Result<GatewayScope, Response> {
+) -> Result<GatewayScope, GatewayRefusal> {
let path = req.uri().path();
if is_closed_in_saas(path) {
log::debug!("[rpc:saas] {path} is not served in SaaS mode");
@@ -144,7 +155,6 @@ pub(crate) fn decide(
}
let signature = signature.and_then(|value| value.to_str().ok());
resolve(Some(user), signature, secret, now)
- .map_err(|refusal| refuse(refusal.status, &refusal.message))
}
#[cfg(test)]
diff --git a/crates/openhuman-rpc/src/server/saas_gateway_tests.rs b/crates/openhuman-rpc/src/server/saas_gateway_tests.rs
index 9ed79de79f..fa63117c4e 100644
--- a/crates/openhuman-rpc/src/server/saas_gateway_tests.rs
+++ b/crates/openhuman-rpc/src/server/saas_gateway_tests.rs
@@ -80,7 +80,7 @@ mod decision {
move |req: Request, next: Next| async move {
match decide(&req, secret, NOW, resolve) {
Ok(_) => next.run(req).await,
- Err(response) => response,
+ Err(refusal) => refusal_response(refusal),
}
},
))
diff --git a/scripts/i18n-react-audit.ts b/scripts/i18n-react-audit.ts
index 4393f28b41..61c149b3d5 100644
--- a/scripts/i18n-react-audit.ts
+++ b/scripts/i18n-react-audit.ts
@@ -35,6 +35,7 @@ const IGNORED_TEXT = new Set([
"github", // example MCP server name
"-y @modelcontextprotocol/server-github", // example CLI args
"https://mcp.example.com/mcp", // example MCP server URL
+ "http://localhost:8080", // example local search endpoint URL
"X-API-Key", // example HTTP header name
// flows/canvas/nodeConfig/* placeholders — flow-engine expression/code/field-name
// examples, not prose (the product's `=`-expression syntax, field names, or code).