fix(start-work): use Atlas list key in command config

This commit is contained in:
YeonGyu-Kim
2026-04-01 17:45:16 -07:00
parent f4b8e1c365
commit 51d9685571
6 changed files with 214 additions and 6 deletions
@@ -348,6 +348,22 @@ describe("createAutoSlashCommandHook", () => {
expect(output.parts[0].text).toContain("/ralph-loop Command")
})
it("should inject template for known builtin commands like ulw-loop", async () => {
//#given
const hook = createAutoSlashCommandHook()
const input = createCommandInput("ulw-loop", '"Ship feature" --strategy=continue')
const output = createCommandOutput("original")
//#when
await hook["command.execute.before"](input, output)
//#then
expect(output.parts[0].text).toContain("<auto-slash-command>")
expect(output.parts[0].text).toContain("/ulw-loop Command")
expect(output.parts[0].text).toContain("<user-task>")
expect(output.parts[0].text).toContain('"Ship feature" --strategy=continue')
})
it("should pass command arguments correctly", async () => {
//#given
const hook = createAutoSlashCommandHook()