Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions worker/agents/assistants/codeDebugger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { executeInference } from '../inferutils/infer';
import { InferenceContext, ModelConfig } from '../inferutils/config.types';
import { createObjectLogger } from '../../logger';
import type { ToolDefinition } from '../tools/types';
import { CodingAgentInterface } from '../services/implementations/CodingAgent';
import { AGENT_CONFIG } from '../inferutils/config';
import { buildDebugTools } from '../tools/customTools';
import { RenderToolCall } from '../operations/UserConversationProcessor';
Expand All @@ -19,6 +18,7 @@ import { PROMPT_UTILS } from '../prompts';
import { RuntimeError } from 'worker/services/sandbox/sandboxTypes';
import { FileState } from '../core/state';
import { InferError } from '../inferutils/core';
import { ICodingAgent } from '../services/interfaces/ICodingAgent';

const SYSTEM_PROMPT = `You are an elite autonomous code debugging specialist with deep expertise in root-cause analysis, modern web frameworks (React, Vite, Cloudflare Workers), TypeScript/JavaScript, build tools, and runtime environments.

Expand Down Expand Up @@ -543,7 +543,7 @@ type LoopDetectionState = {

export type DebugSession = {
filesIndex: FileState[];
agent: CodingAgentInterface;
agent: ICodingAgent;
runtimeErrors?: RuntimeError[];
};

Expand Down
Loading
Loading