Skip to content

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

Merge branch 'main' into fix/transport-log-rpcurl-redaction\n

Mega Mindd0fa604377b8
diff --cc app/src/services/transport/CloudHttpTransport.ts
index 5ed18713cc,90cf97d6d4..6bd1780ce2
--- a/app/src/services/transport/CloudHttpTransport.ts
+++ b/app/src/services/transport/CloudHttpTransport.ts
@@@ -36,17 -35,14 +36,21 @@@ export class CloudHttpTransport impleme
private readonly bearerToken: string | null = null,
private readonly timeoutMs: number = 30_000
) {
- log('[transport:cloud] created rpcUrl=%s token=%s', rpcUrl, bearerToken ? 'set' : 'none');
+ // The bearer token is already reported by presence only; the URL needs the same
+ // care, because a profile rpcUrl may carry `user:pass@` or `?token=` (see the
+ // redactRpcUrlForLog test) and this line ran before any of it was stripped.
+ log(
+ '[transport:cloud] created rpcUrl=%s token=%s',
+ redactRpcUrlForLog(rpcUrl),
+ bearerToken ? 'set' : 'none'
+ );
}
- async call<T>(method: string, params: unknown, opts?: { signal?: AbortSignal }): Promise<T> {
+ async call<T>(
+ method: string,
+ params: unknown,
+ opts?: { signal?: AbortSignal; timeoutMs?: number }
+ ): Promise<T> {
const id = _nextId++;
const payload: JsonRpcRequestBody = { jsonrpc: '2.0', id, method, params: params ?? {} };
diff --cc app/src/services/transport/LanHttpTransport.ts
index a88bee55f1,b18b4799de..6d450b1740
--- a/app/src/services/transport/LanHttpTransport.ts
+++ b/app/src/services/transport/LanHttpTransport.ts
@@@ -35,10 -34,14 +35,14 @@@ export class LanHttpTransport implement
private readonly rpcUrl: string,
private readonly timeoutMs: number = 10_000
) {
- log('[transport:lan] created rpcUrl=%s', rpcUrl);
+ log('[transport:lan] created rpcUrl=%s', redactRpcUrlForLog(rpcUrl));
}
- async call<T>(method: string, params: unknown, opts?: { signal?: AbortSignal }): Promise<T> {
+ async call<T>(
+ method: string,
+ params: unknown,
+ opts?: { signal?: AbortSignal; timeoutMs?: number }
+ ): Promise<T> {
const id = _nextId++;
const payload: JsonRpcRequestBody = { jsonrpc: '2.0', id, method, params: params ?? {} };