fix(hapi): consolidate approved web and Codex recovery fixes (#578)

This commit is contained in:
xiaobaifly7
2026-05-06 20:02:46 +08:00
committed by GitHub
parent 8185f0287e
commit 6df84df756
14 changed files with 1091 additions and 53 deletions
+18
View File
@@ -33,6 +33,24 @@ describe('mergeSlashCommands', () => {
{ name: 'clear', source: 'project', content: 'project clear prompt' }
])
})
it('keeps API-provided built-ins while de-duplicating by name', () => {
const commands = mergeSlashCommands([
{ name: 'clear', source: 'builtin' },
{ name: 'status', source: 'builtin' },
{ name: 'help', source: 'builtin' },
{ name: 'status', source: 'builtin', description: 'Captured status' },
{ name: 'project-only', source: 'project', content: 'Project prompt' }
])
expect(commands).toEqual([
{ name: 'clear', source: 'builtin' },
{ name: 'help', source: 'builtin' },
{ name: 'status', source: 'builtin', description: 'Captured status' },
{ name: 'project-only', source: 'project', content: 'Project prompt' }
])
})
})
describe('findCodexCustomPromptExpansion', () => {