fix(start-work): align command routing with exported agent keys

This commit is contained in:
YeonGyu-Kim
2026-04-08 16:00:47 +09:00
parent 4394129667
commit 8925ec3a16
3 changed files with 55 additions and 7 deletions
@@ -1,5 +1,8 @@
import type { OhMyOpenCodeConfig } from "../config";
import { getAgentConfigKey } from "../shared/agent-display-names";
import {
getAgentConfigKey,
getAgentListDisplayName,
} from "../shared/agent-display-names";
import {
loadUserCommands,
loadProjectCommands,
@@ -96,7 +99,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 = getAgentConfigKey(cmd.agent);
cmd.agent = getAgentListDisplayName(getAgentConfigKey(cmd.agent));
}
}
}