Skip to content

Commit 7c198d7

Browse files
committed
Shorten autonomy tier messages
1 parent ef243b2 commit 7c198d7

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

cmd/autonomy_tiers.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,19 @@ func nextAutonomyTier(level engine.AutonomyLevel) engine.AutonomyLevel {
4848
return containerAutonomyTiers[(autonomyTierIndex(level)+1)%len(containerAutonomyTiers)]
4949
}
5050

51-
// autonomyTierDescription is plain-language copy shown when the user changes tier (ctrl+L).
51+
// autonomyTierDescription is short copy shown when the user changes tier (ctrl+L).
5252
func autonomyTierDescription(level engine.AutonomyLevel) string {
5353
switch level {
5454
case engine.AutonomyBasic:
55-
return "Read and search the codebase only. File changes and terminal commands need your approval."
55+
return "Look only — edits & shell ask first"
5656
case engine.AutonomySemi:
57-
return "Read and edit files automatically. Terminal commands need your approval."
57+
return "Auto edits — shell asks first"
5858
case engine.AutonomyFull:
59-
return "Read, edit, and run most terminal commands in the container. Risky commands still need your approval."
59+
return "Auto shell — risky ops ask first"
6060
case engine.AutonomyYOLO:
61-
return "Almost no approval prompts. Use only when you fully trust this session."
61+
return "Rare promptstrust this session"
6262
default:
63-
return "Read and edit files automatically. Terminal commands need your approval."
63+
return "Auto edits — shell asks first"
6464
}
6565
}
6666

@@ -92,7 +92,7 @@ func formatAutonomyTierMessage(level engine.AutonomyLevel) string {
9292
}
9393

9494
func formatSandboxReadyAutonomyMessage(level engine.AutonomyLevel) string {
95-
return fmt.Sprintf("Sandbox ready. Default tier %s — %s Press ctrl+L to switch Inspect · Edit · Run · Trust.",
95+
return fmt.Sprintf("Sandbox ready · %s — %s · ctrl+L cycles tiers",
9696
renderAutonomyTierLabel(level), autonomyTierDescription(level))
9797
}
9898

cmd/autonomy_tiers_copy_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ func TestAutonomyTierDescriptions_PlainLanguage(t *testing.T) {
1212
level engine.AutonomyLevel
1313
need []string
1414
}{
15-
{engine.AutonomyBasic, []string{"Read and search", "need your approval"}},
16-
{engine.AutonomySemi, []string{"edit files automatically", "Terminal commands need your approval"}},
17-
{engine.AutonomyFull, []string{"most terminal commands", "Risky commands still"}},
18-
{engine.AutonomyYOLO, []string{"Almost no approval", "fully trust"}},
15+
{engine.AutonomyBasic, []string{"Look only", "shell ask"}},
16+
{engine.AutonomySemi, []string{"Auto edits", "shell asks"}},
17+
{engine.AutonomyFull, []string{"Auto shell", "risky"}},
18+
{engine.AutonomyYOLO, []string{"Rare prompts", "trust"}},
1919
}
2020
for _, tc := range cases {
2121
desc := autonomyTierDescription(tc.level)
@@ -32,8 +32,8 @@ func TestFormatAutonomyTierMessage_NoArrowJargon(t *testing.T) {
3232
if strings.Contains(msg, "→") {
3333
t.Fatalf("expected no arrow jargon, got %q", msg)
3434
}
35-
if strings.Contains(msg, "shell auto") {
36-
t.Fatalf("expected plain language, got %q", msg)
35+
if len(msg) > 120 {
36+
t.Fatalf("message too long (%d chars): %q", len(msg), msg)
3737
}
3838
if !strings.Contains(msg, "Run") {
3939
t.Fatalf("expected tier name in message, got %q", msg)

cmd/chat.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ func (m chatModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
667667
return m, nil
668668
case tea.KeyCtrlL:
669669
if m.containerEnabled && !m.containerReady {
670-
m.messages = append(m.messages, displayMsg{role: "system", content: "Autonomy tiers (Inspect · Edit · Run · Trust) unlock when the container is ready."})
670+
m.messages = append(m.messages, displayMsg{role: "system", content: "Waiting for sandbox — tiers unlock when container is ready."})
671671
m.viewDirty = true
672672
m.updateViewportContent()
673673
return m, nil

0 commit comments

Comments
 (0)