v0.2.90 6a0d7ca

reasoning_test.go RawHistoryFolder

1package provider
2
3import "testing"
4
5func TestReasoningEffortMappings(t *testing.T) {
6	cases := []struct {
7		level      string
8		model      string
9		openai     string
10		anthCompat string
11		codex      string
12		budget     int
13		normalized string
14	}{
15		{"off", "gpt-5.6-sol", "", "", "", 0, ""},
16		{"minimum", "gpt-5.6-sol", "low", "low", "low", 1024, "minimum"},
17		{"minimal", "gpt-5.6-sol", "low", "low", "low", 1024, "minimum"},
18		{"low", "gpt-5.6-sol", "low", "low", "low", 2048, "low"},
19		{"medium", "gpt-5.6-sol", "medium", "medium", "medium", 8192, "medium"},
20		{"high", "gpt-5.6-sol", "high", "high", "high", 16384, "high"},
21		{"maximum", "gpt-5.6-sol", "high", "xhigh", "xhigh", 32768, "xhigh"},
22		{"xhigh", "gpt-5.6-sol", "high", "xhigh", "xhigh", 32768, "xhigh"},
23		{"max", "gpt-5.6-sol", "high", "max", "max", 32768, "max"},
24		{"max", "gpt-5.5", "high", "max", "xhigh", 32768, "max"},
25	}
26	for _, tc := range cases {
27		if got := NormalizeReasoning(tc.level); got != tc.normalized {
28			t.Errorf("NormalizeReasoning(%q)=%q want %q", tc.level, got, tc.normalized)
29		}
30		if got := OpenAIReasoningEffort(tc.level); got != tc.openai {
31			t.Errorf("OpenAIReasoningEffort(%q)=%q want %q", tc.level, got, tc.openai)
32		}
33		if got := OpenAICompatAnthropicEffort(tc.level); got != tc.anthCompat {
34			t.Errorf("OpenAICompatAnthropicEffort(%q)=%q want %q", tc.level, got, tc.anthCompat)
35		}
36		if got := OpenAICodexReasoningEffort(tc.level, tc.model); got != tc.codex {
37			t.Errorf("OpenAICodexReasoningEffort(%q, %q)=%q want %q", tc.level, tc.model, got, tc.codex)
38		}
39		if got := ReasoningBudget(tc.level); got != tc.budget {
40			t.Errorf("ReasoningBudget(%q)=%d want %d", tc.level, got, tc.budget)
41		}
42	}
43}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 476

↑↓ moveenter openesc close