File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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" )):
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments