fix(start-work): keep native command agents on config keys

This commit is contained in:
YeonGyu-Kim
2026-04-08 15:55:58 +09:00
parent aa1a18c5d8
commit cd95172e42
6 changed files with 42 additions and 26 deletions
@@ -1,5 +1,5 @@
import type { OhMyOpenCodeConfig } from "../config";
import { getAgentDisplayName } from "../shared/agent-display-names";
import { getAgentConfigKey } from "../shared/agent-display-names";
import {
loadUserCommands,
loadProjectCommands,
@@ -96,7 +96,7 @@ export async function applyCommandConfig(params: {
function remapCommandAgentFields(commands: Record<string, Record<string, unknown>>): void {
for (const cmd of Object.values(commands)) {
if (cmd?.agent && typeof cmd.agent === "string") {
cmd.agent = getAgentDisplayName(cmd.agent);
cmd.agent = getAgentConfigKey(cmd.agent);
}
}
}