Skip to content

Commit 2b4b34e

Browse files
authored
Merge pull request #456 from bborn/task/1364-hide-status-line-during-idle-executor-wa
Hide status line during idle executor wait
2 parents 91cee54 + 6f4d916 commit 2b4b34e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

internal/ui/app.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3983,8 +3983,6 @@ func (m *AppModel) latestPermissionPrompt(taskID int64) string {
39833983
switch {
39843984
case l.LineType == "system" && strings.HasPrefix(l.Content, "Waiting for permission"):
39853985
return l.Content
3986-
case l.LineType == "system" && strings.HasPrefix(l.Content, "Waiting for user input"):
3987-
return l.Content
39883986
case l.LineType == "system" && l.Content == "Claude resumed working":
39893987
return "" // prompt was resolved
39903988
case l.LineType == "user" && (strings.HasPrefix(l.Content, "Approved") || strings.HasPrefix(l.Content, "Denied")):

internal/ui/app_test.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ func TestLatestPermissionPrompt_NoLogs(t *testing.T) {
12641264
}
12651265
}
12661266

1267-
func TestLatestPermissionPrompt_UserInputMessage(t *testing.T) {
1267+
func TestLatestPermissionPrompt_UserInputMessage_Ignored(t *testing.T) {
12681268
database, err := db.Open(":memory:")
12691269
if err != nil {
12701270
t.Fatalf("Failed to create test database: %v", err)
@@ -1278,11 +1278,13 @@ func TestLatestPermissionPrompt_UserInputMessage(t *testing.T) {
12781278
t.Fatalf("Failed to create task: %v", err)
12791279
}
12801280

1281+
// "Waiting for user input" is idle waiting, not an actionable prompt —
1282+
// should NOT trigger the status line / prompt preview.
12811283
database.AppendTaskLog(task.ID, "system", "Waiting for user input")
12821284

12831285
result := m.latestPermissionPrompt(task.ID)
1284-
if result != "Waiting for user input" {
1285-
t.Errorf("expected 'Waiting for user input', got '%s'", result)
1286+
if result != "" {
1287+
t.Errorf("expected empty string for idle user input, got '%s'", result)
12861288
}
12871289
}
12881290

0 commit comments

Comments
 (0)