Skip to content

Commit 6178ba4

Browse files
charley-oaicodex
andcommitted
codex: fix windows slash help snapshots (#14170)
Co-authored-by: Codex <noreply@openai.com>
1 parent 2902262 commit 6178ba4

File tree

5 files changed

+529
-3
lines changed

5 files changed

+529
-3
lines changed

codex-rs/tui/src/bottom_pane/chat_composer.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6368,7 +6368,13 @@ mod tests {
63686368
.draw(|f| composer.render(f.area(), f.buffer_mut()))
63696369
.unwrap_or_else(|e| panic!("Failed to draw composer: {e}"));
63706370

6371-
insta::assert_snapshot!("slash_popup_root", terminal.backend());
6371+
if cfg!(target_os = "windows") {
6372+
insta::with_settings!({ snapshot_suffix => "windows" }, {
6373+
insta::assert_snapshot!("slash_popup_root", terminal.backend());
6374+
});
6375+
} else {
6376+
insta::assert_snapshot!("slash_popup_root", terminal.backend());
6377+
}
63726378
}
63736379

63746380
#[test]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
source: tui/src/bottom_pane/chat_composer.rs
3+
expression: terminal.backend()
4+
---
5+
" "
6+
"› / "
7+
" "
8+
" /help show slash command help "
9+
" /model choose what model and reasoning "
10+
" effort to use "
11+
" /permissions choose what Codex is allowed to do "
12+
" /sandbox-add-read-dir let sandbox read a directory: / "
Lines changed: 248 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,248 @@
1+
---
2+
source: tui/src/chatwidget/tests.rs
3+
expression: popup
4+
---
5+
Slash Commands
6+
7+
Type / to open the command popup. For commands with both a picker and an arg form, bare /command
8+
opens the picker and /command ... runs directly.
9+
Args use shell-style quoting; quote values with spaces.
10+
11+
/help
12+
show slash command help
13+
Usage:
14+
/help
15+
16+
/model
17+
choose what model and reasoning effort to use
18+
Usage:
19+
/model
20+
/model <model> [default|none|minimal|low|medium|high|xhigh] [plan-only|all-modes]
21+
22+
/fast
23+
toggle Fast mode to enable fastest inference at 2X plan usage
24+
Usage:
25+
/fast
26+
/fast <on|off|status>
27+
28+
/approvals
29+
choose what Codex is allowed to do
30+
Usage:
31+
/approvals
32+
/approvals <read-only|auto|full-access> [--confirm-full-access] [--remember-full-access]
33+
[--confirm-world-writable] [--remember-world-writable] [--enable-windows-
34+
sandbox=elevated|legacy]
35+
36+
/permissions
37+
choose what Codex is allowed to do
38+
Usage:
39+
/permissions
40+
/permissions <read-only|auto|full-access> [--confirm-full-access] [--remember-full-access]
41+
[--confirm-world-writable] [--remember-world-writable] [--enable-windows-
42+
sandbox=elevated|legacy]
43+
44+
/setup-default-sandbox
45+
set up elevated agent sandbox
46+
Usage:
47+
/setup-default-sandbox
48+
49+
/sandbox-add-read-dir
50+
let sandbox read a directory: /sandbox-add-read-dir <absolute_path>
51+
Usage:
52+
/sandbox-add-read-dir <absolute-directory-path>
53+
54+
/experimental
55+
toggle experimental features
56+
Usage:
57+
/experimental
58+
/experimental <feature-key>=on|off ...
59+
60+
/skills
61+
use skills to improve how Codex performs specific tasks
62+
Usage:
63+
/skills
64+
/skills <list|manage>
65+
66+
/review
67+
review my current changes and find issues
68+
Usage:
69+
/review
70+
/review uncommitted
71+
/review branch <name>
72+
/review commit <sha> [title]
73+
/review <instructions>
74+
75+
/rename
76+
rename the current thread
77+
Usage:
78+
/rename
79+
/rename <title...>
80+
81+
/new
82+
start a new chat during a conversation
83+
Usage:
84+
/new
85+
86+
/resume
87+
resume a saved chat
88+
Usage:
89+
/resume
90+
/resume <thread-id>
91+
92+
/fork
93+
fork the current chat
94+
Usage:
95+
/fork
96+
97+
/init
98+
create an AGENTS.md file with instructions for Codex
99+
Usage:
100+
/init
101+
102+
/compact
103+
summarize conversation to prevent hitting the context limit
104+
Usage:
105+
/compact
106+
107+
/plan
108+
switch to Plan mode
109+
Usage:
110+
/plan
111+
/plan <prompt...>
112+
113+
/collab
114+
change collaboration mode (experimental)
115+
Usage:
116+
/collab
117+
/collab <default|plan>
118+
119+
/agent
120+
switch the active agent thread
121+
Usage:
122+
/agent
123+
/agent <thread-id>
124+
125+
/diff
126+
show git diff (including untracked files)
127+
Usage:
128+
/diff
129+
130+
/copy
131+
copy the latest Codex output to your clipboard
132+
Usage:
133+
/copy
134+
135+
/mention
136+
mention a file
137+
Usage:
138+
/mention
139+
140+
/status
141+
show current session configuration and token usage
142+
Usage:
143+
/status
144+
145+
/debug-config
146+
show config layers and requirement sources for debugging
147+
Usage:
148+
/debug-config
149+
150+
/statusline
151+
configure which items appear in the status line
152+
Usage:
153+
/statusline
154+
/statusline <item-id>...
155+
/statusline none
156+
157+
/theme
158+
choose a syntax highlighting theme
159+
Usage:
160+
/theme
161+
/theme <theme-name>
162+
163+
/mcp
164+
list configured MCP tools
165+
Usage:
166+
/mcp
167+
168+
/apps
169+
manage apps
170+
Usage:
171+
/apps
172+
173+
/logout
174+
log out of Codex
175+
Usage:
176+
/logout
177+
178+
/quit
179+
exit Codex
180+
Usage:
181+
/quit
182+
183+
/exit
184+
exit Codex
185+
Usage:
186+
/exit
187+
188+
/feedback
189+
send logs to maintainers
190+
Usage:
191+
/feedback
192+
/feedback <bug|bad-result|good-result|safety-check|other>
193+
194+
/rollout
195+
print the rollout file path
196+
Usage:
197+
/rollout
198+
199+
/ps
200+
list background terminals
201+
Usage:
202+
/ps
203+
204+
/clean
205+
stop all background terminals
206+
Usage:
207+
/clean
208+
209+
/clear
210+
clear the terminal and start a new chat
211+
Usage:
212+
/clear
213+
214+
/personality
215+
choose a communication style for Codex
216+
Usage:
217+
/personality
218+
/personality <none|friendly|pragmatic>
219+
220+
/realtime
221+
toggle realtime voice mode (experimental)
222+
Usage:
223+
/realtime
224+
225+
/settings
226+
configure realtime microphone/speaker
227+
Usage:
228+
/settings
229+
/settings <microphone|speaker> [default|<device-name>]
230+
231+
/test-approval
232+
test approval request
233+
Usage:
234+
/test-approval
235+
236+
/multi-agents
237+
switch the active agent thread
238+
Usage:
239+
/multi-agents
240+
/multi-agents <thread-id>
241+
242+
/debug-m-drop
243+
DO NOT USE
244+
Usage:
245+
/debug-m-drop
246+
247+
248+
↑/↓ scroll | [ctrl + p / ctrl + n] page | / search | esc close 1-237/244

0 commit comments

Comments
 (0)