Files
oh-my-opencode/src/tools/delegate-task/sisyphus-junior-agent.ts
T
YeonGyu-Kim cb601ddd77 fix: resolve category delegation and command routing with display name agent keys
Category-based delegation (task(category='quick')) was broken because
SISYPHUS_JUNIOR_AGENT sent 'sisyphus-junior' to session.prompt but
config.agent keys are now display names ('Sisyphus-Junior').

- Use getAgentDisplayName() for SISYPHUS_JUNIOR_AGENT constant
- Replace hardcoded 'sisyphus-junior' strings in tools.ts with constant
- Update background-output local constants to use display names
- Add remapCommandAgentFields() to translate command agent fields
- Add raw-key fallback in tool-config-handler agentByKey()
2026-02-16 21:32:33 +09:00

4 lines
148 B
TypeScript

import { getAgentDisplayName } from "../../shared/agent-display-names"
export const SISYPHUS_JUNIOR_AGENT = getAgentDisplayName("sisyphus-junior")