mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
refactor: rename daemon to runner throughout codebase
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user