style: formatted files from owner-approved merges

This commit is contained in:
can1357
2026-07-17 05:33:19 +02:00
parent fcb368263b
commit adb2a3c7e2
6 changed files with 11 additions and 7 deletions
@@ -809,7 +809,9 @@ export class SelectorController {
this.ctx.session.setThinkingLevel(AUTO_THINKING, true);
}
const roleInfo = getRoleInfo(role, settings);
this.ctx.showStatus(`${scopeLabel}${roleInfo?.tag ?? roleInfo?.name ?? role} model: ${selector ?? model.id}`);
this.ctx.showStatus(
`${scopeLabel}${roleInfo?.tag ?? roleInfo?.name ?? role} model: ${selector ?? model.id}`,
);
}
} catch (error) {
this.ctx.showError(error instanceof Error ? error.message : String(error));
@@ -833,7 +835,9 @@ export class SelectorController {
this.ctx.settings.setModelRole(role, undefined);
}
const roleInfo = getRoleInfo(role, settings);
this.ctx.showStatus(`${scopeLabel}${roleInfo?.tag ?? roleInfo?.name ?? role} role cleared — auto-selection applies`);
this.ctx.showStatus(
`${scopeLabel}${roleInfo?.tag ?? roleInfo?.name ?? role} role cleared — auto-selection applies`,
);
// Clearing either persisted scope can also remove a captured
// runtime override. When that changes the effective default,
// resolve the newly exposed persisted layer and switch the live
-1
View File
@@ -210,7 +210,6 @@ function normalizeResultOutput(result: BashResult | BashInteractiveResult): stri
return result.output || "";
}
function normalizeBashEnv(env: Record<string, string> | undefined): Record<string, string> | undefined {
if (!env || Object.keys(env).length === 0) return undefined;
const normalized: Record<string, string> = {};
@@ -662,7 +662,6 @@ async function findImageApiKey(
case "gemini":
return findGeminiImageCredentials(modelRegistry, sessionId);
}
}
async function loadImageFromPath(imagePath: string, cwd: string): Promise<InlineImageData> {
@@ -8,7 +8,11 @@ import { AssistantMessageEventStream } from "@oh-my-pi/pi-ai/utils/event-stream"
import { getBundledModel } from "@oh-my-pi/pi-catalog/models";
import { ModelRegistry } from "@oh-my-pi/pi-coding-agent/config/model-registry";
import { Settings } from "@oh-my-pi/pi-coding-agent/config/settings";
import { ExtensionRunner, loadExtensionFromFactory, loadExtensions } from "@oh-my-pi/pi-coding-agent/extensibility/extensions";
import {
ExtensionRunner,
loadExtensionFromFactory,
loadExtensions,
} from "@oh-my-pi/pi-coding-agent/extensibility/extensions";
import { SecretObfuscator } from "@oh-my-pi/pi-coding-agent/secrets";
import { AgentSession, type AgentSessionEvent } from "@oh-my-pi/pi-coding-agent/session/agent-session";
import { AuthStorage } from "@oh-my-pi/pi-coding-agent/session/auth-storage";
@@ -100,7 +100,6 @@ function assertSingleMetricPoint(metricName: string): void {
}
}
const server = Bun.serve({
port: 0,
async fetch(req) {
-1
View File
@@ -53,7 +53,6 @@ function emitToSinks(level: LogLevel, message: string, context: Record<string, u
}
}
const PROCESS_LOG_PATTERN = /^omp\.\d{4}-\d{2}-\d{2}\.(\d+)\.log(?:\.\d+)?$/;
const PROCESS_AUDIT_PATTERN = /^\.omp\.(\d+)-audit\.json$/;
const RETAINED_STALE_LOG_FILES = 5;