style: bun run fix

This commit is contained in:
roboomp
2026-06-12 03:32:13 +00:00
parent 25967db974
commit 884e7dc115
3 changed files with 3 additions and 8 deletions
@@ -317,10 +317,7 @@ function registerOpenAIResponsesChainStaleFailure(chain: OpenAIResponsesChainSta
* One-shot ZDR signal: the org will never resolve a stored response, so skip
* the staleFailures counter and disable chaining immediately for this session.
*/
function markOpenAIResponsesChainZeroDataRetention(
chain: OpenAIResponsesChainState,
error: unknown,
): void {
function markOpenAIResponsesChainZeroDataRetention(chain: OpenAIResponsesChainState, error: unknown): void {
resetOpenAIResponsesChainState(chain);
chain.disabled = true;
chain.staleFailures = OPENAI_RESPONSES_CHAIN_STALE_FAILURE_LIMIT;
@@ -288,8 +288,7 @@ describe("openai-responses stateful chaining", () => {
return new Response(
JSON.stringify({
error: {
message:
"Previous response cannot be used for this organization due to Zero Data Retention.",
message: "Previous response cannot be used for this organization due to Zero Data Retention.",
type: "invalid_request_error",
param: "previous_response_id",
code: "zero_data_retention",
@@ -829,8 +829,7 @@ describe("AgentSession retry fallback", () => {
// retry has already exhausted itself; the higher-level retry must still
// classify the failure as a stale-replay event so the session reset and
// zero-delay backoff fire instead of a model fallback.
const zdrReplayError =
"400 Previous response cannot be used for this organization due to Zero Data Retention.";
const zdrReplayError = "400 Previous response cannot be used for this organization due to Zero Data Retention.";
const requestedModels: string[] = [];
const fallbackAppliedEvents: Array<Extract<AgentSessionEvent, { type: "retry_fallback_applied" }>> = [];
const mock = createMockModel({