fix(agents): restore ZWSP runtime names in name field for OpenCode sort ordering
Reverts getAgentDisplayName back to getAgentRuntimeName in the remapper and default_agent assignment. OpenCode sorts agents by name via localeCompare, so ZWSP prefixes in the name field are required to preserve canonical core agent order (sisyphus > hephaestus > prometheus > atlas).
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { getAgentDisplayName } from "../shared/agent-display-names"
|
||||
import { getAgentDisplayName, getAgentRuntimeName } from "../shared/agent-display-names"
|
||||
|
||||
function rewriteAgentNameForListDisplay(
|
||||
key: string,
|
||||
@@ -11,7 +11,7 @@ function rewriteAgentNameForListDisplay(
|
||||
const agent = value as Record<string, unknown>
|
||||
return {
|
||||
...agent,
|
||||
name: getAgentDisplayName(key),
|
||||
name: getAgentRuntimeName(key),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user