Skip to content

Improve slash-command menus and add local usage, copy, theme and exit commands - #83

Merged
merefield merged 3 commits into
mainfrom
fix/slash-command-feedback-navigation
Oct 11, 2026
Merged

merefield merged 3 commits into
mainfrom
fix/slash-command-feedback-navigation

Conversation

@merefield

@merefield merefield commented Oct 11, 2026 •

Copy link
Copy Markdown
Owner

Slash-command menus labelled blocked settings as // HELP, showed inconsistent confirmation hints, and inferred Back destinations from RPC paths. This makes availability, selection and navigation explicit in terminal and web menus, and adds local aliases for existing interface controls.

  • Blocked settings show WAITING FOR IDLE or UNAVAILABLE, their reason and Refresh. Compact terminal panels reserve space for the reason, using a shorter recovery instruction when needed. Fixed availability labels and footer actions are translated in all 17 supported terminal locales; server-provided help is preserved. Genuine browse-only entries retain help. A single action row offers Enter Review followed by C Confirm for session-setting changes.
  • Back returns to a visited command screen or undoes a provisional review; direct /fast has no Back on its initial options screen. Rename/directory review preserves edited values. Cancel closes the menu, preserves the slash draft and restores composer focus when available. Every menu exit clears navigation history, so reopening a direct command cannot inherit an old Back destination.
  • Selected options use bright text with the normal background. CURRENT separately identifies an applied setting.
  • /usage opens usage history; /copy reuses the session Copy action and its complete observed reply/activity payload; /theme selects and saves a terminal theme or focuses the existing browser theme selector; /exit//quit quit the terminal interface or leave browser session detail for Sessions.

Local aliases work without the shared Codex daemon, including read-only browser full detail. Their scope is explained in the catalogue; exit leaves Codex sessions and the browser server running. Local aliases do not send app-server mutations, and their names are reserved against model-advertised speed aliases. Missing copy text produces feedback. README and the slash-command roadmap describe the completed local families.

Session-setting changes retain their existing idle requirement, revision checks and explicit confirmation.

Validation: 94 browser cases verified, including focused reruns after correcting readiness waits in the new navigation tests; Svelte/type/format checks and web build passed; Go race/coverage checks across all packages passed excluding exhaustive locale screenshots, including compact blocked-feedback tests, catalogue validation and localized command rendering in German, Japanese and Finnish; Go vet and Windows amd64 application/UI-test cross-builds passed. Updated embedded web assets are included.

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

Stale web navigation history, hidden availability reasons in compact terminals, and untranslated new terminal labels remain unresolved.

3 open findings
What changed in this PR

This PR aligns terminal and web slash-command menus so blocked settings, confirmation, and Back and Cancel behavior are clearer.

Changes:

  • Distinguishes unavailable settings from browse-only help and offers Refresh.
  • Consolidates review and confirmation actions, tracks visited screens for Back, and updates selection styling.
  • Updates browser and terminal tests, documentation, and embedded web assets.
File Description
web/​tests/​browser.spec.ts Tests command availability, navigation, and confirmation.
web/​src/​SessionCommands.svelte Updates the web command menu.
README.md Documents the revised command flow.
internal/​web/​dist/​index.html Points to rebuilt web assets.
internal/​web/​dist/​assets/​index-l8TP2B-n.css Removes the previous stylesheet.
internal/​web/​dist/​assets/​index-GcuOkuuL.css Adds the rebuilt stylesheet.
internal/​web/​dist/​assets/​index-BHlnMEGS.js Removes the previous script bundle.
internal/​ui/​monitor_suggestions.go Changes suggestion selection styling.
internal/​ui/​monitor_suggestions_test.go Checks the new styling.
internal/​ui/​monitor_commands.go Updates terminal command navigation and actions.
internal/​ui/​monitor_commands_test.go Tests terminal command behavior.
internal/​codex/​session_directory_unix.go Marks blocked directory changes unavailable.
internal/​codex/​session_commands.go Adds an availability reason to command choices.
internal/​codex/​session_commands_unix.go Distinguishes blocked settings from help.
internal/​codex/​session_commands_unix_test.go Tests blocked-setting availability.

🧠 Review effort: Lite


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread internal/ui/monitor_commands.go Outdated
Comment thread internal/ui/monitor_commands.go Outdated
Comment thread web/src/SessionCommands.svelte Outdated
@merefield merefield changed the title Clarify slash command availability, confirmation and navigation Improve slash-command menus and add local usage, copy, theme and exit commands Oct 11, 2026
@merefield
merefield merged commit 0bb8286 into main Oct 11, 2026
6 checks passed
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