feat: support Codex goal slash command

This commit is contained in:
weishu
2026-05-15 22:15:17 +08:00
parent a099ae9199
commit 089ddad476
24 changed files with 808 additions and 6 deletions
@@ -116,6 +116,7 @@ describe('listSlashCommands', () => {
expect(commands.map((command) => command.name)).toEqual(expect.arrayContaining([
'clear',
'compact',
'goal',
'plan',
'status',
'model',
+1
View File
@@ -35,6 +35,7 @@ const BUILTIN_COMMANDS: Record<string, SlashCommand[]> = {
codex: [
{ name: 'clear', description: 'Clear current Codex thread context', source: 'builtin' },
{ name: 'compact', description: 'Compact current Codex thread context', source: 'builtin' },
{ name: 'goal', description: 'Set, view, pause, resume, or clear a persistent Codex goal', source: 'builtin' },
{ name: 'help', description: 'Show supported HAPI Codex slash commands', source: 'builtin' },
{ name: 'plan', description: 'Enable plan mode; use /plan off to return to default', source: 'builtin' },
{ name: 'default', description: 'Return Codex collaboration mode to default', source: 'builtin' },