Skip to content

Bring common slash commands closer to Codex CLI - #124

Open
merefield wants to merge 8 commits into
mainfrom
feat/native-slash-command-shortcuts
Open

merefield wants to merge 8 commits into
mainfrom
feat/native-slash-command-shortcuts

Conversation

@merefield

Copy link
Copy Markdown
Owner

Why

Match the native Codex CLI workflows for commonly used commands without removing Codexometer’s existing safeguards.

Changes

  • /permissions marks the active preset and always requires explicit confirmation for Full Access, even in confirmation mode none.
  • /plan switches an idle session directly into Plan mode; /plan sends the prompt and Plan mode in one native turn request.
  • /model accepts inline --reasoning and --speed arguments while keeping the interactive picker.
  • /usage offers analytics and reset navigation, plus daily, weekly and cumulative shortcuts. Redemption stays terminal-only and separately confirmed.
  • /resume filters the saved-session picker; /resume targets the exact, account-verified session under the existing confirmation policy.

Validation

  • Full Go suite
  • Seven targeted Playwright browser tests
  • Svelte and formatting checks, frontend build
  • Duplication ratchet against the unchanged main baseline

This PR contains only the five slash-command commits, based on main after #123.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Approval is blocked by two active issues: an unsupported flex tier can bypass model catalogue validation, and passing a Map to the SPA router causes all navigation to fall through to the missing route.

2 open issues
What changed in this PR

This pull request brings common slash-command workflows closer to native Codex CLI behavior across terminal and browser interfaces while preserving confirmation, account-scoping, and read-only safeguards.

Changes:

  • Adds native-style /permissions, /plan, /model, /usage, and /resume workflows.
  • Adds exact saved-session UUID lookup, inline model options, Plan-mode prompt submission, usage period navigation, and permission confirmation metadata.
  • Updates documentation, security wording, generated frontend assets, and comprehensive Go and browser tests.
File Description
web/​tests/​browser.spec.ts Adds browser coverage for permissions, usage navigation, and reset safety.
web/​src/​Usage.svelte Adds route-driven usage modes and weekly aggregation.
web/​src/​state.svelte.ts Adds reusable resume-picker search state.
web/​src/​SessionNew.svelte Supports /resume arguments when starting sessions.
web/​src/​SessionCommands.svelte Adds browser handling for inline commands and confirmation metadata.
web/​src/​SavedSessions.svelte Supports name-prefilled and exact UUID resume lookup.
web/​src/​contracts.generated.ts Extends command-choice metadata and usage help.
web/​src/​App.svelte Adds usage subroutes and updates route matching.
SECURITY.md Documents Full Access as always confirmation-protected.
README.md Updates slash-command and confirmation-policy documentation.
main.go Updates confirmation-policy help text.
internal/​web/​dist/​index.html References the rebuilt frontend bundle.
internal/​web/​control_commands.go Reports whether goal pause cancelled a scheduled resume.
internal/​ui/​session_start.go Accepts inline /resume arguments in the terminal.
internal/​ui/​session_finder.go Adds filtered and exact-ID resume-picker behavior.
internal/​ui/​session_finder_test.go Tests inline resume name and UUID handling.
internal/​ui/​monitor_suggestions.go Recognizes inline Plan, usage, resume, model, and goal commands.
internal/​ui/​monitor_local_commands.go Adds terminal usage navigation and resume filtering.
internal/​ui/​monitor_local_commands_test.go Tests usage shortcuts and guarded reset navigation.
internal/​ui/​monitor_commands.go Adds confirmation classification and Plan and goal command routing.
internal/​ui/​monitor_commands_test.go Tests goal-pause cancellation and permission no-op behavior.
internal/​ui/​monitor_commands_inline.go Adds inline model, Plan, and usage command handling.
internal/​ui/​monitor_commands_inline_test.go Updates inline local-command coverage.
internal/​ui/​monitor_auto_review_test.go Verifies Full Access confirmation requirements.
internal/​schedule/​goal_resume.go Returns whether a scheduled goal resume was actually disarmed.
internal/​codex/​session_plan_unix.go Implements native Plan-mode activation and prompt submission.
internal/​codex/​session_plan_unix_test.go Tests atomic Plan-mode prompt submission.
internal/​codex/​session_permissions_menu_unix.go Classifies safe narrowing permission changes.
internal/​codex/​session_model_command_unix.go Parses and validates inline model arguments.
internal/​codex/​session_model_command_unix_test.go Tests inline reasoning and speed options.
internal/​codex/​session_links_unix.go Reuses exact account-scoped saved-session lookup.
internal/​codex/​session_goal.go Adds Plan and goal-pause command path parsing.
internal/​codex/​session_goal_commands_unix.go Supports the explicit goal-pause activation path.
internal/​codex/​session_finder.go Recognizes complete UUIDs for exact saved-session searches.
internal/​codex/​session_finder_unix.go Uses account-verified exact lookup during resume.
internal/​codex/​session_finder_unix_test.go Tests account-scoped exact UUID lookup.
internal/​codex/​session_finder_index_unix.go Adds exact-ID saved-session search handling.
internal/​codex/​session_commands.go Extends command paths, metadata, and success messages.
internal/​codex/​session_commands_unix.go Routes Plan and model commands and applies confirmation classification.
internal/​codex/​session_auto_review_unix_test.go Tests native permission presets and narrowing rules.
docs/​slash-command-support.md Updates supported slash-command documentation.

Review effort: Lite

Comment thread web/src/App.svelte Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants