refactor: rename daemon to runner throughout codebase

This commit is contained in:
weishu
2026-01-19 11:12:48 +08:00
parent ccdcb3d75d
commit 0228146b99
53 changed files with 812 additions and 714 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ export interface EnhancedMode {
interface LoopOptions {
path: string;
startingMode?: 'local' | 'remote';
startedBy?: 'daemon' | 'terminal';
startedBy?: 'runner' | 'terminal';
onModeChange: (mode: 'local' | 'remote') => void;
messageQueue: MessageQueue2<EnhancedMode>;
session: ApiSessionClient;
+2 -2
View File
@@ -15,7 +15,7 @@ import { formatMessageWithAttachments } from '@/utils/attachmentFormatter';
export { emitReadyIfIdle } from './utils/emitReadyIfIdle';
export async function runCodex(opts: {
startedBy?: 'daemon' | 'terminal';
startedBy?: 'runner' | 'terminal';
codexArgs?: string[];
permissionMode?: PermissionMode;
resumeSessionId?: string;
@@ -35,7 +35,7 @@ export async function runCodex(opts: {
agentState: state
});
const startingMode: 'local' | 'remote' = startedBy === 'daemon' ? 'remote' : 'local';
const startingMode: 'local' | 'remote' = startedBy === 'runner' ? 'remote' : 'local';
setControlledByUser(session, startingMode);
+2 -2
View File
@@ -13,7 +13,7 @@ type LocalLaunchFailure = {
export class CodexSession extends AgentSessionBase<EnhancedMode> {
readonly codexArgs?: string[];
readonly codexCliOverrides?: CodexCliOverrides;
readonly startedBy: 'daemon' | 'terminal';
readonly startedBy: 'runner' | 'terminal';
readonly startingMode: 'local' | 'remote';
localLaunchFailure: LocalLaunchFailure | null = null;
@@ -26,7 +26,7 @@ export class CodexSession extends AgentSessionBase<EnhancedMode> {
messageQueue: MessageQueue2<EnhancedMode>;
onModeChange: (mode: 'local' | 'remote') => void;
mode?: 'local' | 'remote';
startedBy: 'daemon' | 'terminal';
startedBy: 'runner' | 'terminal';
startingMode: 'local' | 'remote';
codexArgs?: string[];
codexCliOverrides?: CodexCliOverrides;