fix(zwsp): strip zero-width chars from agent headers in command-config-handler

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-04-08 13:01:43 +09:00
parent 130e67a432
commit 3724093618
2 changed files with 4 additions and 4 deletions
@@ -1,5 +1,5 @@
import type { OhMyOpenCodeConfig } from "../config";
import { getAgentListDisplayName } from "../shared/agent-display-names";
import { getAgentDisplayName } 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 = getAgentListDisplayName(cmd.agent);
cmd.agent = getAgentDisplayName(cmd.agent);
}
}
}