Skip to content

Commit 5587512

Browse files
committed
chore(audit): keep only the pricing refresh log
1 parent 85de9ca commit 5587512

6 files changed

Lines changed: 3 additions & 10 deletions

File tree

‎docs/PERFTRACE.md‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ Precedence:
7474
- **`otel.enabled: false`:** disables export when only settings provide an
7575
endpoint; an explicit env endpoint still enables export
7676

77-
Operator note: the env attribute list replaces settings wholesale instead of
78-
merging — when `OTEL_RESOURCE_ATTRIBUTES` is set, attributes left only in
79-
settings are ignored, so move every attribute you need into the env list.
80-
8177
Do not put credentials in the endpoint URL (`https://user:pass@…` is rejected).
8278
Use headers instead.
8379

‎knip.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"src/tui/smoke.ts",
66
"scripts/*.ts",
77
"e2e/*.test.ts",
8-
"evals/**/*.ts"
8+
"evals/*.ts"
99
],
1010
"project": [
1111
"src/**/*.ts",

‎src/agent/director-core.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export function composeDirectedPrompt(
2828
function ephemeralNudgeTurn(text: string): ConversationTurn {
2929
return {
3030
role: "user",
31-
// Trim caller padding so the nudge matches the cached literal exactly.
3231
content: [{ type: "text", text: text.trim() }],
3332
timestamp: Date.now(),
3433
};

‎src/cost/pricing-fetcher.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,7 @@ export async function loadPricing(
292292
await writePricingCache(pricing, cachePath);
293293
return pricing;
294294
} catch (err) {
295-
// Refresh runs fire-and-forget off a timer, so it must never throw. One
296-
// debug line keeps the failure observable while stale cache carries on.
295+
// One debug line keeps a failed refresh observable while stale cache carries on.
297296
log.debug("pricing refresh failed, keeping cached pricing: {error}", {
298297
error: err instanceof Error ? err.message : String(err),
299298
});

‎src/perf/otel-config.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,6 @@ export function resolveOtelExportConfig(
296296
}
297297

298298
let resourceAttributes: Record<string, string> = {};
299-
// Env replaces settings wholesale (no merge): a set-but-empty env still wins.
300299
if (envResourceAttrsRaw !== undefined) {
301300
const parsed = parseOtelKeyValueList(
302301
envResourceAttrsRaw,

‎src/session/optimized-context-store.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1918,7 +1918,7 @@ export async function createSessionStores(
19181918
extraPaths = [...new Set([...add, ...remove])];
19191919

19201920
// Array `git.add` / `git.remove` each write the index once.
1921-
// Array `remove` is isomorphic-git 1.44.2; array `add` is older.
1921+
// Array `remove` is isomorphic-git 1.43.0; array `add` is older.
19221922
// A mid-batch add failure leaves the index unwritten. Only the
19231923
// outer catch calls `resetIndexPaths`.
19241924
if (add.length > 0) {

0 commit comments

Comments
 (0)